def privGotSpec(self, levelSpec): if __dev__: if not levelSpec.hasEntityTypeReg(): typeReg = self.getEntityTypeReg() levelSpec.setEntityTypeReg(typeReg) DistributedLevel.privGotSpec(self, levelSpec)
def privGotSpec(self, levelSpec): # OK, we've got the spec that we're going to use, either the one # we provided or the one from the AI. When we call down, the level # is going to be initialized, and all the local entities will be # created. if __dev__: # First, give the spec a factory EntityTypeRegistry if it doesn't # have one. if not levelSpec.hasEntityTypeReg(): typeReg = self.getEntityTypeReg() levelSpec.setEntityTypeReg(typeReg) DistributedLevel.privGotSpec(self, levelSpec)