MessageHandlerAttribute Constructor
Namespace: Riptide
Assembly: RiptideNetworking.dll
MessageHandlerAttribute(ushort, byte)
Initializes a new instance of the MessageHandlerAttribute class with the messageId
and groupId
values.
public MessageHandlerAttribute(ushort messageId, byte groupId = 0)
Parameters
ushort | messageId |
The ID of the message type which this method is meant to handle. |
byte | groupId |
The ID of the group of message handlers which this method belongs to. |
Remarks
Servers will only use this method if its signature matches the Server.MessageHandler signature. Clients will only use this method if its signature matches the Client.MessageHandler signature. This method will be ignored if its signature matches neither of the valid message handler signatures.