Esempio n. 1
0
 public void LoadedUser(BattleInfoForLabelLoadedEvent e, SelfUserNode selfUser, [JoinAll] ICollection <UserLabelStateNode> userLabels)
 {
     foreach (UserLabelStateNode node in userLabels)
     {
         long key = node.battleGroup.Key;
         if (key.Equals(e.BattleId))
         {
             string battleMode = e.BattleMode;
             node.userLabelState.SetBattleDescription(battleMode, e.Map.GetComponent <DescriptionItemComponent>().Name);
         }
     }
 }
Esempio n. 2
0
 public void LoadedUser(BattleInfoForLabelLoadedEvent e, SelfUserNode selfUser, [JoinAll] ICollection <EmptyBattleLabelNode> battleLabels)
 {
     foreach (EmptyBattleLabelNode node in battleLabels)
     {
         long battleId = node.battleLabel.BattleId;
         if (battleId.Equals(e.BattleId))
         {
             BattleInfoForLabelComponent component = new BattleInfoForLabelComponent {
                 BattleMode = e.BattleMode
             };
             node.Entity.AddComponent(component);
             e.Map.GetComponent <MapGroupComponent>().Attach(node.Entity);
         }
     }
 }