protected override TcpSession CreateSession() { var session = new GameServerSession(this); _gameServerSessionsById.Add(session.Id, session); return(session); }
public static string GetPlayerUpdateCommandStringFromGameServerSession(GameServerSession gameServerSession) { return($"PLAYERUPDATE:{gameServerSession.Id};{gameServerSession.PlayerPosition.X};{gameServerSession.PlayerPosition.Y}"); }