Exemple #1
0
 public CProfile()
 {
     PlayerName = String.Empty;
     Difficulty = EGameDifficulty.TR_CONFIG_EASY;
     UserRole   = EUserRole.TR_USERROLE_NORMAL;
     Active     = EOffOn.TR_CONFIG_ON;
 }
Exemple #2
0
        public static void SetDifficulty(Guid profileID, EGameDifficulty difficulty)
        {
            if (!IsProfileIDValid(profileID))
            {
                return;
            }

            _Profiles[profileID].Difficulty = difficulty;
        }
Exemple #3
0
        public static void SetDifficulty(int ProfileNr, EGameDifficulty Difficulty)
        {
            if (ProfileNr < 0 || ProfileNr >= _Profiles.Count)
            {
                return;
            }

            SProfile profile = _Profiles[ProfileNr];

            profile.Difficulty   = Difficulty;
            _Profiles[ProfileNr] = profile;
        }
Exemple #4
0
        public static void SetDifficulty(int ProfileNr, EGameDifficulty Difficulty)
        {
            if (ProfileNr < 0 || ProfileNr >= _Profiles.Count)
                return;

            SProfile profile = _Profiles[ProfileNr];
            profile.Difficulty = Difficulty;
            _Profiles[ProfileNr] = profile;
        }