public void InitLeaderBoardListForPlanet() { List <PlanetVO> allPlayerFacingPlanets = PlanetUtils.GetAllPlayerFacingPlanets(); for (int i = 0; i < allPlayerFacingPlanets.Count; i++) { string uid = allPlayerFacingPlanets[i].Uid; LeaderboardList <PlayerLBEntity> value = new LeaderboardList <PlayerLBEntity>(); this.LeadersByPlanet.Add(uid, value); value = new LeaderboardList <PlayerLBEntity>(); this.LeadersNearMeByPlanet.Add(uid, value); } List <TournamentVO> allLiveAndClosingTournaments = TournamentController.GetAllLiveAndClosingTournaments(); int j = 0; int count = allLiveAndClosingTournaments.Count; while (j < count) { string planetId = allLiveAndClosingTournaments[j].PlanetId; if (this.TournamentLeadersByPlanet.ContainsKey(planetId)) { Service.Logger.Error("Multiple tournaments are active on planet " + planetId); } else { this.InitTournamentListForPlanet(planetId); } j++; } }
public unsafe static long $Invoke9(long instance, long *args) { return(GCHandledObjects.ObjectToGCHandle(TournamentController.GetAllLiveAndClosingTournaments())); }