Пример #1
0
        internal static void FillObject(GameModeInfo gameModeInfo)
        {
            gameModeInfo.GameModeView = DictionaryTemplates.GetTypeMission(gameModeInfo.GameMode);

            if (DateTime.TryParse(gameModeInfo.Date, out DateTime dateTimeParse))
            {
                gameModeInfo.DateView = dateTimeParse;
            }

            gameModeInfo.MissionView = DictionaryTemplates.GetNameMission(gameModeInfo.Mission);
            gameModeInfo.MapView     = DictionaryTemplates.GetNameMap(gameModeInfo.Map);

            for (int i = 0; i < gameModeInfo.Players.Count; i++)
            {
                CReplay.Players.PlayersInfo.FillObject(gameModeInfo.Players[i]);
            }
        }
Пример #2
0
 internal static void FillObject(MissionInfo missionInfo)
 {
     missionInfo.MapNameView     = DictionaryTemplates.GetNameMap(missionInfo.MapName);
     missionInfo.MissionNameView = DictionaryTemplates.GetNameMission(missionInfo.MissionName);
     missionInfo.TypeView        = DictionaryTemplates.GetTypeMission(missionInfo.Type);
 }