Esempio n. 1
0
 def executeInit(self, ctx):
     prbType = self._entity.getEntityType()
     flags = self._entity.getFlags()
     g_eventDispatcher.loadUnit(prbType)
     if flags.isInIdle():
         g_eventDispatcher.setUnitProgressInCarousel(prbType, True)
     return FUNCTIONAL_FLAG.LOAD_WINDOW
Esempio n. 2
0
 def executeInit(self, ctx):
     prb_type = self._functional.getPrbType()
     pInfo = self._functional.getPlayerInfo()
     if self._functional.getFlags().isInPreArena() and pInfo.isInSlot:
         g_eventDispatcher.loadPreArenaUnit(prb_type)
         return FUNCTIONAL_INIT_RESULT.LOAD_PAGE
     g_eventDispatcher.loadUnit(prb_type)
     return FUNCTIONAL_INIT_RESULT.LOAD_WINDOW
Esempio n. 3
0
 def executeInit(self, ctx):
     prbType = self._functional.getEntityType()
     pInfo = self._functional.getPlayerInfo()
     flags = self._functional.getFlags()
     if flags.isInPreArena() and pInfo.isInSlot:
         g_eventDispatcher.loadPreArenaUnit(prbType)
         return FUNCTIONAL_FLAG.LOAD_PAGE
     g_eventDispatcher.loadUnit(prbType)
     if flags.isInIdle():
         g_eventDispatcher.setUnitProgressInCarousel(prbType, True)
     return FUNCTIONAL_FLAG.LOAD_WINDOW
Esempio n. 4
0
 def executeInit(self, ctx):
     prbType = self._functional.getEntityType()
     pInfo = self._functional.getPlayerInfo()
     flags = self._functional.getFlags()
     if flags.isInPreArena() and pInfo.isInSlot:
         g_eventDispatcher.loadPreArenaUnit(prbType)
         return FUNCTIONAL_FLAG.LOAD_PAGE
     g_eventDispatcher.loadUnit(prbType)
     if flags.isInIdle():
         g_eventDispatcher.setUnitProgressInCarousel(prbType, True)
     return FUNCTIONAL_FLAG.LOAD_WINDOW
Esempio n. 5
0
 def _loadUnit(self):
     g_eventDispatcher.loadUnit(self._prbType)