direct.distributed.RelatedObjectMgr

from direct.distributed.RelatedObjectMgr import RelatedObjectMgr

RelatedObjectMgr module: contains the RelatedObjectMgr class

Inheritance diagram

digraph inheritance380d1336ca { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DirectObject" [URL="direct.showbase.DirectObject.html#direct.showbase.DirectObject.DirectObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="This is the class that all Direct/SAL classes should inherit from"]; "RelatedObjectMgr" [URL="direct.distributed.RelatedObjectMgr.html#direct.distributed.RelatedObjectMgr.RelatedObjectMgr",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="This class manages a relationship between DistributedObjects that"]; "DirectObject" -> "RelatedObjectMgr" [arrowsize=0.75,style=""]; }
class RelatedObjectMgr(cr)[source]

Bases: DirectObject

This class manages a relationship between DistributedObjects that know about each other, and are expected to be generated together. Ideally, we should be able to guarantee the ordering of the generate calls, but there are certain cases in which the objects may not be generated in the correct order as defined by the toon.dc file.

To handle cases like these robustly, it is necessary for each object to deal with the possibility that its companion object has not yet been generated. This may mean deferring some operations until the expected companion object has been generated.

This class helps manage that process. To use it, an object should register its desire to be associated with the other object’s doId. When the other object is generated (or immediately, if the object already exists), the associated callback will be called. There is also a timeout callback in case the object never appears.

doLaterSequence = 1
notify = <direct.directnotify.Notifier.Notifier object>