Exemplo n.º 1
0
    public override bool GameOver()
    {
        IntegerStatTracker teamStat = GameStats.GetFullIntegerStat("Team");
        IntegerStatTracker killStat = GameStats.GetFullIntegerStat("Kills");

        int[] teamScores = new int[8];
        for (int i = 0; i < ServerConnectionEventListener.IndexMap.PlayerCount; i++)
        {
            teamScores[teamStat[i]] += killStat[i];
        }
        for (int i = 0; i < teamScores.Length; i++)
        {
            if (teamScores[i] >= ScoreLimit)
            {
                return(true);
            }
        }
        return(false);
    }
Exemplo n.º 2
0
 public static void RegisterIntegerStat(IntegerStatTracker sst)
 {
     intStatMap.Add(sst.StatName, sst);
 }