mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 11:28:17 -04:00
removed want global managers variable
This commit is contained in:
parent
a5be208188
commit
971b51d562
@ -316,7 +316,6 @@ class ClientRepository(ConnectionRepository):
|
|||||||
# Update the required fields
|
# Update the required fields
|
||||||
distObj.generateInit() # Only called when constructed
|
distObj.generateInit() # Only called when constructed
|
||||||
distObj.generate()
|
distObj.generate()
|
||||||
if not wantGlobalManagers:
|
|
||||||
if wantOtpServer:
|
if wantOtpServer:
|
||||||
# TODO: ROGER: where should we get parentId and zoneId?
|
# TODO: ROGER: where should we get parentId and zoneId?
|
||||||
parentId = None
|
parentId = None
|
||||||
|
@ -59,7 +59,6 @@ class ConnectionRepository(
|
|||||||
# DC file. The AIRepository will redefine this to 'AI'.
|
# DC file. The AIRepository will redefine this to 'AI'.
|
||||||
self.dcSuffix = ''
|
self.dcSuffix = ''
|
||||||
|
|
||||||
if wantGlobalManagers:
|
|
||||||
def generateGlobalObject(self, doId, dcname):
|
def generateGlobalObject(self, doId, dcname):
|
||||||
# Look up the dclass
|
# Look up the dclass
|
||||||
dclass = self.dclassesByName[dcname+self.dcSuffix]
|
dclass = self.dclassesByName[dcname+self.dcSuffix]
|
||||||
@ -86,32 +85,6 @@ class ConnectionRepository(
|
|||||||
# updateRequiredFields calls announceGenerate
|
# updateRequiredFields calls announceGenerate
|
||||||
return distObj
|
return distObj
|
||||||
|
|
||||||
## def generateGlobalObject(self, doId, dcname, parentId=None, zoneId=None):
|
|
||||||
## assert self.notify.debugStateCall(self)
|
|
||||||
## # Look up the dclass
|
|
||||||
## dclass = self.dclassesByName[dcname]
|
|
||||||
## # Construct a new one
|
|
||||||
## classDef = dclass.getClassDef()
|
|
||||||
## if classDef == None:
|
|
||||||
## self.notify.error("Could not create an undefined %s object."%(
|
|
||||||
## dclass.getName()))
|
|
||||||
## distObj = classDef(self)
|
|
||||||
## distObj.dclass = dclass
|
|
||||||
|
|
||||||
## assert not hasattr(self, 'parentId')
|
|
||||||
## self.doId = doId
|
|
||||||
## self.parentId = parentId
|
|
||||||
## self.zoneId = zoneId
|
|
||||||
## # Put the new DO in the dictionaries
|
|
||||||
## self.air.addDOToTables(self, location=(parentId,zoneId))
|
|
||||||
|
|
||||||
## assert not hasattr(self, 'parentId')
|
|
||||||
## self.parentId = parentId
|
|
||||||
## self.zoneId = zoneId
|
|
||||||
## distObj.generateInit() # Only called when constructed
|
|
||||||
## self.generate()
|
|
||||||
## return distObj
|
|
||||||
|
|
||||||
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