예제 #1
0
 public void OnDialogDecline(DialogDeclineEvent e, SingleNode <InviteToSquadDialogComponent> dialog, [JoinAll] SingleNode <SelfUserComponent> user)
 {
     object[] objArray1 = new object[] { "InviteToLobbySystem.OnDialogDecline ", user.Entity, " ", dialog.component.invite, " ", dialog.component.FromUserId, " ", dialog.component.EngineId };
     Debug.Log(string.Concat(objArray1));
     if (dialog.component.invite)
     {
         RejectInviteToSquadEvent eventInstance = new RejectInviteToSquadEvent {
             FromUserId = dialog.component.FromUserId,
             EngineId   = dialog.component.EngineId
         };
         base.ScheduleEvent(eventInstance, user);
     }
     else
     {
         RejectRequestToSquadEvent eventInstance = new RejectRequestToSquadEvent {
             FromUserId    = dialog.component.FromUserId,
             SquadId       = dialog.component.SquadId,
             SquadEngineId = dialog.component.EngineId
         };
         base.ScheduleEvent(eventInstance, user);
     }
 }
        public void Exit(DialogDeclineEvent e, SingleNode <ExitGameDialog> exitDialog, [JoinAll] SingleNode <RequireEnterEmailComponent> require, [JoinAll] SingleNode <Dialogs60Component> dialogs, [JoinAll] Optional <SingleNode <WindowsSpaceComponent> > screens)
        {
            ForceEnterEmailDialogComponent dialog = dialogs.component.Get <ForceEnterEmailDialogComponent>();

            this.ShowDialog(dialog, screens);
        }
예제 #3
0
 public void ReleaseReservation(DialogDeclineEvent e, SingleNode <ReturnToBattleDialogComponent> dialog, [JoinAll] SelfUserWithReservNode user)
 {
     base.ScheduleEvent <ReleaseReservationInBattleEvent>(user);
 }