ToonTownRewritten/toontown/hood/GSHoodAI.py
Joey Z c6a1b9a61a hood: 🐬
2014-07-04 15:00:30 -04:00

21 lines
862 B
Python

from toontown.toonbase import ToontownGlobals
from toontown.hood import HoodAI
from toontown.building.DistributedBuildingMgrAI import DistributedBuildingMgrAI
class GSHoodAI(HoodAI.HoodAI):
HOOD = ToontownGlobals.GoofySpeedway
def __init__(self, air):
HoodAI.HoodAI.__init__(self, air)
self.createZone()
self.spawnObjects()
def createZone(self):
HoodAI.HoodAI.createZone(self)
self.air.dnaStoreMap[self.HOOD] = self.air.loadDNA(self.air.genDNAFileName(self.HOOD)).generateData()
self.buildingMgr = DistributedBuildingMgrAI(self.air, self.HOOD, self.air.dnaStoreMap[self.HOOD], self.air.trophyMgr)
def spawnObjects(self):
HoodAI.HoodAI.spawnObjects(self)
filename = self.air.genDNAFileName(self.HOOD)
self.air.dnaSpawner.spawnObjects(filename, self.HOOD)