Esempio n. 1
0
        public async Task Initialize()
        {
            WvwStats = new WvwStats(this, Ini);

            Mode  = Convert.ToInt32(iniRead("mode", "0"));
            MapId = Convert.ToInt32(iniRead("map_id", "0"));
            Map   = iniRead("map");

            TeamColorId = Convert.ToInt32(iniRead("team_id", "0"));
            Team        = iniRead("team");

            SquadPin     = iniRead("SquadPin");
            SquadMap     = iniRead("SquadMap");
            SquadMessage = iniRead("SquadMsg");

            await WvwStats.Initialize();
        }
Esempio n. 2
0
        private async Task <bool> maybeUpdateTeam(int newColorId)
        {
            CurrentTeamColorId = newColorId;
            if (TeamColorId.Equals(newColorId))
            {
                return(false);
            }

            string teamColor;

            if (!_TeamColorDict.TryGetValue(newColorId, out teamColor))
            {
                return(false);
            }

            TeamColorId = newColorId;
            Team        = teamColor;

            await WvwStats.reset();

            Links.updateTeamBasedLinks();

            return(true);
        }
Esempio n. 3
0
        public async Task <bool> maybeUpdateStats()
        {
            var b = await WvwStats.maybeUpdateStats();

            return(b);
        }