Ejemplo n.º 1
0
        public static GameServerStats CreateGameServerStats()
        {
            var match = CreateGameMatchStats();
            var modes = new ConcurrentDictionary <string, int> {
                [match.GameMode] = 1
            };
            var maps = new ConcurrentDictionary <string, int> {
                [match.Map] = 1
            };
            var stats = new GameServerStats
            {
                Endpoint             = Server1Endpoint,
                Name                 = Server1Name,
                TotalMatchesPlayed   = 1,
                MaximumPopulation    = 5,
                TotalPopulation      = 5,
                PlayedGameModes      = modes,
                PlayedMaps           = maps,
                MaximumMatchesPerDay = 1,
                Top5Maps             = new[] { Map1 },
                Top5GameModes        = new[] { GameModeDM }
            };

            stats.CalculateAverageData(Timestamp1, Timestamp1);
            return(stats);
        }