direct.distributed.DoCollectionManager
from direct.distributed.DoCollectionManager import DoCollectionManager
Inheritance diagram
- class DoCollectionManager[source]
Bases:
object
- countObjects(self, classType)[source]
Counts the number of objects of the given type in the repository (for testing purposes)
- doFindAllMatching(self, str)[source]
Returns list of distributed objects with matching str in value.
- doFindAllOfType(self, query)[source]
Useful method for searching through the Distributed Object collection for objects of a particular type
- getDoList(self, parentId, zoneId=None, classType=None)[source]
- Parameters
parentId – any distributed object id.
zoneId – a uint32, defaults to None (all zones). Try zone 2 if you’re not sure which zone to use (0 is a bad/null zone and 1 has had reserved use in the past as a no messages zone, while 2 has traditionally been a global, uber, misc stuff zone).
dclassType – a distributed class type filter, defaults to None (no filter).
If dclassName is None then all objects in the zone are returned; otherwise the list is filtered to only include objects of that type.
- getObjectsInZone(self, parentId, zoneId)[source]
returns dict of doId:distObj for a zone. returned dict is safely mutable.