瀏覽代碼

testing without adding globals to doId2do

Dave Schuyler 20 年之前
父節點
當前提交
c088cb7cf4
共有 1 個文件被更改,包括 27 次插入27 次删除
  1. 27 27
      direct/src/distributed/DistributedObjectGlobalAI.py

+ 27 - 27
direct/src/distributed/DistributedObjectGlobalAI.py

@@ -1,27 +1,27 @@
-
-
-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)
-        self.air.removeDOFromTables(self)
-        DistributedObjectAI.delete(self)
+
+
+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)
+        ## self.air.removeDOFromTables(self)
+        DistributedObjectAI.delete(self)