From cfba7a8f55c951ac3ce9aa2721c551e56c93e599 Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Wed, 13 Jul 2005 02:31:08 +0000 Subject: [PATCH] *** empty log message *** --- .../distributed/DistributedObjectGlobalAI.py | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 direct/src/distributed/DistributedObjectGlobalAI.py diff --git a/direct/src/distributed/DistributedObjectGlobalAI.py b/direct/src/distributed/DistributedObjectGlobalAI.py new file mode 100755 index 0000000000..22786c58da --- /dev/null +++ b/direct/src/distributed/DistributedObjectGlobalAI.py @@ -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)