示例#1
0
 // Token: 0x0600106F RID: 4207 RVA: 0x00048404 File Offset: 0x00046604
 static PreGameRuleVoteController()
 {
     PreGameController.onServerRecalculatedModifierAvailability += delegate(PreGameController controller)
     {
         PreGameRuleVoteController.UpdateGameVotes();
     };
 }
示例#2
0
 // Token: 0x0600105E RID: 4190 RVA: 0x00047CDC File Offset: 0x00045EDC
 private void Start()
 {
     if (this.localUser != null)
     {
         PreGameRuleVoteController.LocalUserBallotPersistenceManager.ApplyPersistentBallotIfPresent(this.localUser, this.votes);
     }
     if (NetworkServer.active)
     {
         PreGameRuleVoteController.UpdateGameVotes();
     }
 }
 // Token: 0x06001347 RID: 4935 RVA: 0x0005E34F File Offset: 0x0005C54F
 private void Start()
 {
     if (RoR2Application.isInSinglePlayer)
     {
         this.SetVotesFromRuleBookForSinglePlayer();
     }
     if (NetworkServer.active)
     {
         PreGameRuleVoteController.UpdateGameVotes();
     }
 }
示例#4
0
 // Token: 0x0600105F RID: 4191 RVA: 0x00047D04 File Offset: 0x00045F04
 private void Update()
 {
     if (NetworkServer.active && !this.networkUserNetworkIdentity)
     {
         UnityEngine.Object.Destroy(base.gameObject);
         return;
     }
     if (this.clientShouldTransmit)
     {
         this.clientShouldTransmit = false;
         this.ClientTransmitVotesToServer();
     }
     if (PreGameRuleVoteController.shouldUpdateGameVotes)
     {
         PreGameRuleVoteController.shouldUpdateGameVotes = false;
         PreGameRuleVoteController.UpdateGameVotes();
     }
 }