def onTimer(self, tid, userArg): """ Ouroboros method. Engine callback timer trigger """ #DEBUG_MSG('TID: %i %s' % (tid, userArg)) if ServerConstantsDefine.TIMER_TYPE_HEARTBEAT == userArg: Combat.onTimer(self, tid, userArg) if ServerConstantsDefine.TIMER_TYPE_HEARTBEAT == userArg: self.onHeardTimer() if ServerConstantsDefine.TIMER_TYPE_AURA_TICK == userArg: AuraBox.onTimer(self, tid, userArg) if ServerConstantsDefine.TIMER_TYPE_ABILITY_TICK == userArg: AbilityBox.onTimer(self, tid, userArg)
def onTimer(self, tid, userArg): """ Ouroboros method. Engine callback timer trigger """ # DEBUG_MSG("%s::onTimer: %i, tid:%i, arg:%i" % (self.getScriptName(), self.id, tid, userArg)) GameObject.onTimer(self, tid, userArg) #Ability.onTimer(self, tid, userArg) if ServerConstantsDefine.TIMER_TYPE_HEARTBEAT == userArg: self.onHeardTimer() if ServerConstantsDefine.TIMER_TYPE_COMBAT_TICK == userArg: Combat.onTimer(self, tid, userArg) if ServerConstantsDefine.TICK_TYPE_MOTION == userArg: Motion.onTimer(self, tid, userArg) if ServerConstantsDefine.TIMER_TYPE_AURA_TICK == userArg: AuraBox.onTimer(self, tid, userArg) if ServerConstantsDefine.TIMER_TYPE_ABILITY_TICK == userArg: AbilityBox.onTimer(self, tid, userArg)