def levelAnnounceGenerate(self): self.notify.debug('levelAnnounceGenerate') DistributedLevel.DistributedLevel.levelAnnounceGenerate(self) specModule = CountryClubRoomSpecs.getCountryClubRoomSpecModule( self.roomId) roomSpec = LevelSpec.LevelSpec(specModule) DistributedLevel.DistributedLevel.initializeLevel(self, roomSpec)
def levelAnnounceGenerate(self): self.notify.debug('levelAnnounceGenerate') DistributedLevel.DistributedLevel.levelAnnounceGenerate(self) specModule = CountryClubRoomSpecs.getCountryClubRoomSpecModule(self.roomId) roomSpec = LevelSpec.LevelSpec(specModule) if __dev__: typeReg = self.getCountryClubEntityTypeReg() roomSpec.setEntityTypeReg(typeReg) DistributedLevel.DistributedLevel.initializeLevel(self, roomSpec)
def levelAnnounceGenerate(self): self.notify.debug('levelAnnounceGenerate') DistributedLevel.DistributedLevel.levelAnnounceGenerate(self) specModule = CountryClubRoomSpecs.getCountryClubRoomSpecModule( self.roomId) roomSpec = LevelSpec.LevelSpec(specModule) if __dev__: typeReg = self.getCountryClubEntityTypeReg() roomSpec.setEntityTypeReg(typeReg) DistributedLevel.DistributedLevel.initializeLevel(self, roomSpec)
def levelAnnounceGenerate(self): self.notify.debug('levelAnnounceGenerate') DistributedLevel.DistributedLevel.levelAnnounceGenerate(self) # create our spec # NOTE: in dev, the AI will probably send us another spec to use specModule = CountryClubRoomSpecs.getCountryClubRoomSpecModule( self.roomId) roomSpec = LevelSpec.LevelSpec(specModule) if __dev__: # give the spec a factory EntityTypeRegistry. typeReg = self.getCountryClubEntityTypeReg() roomSpec.setEntityTypeReg(typeReg) DistributedLevel.DistributedLevel.initializeLevel(self, roomSpec)
def getBattleCellSpec(self, battleCellId): cogSpecModule = CountryClubRoomSpecs.getCogSpecModule(self.roomId) return cogSpecModule.BattleCells[battleCellId]
def getReserveCogSpec(self, cogId): cogSpecModule = CountryClubRoomSpecs.getCogSpecModule(self.roomId) return cogSpecModule.ReserveCogData[cogId]
def levelAnnounceGenerate(self): self.notify.debug('levelAnnounceGenerate') DistributedLevel.DistributedLevel.levelAnnounceGenerate(self) specModule = CountryClubRoomSpecs.getCountryClubRoomSpecModule(self.roomId) roomSpec = LevelSpec.LevelSpec(specModule) DistributedLevel.DistributedLevel.initializeLevel(self, roomSpec)