public void Serialize(BitBuffer buffer)
 {
     buffer.EnqueueInt(playerPositions.Count);
     foreach (KeyValuePair <int, Position> entry in playerPositions)
     {
         buffer.EnqueueInt(entry.Key);
         buffer.EnqueueSerializable(entry.Value);
     }
 }
 public void Serialize(BitBuffer buffer)
 {
     buffer.EnqueueInt(playerId);
     foreach (bool mov in rdlu)
     {
         buffer.EnqueueBool(mov);
     }
 }
Exemple #3
0
 public void Serialize(BitBuffer buffer)
 {
     buffer.EnqueueInt(playerId);
 }
Exemple #4
0
 public void Serialize(BitBuffer buffer)
 {
     buffer.EnqueueInt(x);
     buffer.EnqueueInt(y);
 }