mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 12:43:44 -04:00
added logging of state reset in history, added isValidInterestHandle
This commit is contained in:
parent
2c481b3f26
commit
2e07609d07
@ -127,9 +127,14 @@ class DoInterestManager(DirectObject.DirectObject):
|
|||||||
DoInterestManager._interests.clear()
|
DoInterestManager._interests.clear()
|
||||||
self._outstandingScopes = set()
|
self._outstandingScopes = set()
|
||||||
self._completeEventCount = ScratchPad(num=0)
|
self._completeEventCount = ScratchPad(num=0)
|
||||||
self._addDebugInterestHistory(
|
self._addDebugInterestHistory("RESET", "", 0, 0, 0, [])
|
||||||
"STATE RESET", "", 0, 0,
|
|
||||||
0, [])
|
def isValidInterestHandle(self, handle):
|
||||||
|
# pass in a handle (or anything else) and this will return true if it is
|
||||||
|
# still a valid interest handle
|
||||||
|
if not isinstance(handle, InterestHandle):
|
||||||
|
return False
|
||||||
|
return DoInterestManager._interests.has_key(handle.asInt())
|
||||||
|
|
||||||
def addInterest(self, parentId, zoneIdList, description, event=None, auto=False):
|
def addInterest(self, parentId, zoneIdList, description, event=None, auto=False):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user