public UserStatBool GetBoolStat(int i_StatId) { for (int userStatIndex = 0; userStatIndex < m_UserStats.Count; ++userStatIndex) { UserStat userStat = m_UserStats[userStatIndex]; if (userStat != null) { int statId = userStat.hashId; if (statId == i_StatId) { if (userStat.type == UserStatType.Bool) { UserStatBool boolUserStat = (UserStatBool)userStat; return(boolUserStat); } } } } return(null); }
public bool TryGetBoolStatValue(int i_StatId, out bool o_Value) { o_Value = false; for (int userStatIndex = 0; userStatIndex < m_UserStats.Count; ++userStatIndex) { UserStat userStat = m_UserStats[userStatIndex]; if (userStat != null) { int statId = userStat.hashId; if (statId == i_StatId) { if (userStat.type == UserStatType.Bool) { UserStatBool boolUserStat = (UserStatBool)userStat; o_Value = boolUserStat.boolValue; return(true); } } } } return(false); }
// OVERRIDE public override void Initialize(StatsModule i_StatsModule) { m_Stat = i_StatsModule.GetBoolStat(m_StatId); }
private void CombineBoolUserStat(UserStatBool i_UserStatBool) { // Steam does not implement bool stats. }
private void StoreBoolUserStat(UserStatBool i_UserStatBool) { // Steam does not implement bool stats }