mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
bossBattle
This commit is contained in:
parent
ac53a4e660
commit
e10b203bf2
@ -116,11 +116,13 @@ class RelatedObjectMgr(DirectObject.DirectObject):
|
|||||||
from a previous call to requestObjects(). The pending request
|
from a previous call to requestObjects(). The pending request
|
||||||
is removed from the queue and no further callbacks will be called.
|
is removed from the queue and no further callbacks will be called.
|
||||||
"""
|
"""
|
||||||
callback, timeoutCallback, doIdsPending, doIdList, doLaterName = tuple
|
if tuple:
|
||||||
assert(self.notify.debug("aborting request for %s (remaining: %s)" % (doIdList, doIdsPending)))
|
callback, timeoutCallback, doIdsPending, doIdList, doLaterName = tuple
|
||||||
|
assert(self.notify.debug("aborting request for %s (remaining: %s)" % (doIdList, doIdsPending)))
|
||||||
|
|
||||||
taskMgr.remove(doLaterName)
|
if doLaterName:
|
||||||
self.__removePending(tuple, doIdsPending)
|
taskMgr.remove(doLaterName)
|
||||||
|
self.__removePending(tuple, doIdsPending)
|
||||||
|
|
||||||
def __timeoutExpired(self, tuple):
|
def __timeoutExpired(self, tuple):
|
||||||
callback, timeoutCallback, doIdsPending, doIdList, doLaterName = tuple
|
callback, timeoutCallback, doIdsPending, doIdList, doLaterName = tuple
|
||||||
@ -180,7 +182,8 @@ class RelatedObjectMgr(DirectObject.DirectObject):
|
|||||||
# That was the last doId on the list. Call the
|
# That was the last doId on the list. Call the
|
||||||
# callback!
|
# callback!
|
||||||
assert(self.notify.debug("All objects generated on list: %s" % (doIdList)))
|
assert(self.notify.debug("All objects generated on list: %s" % (doIdList)))
|
||||||
taskMgr.remove(doLaterName)
|
if doLaterName:
|
||||||
|
taskMgr.remove(doLaterName)
|
||||||
|
|
||||||
objects, doIdsPending = self.__generateObjectList(doIdList)
|
objects, doIdsPending = self.__generateObjectList(doIdList)
|
||||||
callback(objects)
|
callback(objects)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user