mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
printObjects
This commit is contained in:
parent
a8869e5147
commit
81a399781b
@ -56,6 +56,20 @@ class ConnectionRepository(DoInterestManager, CConnectionRepository):
|
|||||||
# DC file. The AIRepository will redefine this to 'AI'.
|
# DC file. The AIRepository will redefine this to 'AI'.
|
||||||
self.dcSuffix = ''
|
self.dcSuffix = ''
|
||||||
|
|
||||||
|
if __debug__:
|
||||||
|
def printObjects(self):
|
||||||
|
format="%10s %10s %10s %30s %20s"
|
||||||
|
title=format%("parentId", "zoneId", "doId", "dclass", "name")
|
||||||
|
print title
|
||||||
|
print '-'*len(title)
|
||||||
|
for distObj in self.doId2do.values():
|
||||||
|
print format%(
|
||||||
|
distObj.parentId,
|
||||||
|
distObj.zoneId,
|
||||||
|
distObj.doId,
|
||||||
|
distObj.dclass.getName(),
|
||||||
|
distObj.__dict__.get("name"))
|
||||||
|
|
||||||
def readDCFile(self, dcFileNames = None):
|
def readDCFile(self, dcFileNames = None):
|
||||||
"""
|
"""
|
||||||
Reads in the dc files listed in dcFileNames, or if
|
Reads in the dc files listed in dcFileNames, or if
|
||||||
|
Loading…
x
Reference in New Issue
Block a user