public void Spawn(int tilex, int tiley) { using (var ms = new MemoryStream()) { var msg = new SpawnMsg() { PlayerIndex = (byte)Index, TileX = tilex, TileY = tiley }; msg.PackFull(ms); SendRawData(ms.ToArray()); } }
public void Spawn(int tilex, int tiley) { using (var ms = new MemoryStream()) { var msg = new SpawnMsg() { PlayerIndex = (byte)Index, TileX = tilex, TileY = tiley }; msg.PackFull(ms); SendRawData(ms.ToArray()); } }