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 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); } }