public CProfile() { PlayerName = String.Empty; Difficulty = EGameDifficulty.TR_CONFIG_EASY; UserRole = EUserRole.TR_USERROLE_NORMAL; Active = EOffOn.TR_CONFIG_ON; }
public static void SetDifficulty(Guid profileID, EGameDifficulty difficulty) { if (!IsProfileIDValid(profileID)) { return; } _Profiles[profileID].Difficulty = difficulty; }
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; }
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; }