public void RemoveSelfUser(NodeRemoveEvent e, UserNode user, [JoinByUser] ClientSessionNode clientSession) { throw new WhiteWalkerException(); }
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); } }
public void MarkSelfUser(NodeAddedEvent e, UserNode user, [Context, JoinByUser] ClientSessionNode clientSession) { user.Entity.AddComponent<SelfUserComponent>(); }
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); } }
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>(); }
public void SendEnterScreen(NodeAddedEvent e, ActiveScreenNode screen, [JoinAll] ClientSessionNode clientSession) { base.ScheduleEvent(new EnterScreenEvent(screen.screen.gameObject.name), clientSession); }