mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
added getDisableEvent()
This commit is contained in:
parent
7c9997118c
commit
6d2fa2fcb2
@ -185,6 +185,9 @@ class DistributedObject(DistributedObjectBase, EnforcesCalldowns):
|
|||||||
self.disableAndAnnounce()
|
self.disableAndAnnounce()
|
||||||
self.delete()
|
self.delete()
|
||||||
|
|
||||||
|
def getDisableEvent(self):
|
||||||
|
return self.uniqueName("disable")
|
||||||
|
|
||||||
def disableAndAnnounce(self):
|
def disableAndAnnounce(self):
|
||||||
"""
|
"""
|
||||||
Inheritors should *not* redefine this function.
|
Inheritors should *not* redefine this function.
|
||||||
@ -197,7 +200,7 @@ class DistributedObject(DistributedObjectBase, EnforcesCalldowns):
|
|||||||
# hidden).
|
# hidden).
|
||||||
if self.activeState != ESDisabled:
|
if self.activeState != ESDisabled:
|
||||||
self.activeState = ESDisabling
|
self.activeState = ESDisabling
|
||||||
messenger.send(self.uniqueName("disable"))
|
messenger.send(self.getDisableEvent())
|
||||||
self.disable()
|
self.disable()
|
||||||
|
|
||||||
@calldownEnforced
|
@calldownEnforced
|
||||||
|
Loading…
x
Reference in New Issue
Block a user