Exemplo n.º 1
0
    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));
    }
Exemplo n.º 2
0
    private RpcCallReceiverProcessor buildProcessor(string name, RpcCallReceivedData receivedData)
    {
        RpcCallReceiverProcessor processor = RpcCallReceiverProcessorFactory.Get(name);
        processor.SetReceivedData(receivedData);
        processor.SetPlayers(players);
        processor.SetNetwork(network);

        return processor;
    }
Exemplo n.º 3
0
    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);
    }
Exemplo n.º 4
0
    private RpcCallReceiverProcessor buildProcessor(string name, RpcCallReceivedData receivedData)
    {
        RpcCallReceiverProcessor processor = RpcCallReceiverProcessorFactory.Get(name);

        processor.SetReceivedData(receivedData);
        processor.SetPlayers(players);
        processor.SetNetwork(network);

        return(processor);
    }
Exemplo n.º 5
0
 private void logRpcReceived(RpcCallReceivedData receivedData)
 {
     Log.Debug("Received RPC: " + RpcCallFormatter.getDebugName(receivedData));
 }
Exemplo n.º 6
0
 private void logRpcReceived(RpcCallReceivedData receivedData)
 {
     Log.Debug("Received RPC: " + RpcCallFormatter.getDebugName(receivedData));
 }
 public void SetReceivedData(RpcCallReceivedData receivedData)
 {
     this.receivedData = receivedData;
 }