public RpcCallReceiverProcessor New(string name, string data, NetworkPlayer player, NetworkMessageInfo info) { string[] dataParts = RpcCallData.GetDataParts(data); RpcCallReceivedData receivedData = new RpcCallReceivedData(name, dataParts, player, info); logRpcReceived(receivedData); return(buildProcessor(name, receivedData)); }
private RpcCallReceiverProcessor buildProcessor(string name, RpcCallReceivedData receivedData) { RpcCallReceiverProcessor processor = RpcCallReceiverProcessorFactory.Get(name); processor.SetReceivedData(receivedData); processor.SetPlayers(players); processor.SetNetwork(network); return processor; }
public RpcCallReceiverProcessor New(string name, string data, NetworkPlayer player, NetworkMessageInfo info) { string[] dataParts = RpcCallData.GetDataParts(data); RpcCallReceivedData receivedData = new RpcCallReceivedData(name, dataParts, player, info); logRpcReceived(receivedData); return buildProcessor(name, receivedData); }
private RpcCallReceiverProcessor buildProcessor(string name, RpcCallReceivedData receivedData) { RpcCallReceiverProcessor processor = RpcCallReceiverProcessorFactory.Get(name); processor.SetReceivedData(receivedData); processor.SetPlayers(players); processor.SetNetwork(network); return(processor); }
private void logRpcReceived(RpcCallReceivedData receivedData) { Log.Debug("Received RPC: " + RpcCallFormatter.getDebugName(receivedData)); }
public void SetReceivedData(RpcCallReceivedData receivedData) { this.receivedData = receivedData; }