示例#1
0
 public void RemoveSelfUser(NodeRemoveEvent e, UserNode user, [JoinByUser] ClientSessionNode clientSession)
 {
     throw new WhiteWalkerException();
 }
示例#2
0
 public void EnterAsSpectator(ButtonClickEvent e, SingleNode <EnterBattleAsSpectatorButtonComponent> button, [JoinAll] SelectedFriendUI friendUI, [JoinByUser] FriendInBattle friend, [JoinAll] ClientSessionNode session, [JoinAll] Optional <SelfBattleLobbyUser> selfBattleLobbyUser)
 {
     if (!selfBattleLobbyUser.IsPresent())
     {
         base.ScheduleEvent(new EnterBattleAsSpectatorFromLobbyRequestEvent(friend.battleGroup.Key), session);
     }
 }
示例#3
0
 public void MarkSelfUser(NodeAddedEvent e, UserNode user, [Context, JoinByUser] ClientSessionNode clientSession)
 {
     user.Entity.AddComponent<SelfUserComponent>();
 }
示例#4
0
 public void EnterAsSpectator(ButtonClickEvent e, SingleNode <EnterBattleAsSpectatorButtonComponent> button, [JoinAll] ProfileScreenWithUserGroupNode profileScreen, [JoinByUser] UserInBattleNode userInBattle, [JoinAll] ClientSessionNode session, [JoinAll] Optional <SelfBattleLobbyUser> selfBattleLobbyUser)
 {
     if (!selfBattleLobbyUser.IsPresent())
     {
         base.ScheduleEvent(new EnterBattleAsSpectatorFromLobbyRequestEvent(userInBattle.battleGroup.Key), session);
     }
 }
示例#5
0
 public void EnterAsSpectator(EnterAsSpectatorToFriendBattleEvent e, FriendInBattle friend, [JoinAll] ClientSessionNode session, [JoinAll] Optional <SelfBattleLobbyUser> selfBattleLobbyUser)
 {
     if (!selfBattleLobbyUser.IsPresent())
     {
         base.ScheduleEvent(new EnterBattleAsSpectatorFromLobbyRequestEvent(friend.battleGroup.Key), session);
     }
 }
 public void ClientPassRegistration(NodeAddedEvent e, SelfUserNode selfUser, [JoinByUser] ClientSessionNode clientSessionNode)
 {
     base.ScheduleEvent <ShowLobbyScreenEvent>(selfUser);
 }
 public void ClientLoginSuccessful(NodeAddedEvent e, SelfUserNode selfUser, [JoinByUser] ClientSessionNode clientSessionNode, [JoinAll] SingleNode <TopPanelComponent> topPanel)
 {
     topPanel.Entity.AddComponent <TopPanelAuthenticatedComponent>();
 }
示例#8
0
 public void SendEnterScreen(NodeAddedEvent e, ActiveScreenNode screen, [JoinAll] ClientSessionNode clientSession)
 {
     base.ScheduleEvent(new EnterScreenEvent(screen.screen.gameObject.name), clientSession);
 }