From ecad7a56937978aa0befa3614b6314a4ae7252ae Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Thu, 14 Jul 2005 02:53:57 +0000 Subject: [PATCH] *** empty log message *** --- .../distributed/DistributedObjectGlobal.py | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 direct/src/distributed/DistributedObjectGlobal.py diff --git a/direct/src/distributed/DistributedObjectGlobal.py b/direct/src/distributed/DistributedObjectGlobal.py new file mode 100755 index 0000000000..eb50eb7f66 --- /dev/null +++ b/direct/src/distributed/DistributedObjectGlobal.py @@ -0,0 +1,24 @@ +"""DistributedObjectGlobal module: contains the DistributedObjectGlobal class""" + +from direct.showbase.PandaObject import * +from direct.directnotify.DirectNotifyGlobal import directNotify +from direct.distributed.DistributedObject import DistributedObject + +class DistributedObjectGlobal(DistributedObject): + """ + The Distributed Object Global class is the base class for global + network based (i.e. distributed) objects. + """ + notify = directNotify.newCategory("DistributedObjectGlobal") + + # A few objects will set neverDisable to 1... Examples are + # localToon, and anything that lives in the UberZone. This + # keeps them from being disabled when you change zones, + # even to the quiet zone. + neverDisable = 1 + + def __init__(self, cr): + assert self.notify.debugStateCall(self) + DistributedObject.__init__(self, cr) + self.parentId = 0 + self.zoneId = 0