Exemple #1
0
 public void SendResponse(ResponseBody body, ClientCommandName name)
 {
     SendOperationResponse(new OperationResponse
     {
         OperationCode = 0,
         ReturnCode    = 0,
         DebugMessage  = null,
         Parameters    = new Dictionary <byte, object>
         {
             { 1, 0L },
             { 0, (short)name },
             { 2, Body.SerializeRaw(body) }
         }
     });
 }
Exemple #2
0
 public PhotonCommandHandlerAttribute(ClientCommandName command, Type commandBody)
 {
     Command     = command;
     CommandBody = commandBody;
 }