mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 11:28:17 -04:00
formatting
This commit is contained in:
parent
6a87e89a43
commit
ca15a720c9
@ -137,7 +137,7 @@ class DistributedObject(PandaObject):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def announceGenerate(self):
|
def announceGenerate(self):
|
||||||
"""announceGenerate(self)
|
"""
|
||||||
Sends a message to the world after the object has been
|
Sends a message to the world after the object has been
|
||||||
generated and all of its required fields filled in.
|
generated and all of its required fields filled in.
|
||||||
"""
|
"""
|
||||||
@ -146,7 +146,7 @@ class DistributedObject(PandaObject):
|
|||||||
messenger.send(self.uniqueName("generate"), [self])
|
messenger.send(self.uniqueName("generate"), [self])
|
||||||
|
|
||||||
def disable(self):
|
def disable(self):
|
||||||
"""disable(self)
|
"""
|
||||||
Inheritors should redefine this to take appropriate action on disable
|
Inheritors should redefine this to take appropriate action on disable
|
||||||
"""
|
"""
|
||||||
assert(self.notify.debug('disable(): %s' % (self.doId)))
|
assert(self.notify.debug('disable(): %s' % (self.doId)))
|
||||||
@ -154,21 +154,21 @@ class DistributedObject(PandaObject):
|
|||||||
self.__callbacks = {}
|
self.__callbacks = {}
|
||||||
|
|
||||||
def isDisabled(self):
|
def isDisabled(self):
|
||||||
"""isDisabled(self)
|
"""
|
||||||
Returns true if the object has been disabled and/or deleted,
|
Returns true if the object has been disabled and/or deleted,
|
||||||
or if it is brand new and hasn't yet been generated.
|
or if it is brand new and hasn't yet been generated.
|
||||||
"""
|
"""
|
||||||
return (self.activeState < ESGenerating)
|
return (self.activeState < ESGenerating)
|
||||||
|
|
||||||
def isGenerated(self):
|
def isGenerated(self):
|
||||||
"""isGenerated(self)
|
"""
|
||||||
Returns true if the object has been fully generated by now,
|
Returns true if the object has been fully generated by now,
|
||||||
and not yet disabled.
|
and not yet disabled.
|
||||||
"""
|
"""
|
||||||
return (self.activeState == ESGenerated)
|
return (self.activeState == ESGenerated)
|
||||||
|
|
||||||
def delete(self):
|
def delete(self):
|
||||||
"""delete(self)
|
"""
|
||||||
Inheritors should redefine this to take appropriate action on delete
|
Inheritors should redefine this to take appropriate action on delete
|
||||||
"""
|
"""
|
||||||
assert(self.notify.debug('delete(): %s' % (self.doId)))
|
assert(self.notify.debug('delete(): %s' % (self.doId)))
|
||||||
@ -180,21 +180,21 @@ class DistributedObject(PandaObject):
|
|||||||
return
|
return
|
||||||
|
|
||||||
def generate(self):
|
def generate(self):
|
||||||
"""generate(self)
|
"""
|
||||||
Inheritors should redefine this to take appropriate action on generate
|
Inheritors should redefine this to take appropriate action on generate
|
||||||
"""
|
"""
|
||||||
assert(self.notify.debug('generate()'))
|
assert(self.notify.debug('generate()'))
|
||||||
self.activeState = ESGenerating
|
self.activeState = ESGenerating
|
||||||
|
|
||||||
def generateInit(self):
|
def generateInit(self):
|
||||||
"""generateInit(self)
|
"""
|
||||||
This method is called when the DistributedObject is first introduced
|
This method is called when the DistributedObject is first introduced
|
||||||
to the world... Not when it is pulled from the cache.
|
to the world... Not when it is pulled from the cache.
|
||||||
"""
|
"""
|
||||||
self.activeState = ESGenerating
|
self.activeState = ESGenerating
|
||||||
|
|
||||||
def getDoId(self):
|
def getDoId(self):
|
||||||
"""getDoId(self)
|
"""
|
||||||
Return the distributed object id
|
Return the distributed object id
|
||||||
"""
|
"""
|
||||||
return self.doId
|
return self.doId
|
||||||
|
Loading…
x
Reference in New Issue
Block a user