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. |