Esempio n. 1
0
        private static void IncreaseMaxGameSessionsCount()
        {
            _maxGameSessions += 100;
            var resizedGameSessions = new GameSession[_maxGameSessions];
            var resizedGameMaps     = new GameMap[_maxGameSessions];

            GameSessions.CopyTo(resizedGameSessions, 0);
            GameMaps.CopyTo(resizedGameMaps, 0);
            GameSessions = resizedGameSessions;
            GameMaps     = resizedGameMaps;
        }