Example #1
0
 public void ShowLeaguePlaceInfo(UpdateTopLeagueInfoEvent e, UserWithLeagueNode selfUser, [JoinAll] LeaguePlaceUINode leaguePlaceUI, [JoinByUser] UserWithLeagueNode user)
 {
     if (e.UserId.Equals(user.Entity.Id))
     {
         leaguePlaceUI.leaguePlaceUI.SetPlace(e.Place);
     }
 }
Example #2
0
 public void PutReputationToEnter(UpdateTopLeagueInfoEvent e, SelfUserNode user, [JoinAll] ScreenNode screen, [JoinAll] TopLeagueNode topLeague, [JoinAll] ResultsNode results)
 {
     if (!results.battleResults.ResultForClient.Spectator && screen.battleResultsAwardsScreen.CanShowLeagueProgress())
     {
         screen.battleResultsAwardsScreen.leagueResultUI.PutReputationToEnter(topLeague.Entity.Id, e.LastPlaceReputation);
     }
 }
 public void PutReputationToEnter(UpdateTopLeagueInfoEvent e, UserWithLeagueNode userWithLeagueNode, [JoinAll] SingleNode <LeagueRewardUIComponent> screen, [JoinAll] TopLeagueNode topLeague)
 {
     screen.component.PlaceInTopLeague = e.Place;
     screen.component.PutReputationToEnter(topLeague.Entity.Id, e.LastPlaceReputation);
     screen.component.UpdateLeagueRewardUI();
 }