oldschool-toontown/toontown/town/DGTownLoader.py

23 lines
785 B
Python
Raw Normal View History

2019-11-02 17:27:54 -05:00
import TownLoader
import DGStreet
from toontown.suit import Suit
class DGTownLoader(TownLoader.TownLoader):
def __init__(self, hood, parentFSM, doneEvent):
TownLoader.TownLoader.__init__(self, hood, parentFSM, doneEvent)
self.streetClass = DGStreet.DGStreet
self.musicFile = 'phase_8/audio/bgm/DG_SZ.mid'
self.activityMusicFile = 'phase_8/audio/bgm/DG_SZ.mid'
self.townStorageDNAFile = 'phase_8/dna/storage_DG_town.dna'
def load(self, zoneId):
TownLoader.TownLoader.load(self, zoneId)
Suit.loadSuits(3)
dnaFile = 'phase_8/dna/daisys_garden_' + str(self.canonicalBranchZone) + '.dna'
self.createHood(dnaFile)
def unload(self):
Suit.unloadSuits(3)
TownLoader.TownLoader.unload(self)