def announceGenerate(self): DistributedDistrict.announceGenerate(self) self.worldCreator = base.worldCreator self.worldCreator.district = self if self.shardType == PiratesGlobals.SHARD_MAIN: self.worldCreator.makeMainWorld(self.mainWorldFile)
def delete(self): DistributedDistrict.delete(self) if self.worldCreator: self.worldCreator.destroy()
def __init__(self, cr): DistributedDistrict.__init__(self, cr) self.mainWorldFile = None self.shardType = 0
def __init__(self, cr): DistributedDistrict.__init__(self, cr) self.mainWorldFile = None self.shardType = 0 self.invasionStatus = 0
def generate(self): DistributedDistrict.generate(self)