Ejemplo n.º 1
0
            public CommandImplementation(GameState game, NetBuffer buffer)
            {
                this.game = game;
                 var time = new Instant(buffer.ReadDouble());

                 this.game.SetTime(time);

                 int count = buffer.ReadByte();
                 this.parameters = new List<SingleParameters>(count);

                 for (int i = 0; i < count; i++)
                 {
                     this.parameters.Add(buffer.Read<SingleParameters>());
                 }
            }
Ejemplo n.º 2
0
 public ParameterGroup(NetBuffer buffer)
 {
     this.id = buffer.Read<Id>().Generic<Player>();
     int count = buffer.ReadByte();
     this.values = new List<ValueParameters>(count);
     for (int i = 0; i < count; i++)
     {
         this.values.Add(buffer.Read<ValueParameters>());
     }
 }