private void updateMapBasedLinks() { Ini.Write("map_id", MapId.ToString(), "GW2"); Ini.Write("map", Map, "GW2"); Ini.Write("team_id", TeamColorId.ToString(), "GW2"); Ini.Write("team", Team, "GW2"); Links.updateMapBasedLinks(); }
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); }