mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
*** empty log message ***
This commit is contained in:
parent
effdbb24af
commit
cfba7a8f55
26
direct/src/distributed/DistributedObjectGlobalAI.py
Executable file
26
direct/src/distributed/DistributedObjectGlobalAI.py
Executable file
@ -0,0 +1,26 @@
|
||||
|
||||
|
||||
from DistributedObjectAI import DistributedObjectAI
|
||||
from direct.directnotify.DirectNotifyGlobal import directNotify
|
||||
|
||||
if __debug__:
|
||||
notify = directNotify.newCategory('DistributedObjectGlobalAI')
|
||||
|
||||
|
||||
class DistributedObjectGlobalAI(DistributedObjectAI):
|
||||
if __debug__:
|
||||
notify = notify
|
||||
|
||||
doNotDeallocateChannel = 1
|
||||
isGlobalDistObj = 1
|
||||
|
||||
def __init__(self, air):
|
||||
DistributedObjectAI.__init__(self, air)
|
||||
|
||||
def announceGenerate(self):
|
||||
self.air.registerForChannel(self.doId)
|
||||
DistributedObjectAI.announceGenerate(self)
|
||||
|
||||
def delete(self):
|
||||
self.air.unregisterForChannel(self.doId)
|
||||
DistributedObjectAI.delete(self)
|
Loading…
x
Reference in New Issue
Block a user