Exemplo n.º 1
0
        public int CountOfUnlockedTiers(PlayerAchievmentObject playerAch)
        {
            int cnt = 0;

            foreach (var kvp in achievments)
            {
                cnt += kvp.Value.CountOfUnlockedTiers(playerAch);
            }
            return(cnt);
        }
Exemplo n.º 2
0
        public int CountOfUnlockedTiers(PlayerAchievmentObject playerAch)
        {
            int playerCount = playerAch.GetValue(variable);
            int cnt         = 0;

            foreach (var t in tiers)
            {
                if (t.Value.Unlocked(playerCount))
                {
                    cnt++;
                }
            }
            return(cnt);
        }
Exemplo n.º 3
0
        public bool AllOpened(PlayerAchievmentObject currentVariables)
        {
            var  count = currentVariables.GetValue(variable);
            bool ok    = true;

            foreach (var kvp in tiers)
            {
                if (!kvp.Value.Unlocked(count))
                {
                    ok = false;
                    break;
                }
            }
            return(ok);
        }