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); } }
public void Serialize(BitBuffer buffer) { buffer.EnqueueInt(playerId); }
public void Serialize(BitBuffer buffer) { buffer.EnqueueInt(x); buffer.EnqueueInt(y); }