Example #1
0
 def onEnterState(self, event=None):
     action = None
     if event is not None:
         disconnectReason = event.getArgument('disconnectReason', DisconnectReason.REQUEST)
         if disconnectReason in (DisconnectReason.EVENT, DisconnectReason.KICK, DisconnectReason.ERROR):
             action = spaces.DisconnectDialogAction(event.getArgument('kickReason', ''), event.getArgument('kickReasonType', ACCOUNT_KICK_REASONS.UNKNOWN), event.getArgument('expiryTime'))
     if self._proxy.getSpaceID() == GuiGlobalSpaceID.LOGIN:
         self._proxy.setupSpace(action=action)
     self._proxy.changeSpace(spaces.LoginSpace(action=action))
     return
 def onEnterState(self, event=None):
     action = None
     if event is not None:
         disconnectReason = event.getArgument('disconnectReason',
                                              DisconnectReason.REQUEST)
         if disconnectReason in (DisconnectReason.EVENT,
                                 DisconnectReason.KICK,
                                 DisconnectReason.ERROR):
             action = spaces.DisconnectDialogAction(
                 event.getArgument('kickReason', ''),
                 event.getArgument('isBan', False),
                 event.getArgument('expiryTime'))
     self._proxy.changeSpace(spaces.LoginSpace(action=action))
     return
 def onEnterState(self, event=None):
     self._proxy.changeSpace(
         spaces.LoginSpace(
             action=spaces.ReplayVersionDiffersDialogAction()))