public PacketWriter WritePlayerRoutingUpdate(uint session, RoutingTable playerIds) { WriteMagic(); Write((byte)MessageTypes.PlayerRoutingUpdate); Write(session); playerIds.Serialize(ref this); return(this); }
public void CopyFrom(RoutingTable tempNewRoutingTable) { Clear(); for (var i = 0; i < tempNewRoutingTable._items.Count; i++) { var item = tempNewRoutingTable._items[i]; _items.Add(item); if (item == null) { _freeIds.Push((ushort)i); } } }