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) } } }); }
public PhotonCommandHandlerAttribute(ClientCommandName command, Type commandBody) { Command = command; CommandBody = commandBody; }