Search Results for

    Show / Hide Table of Contents

    Message.Create Method

    Namespace: Riptide
    Assembly: RiptideNetworking.dll

    Overloads

    Create()

    Gets a completely empty message instance with no header.

    Create(MessageSendMode)

    Gets a message instance that can be used for sending.

    Create(MessageSendMode, ushort)

    Gets a message instance that can be used for sending.

    Create(MessageSendMode, Enum)

    Gets a message instance that can be used for sending.

    Create()

    Gets a completely empty message instance with no header.

    public static Message Create()

    Returns

    Message

    An empty message instance.

    Create(MessageSendMode)

    Gets a message instance that can be used for sending.

    public static Message Create(MessageSendMode sendMode)

    Parameters

    MessageSendMode sendMode

    The mode in which the message should be sent.

    Returns

    Message

    A message instance ready to be sent.

    Remarks

    This method is primarily intended for use with Notify as notify messages don't have a built-in message ID, and unlike Create(MessageSendMode, ushort) and Create(MessageSendMode, Enum), this overload does not add a message ID to the message.

    Create(MessageSendMode, ushort)

    Gets a message instance that can be used for sending.

    public static Message Create(MessageSendMode sendMode, ushort id)

    Parameters

    MessageSendMode sendMode

    The mode in which the message should be sent.

    ushort id

    The message ID.

    Returns

    Message

    A message instance ready to be sent.

    Create(MessageSendMode, Enum)

    Gets a message instance that can be used for sending.

    public static Message Create(MessageSendMode sendMode, Enum id)

    Parameters

    MessageSendMode sendMode

    The mode in which the message should be sent.

    Enum id

    The message ID.

    Returns

    Message

    A message instance ready to be sent.

    Remarks

    NOTE: id will be cast to a ushort. You should ensure that its value never exceeds that of MaxValue, otherwise you'll encounter unexpected behaviour when handling messages.

    • Improve this Doc
    • View Source
    • Support Riptide
    In This Article
    Back to top Copyright © Tom Weiland 2022
    Made with DocFX