public void GoToEmailScreen(NotificationClickEvent e, SingleNode <EmailConfirmationNotificationComponent> notification, [JoinAll] SingleNode <SelfUserComponent> selfUser, [JoinAll] SingleNode <Dialogs60Component> dialogs, [JoinAll] Optional <SingleNode <WindowsSpaceComponent> > screens)
 {
     if (!selfUser.Entity.HasComponent <UnconfirmedUserEmailComponent>())
     {
         ChangeEmailDialogComponent dialog = dialogs.component.Get <ChangeEmailDialogComponent>();
         this.ShowDialog(dialog, screens);
     }
     else
     {
         EmailConfirmDialog dialog = dialogs.component.Get <EmailConfirmDialog>();
         dialog.ShowEmailConfirm(selfUser.Entity.GetComponent <UnconfirmedUserEmailComponent>().Email);
         this.ShowDialog(dialog, screens);
     }
 }
示例#2
0
 public void GoToBattle(NotificationClickEvent e, NotificationNode notification, [JoinAll] Optional <SingleNode <SelfBattleUserComponent> > userInBattle)
 {
     base.ScheduleEvent(new ShowBattleEvent(notification.battleGroup.Key), EngineService.EntityStub);
 }