oldschool-toontown/toontown/town/DLTownLoader.py

23 lines
812 B
Python
Raw Permalink Normal View History

from . import TownLoader
from . import DLStreet
2019-11-02 17:27:54 -05:00
from toontown.suit import Suit
class DLTownLoader(TownLoader.TownLoader):
def __init__(self, hood, parentFSM, doneEvent):
TownLoader.TownLoader.__init__(self, hood, parentFSM, doneEvent)
self.streetClass = DLStreet.DLStreet
2020-01-14 13:28:52 -06:00
self.musicFile = 'phase_8/audio/bgm/DL_SZ.ogg'
self.activityMusicFile = 'phase_8/audio/bgm/DL_SZ_activity.ogg'
2019-11-02 17:27:54 -05:00
self.townStorageDNAFile = 'phase_8/dna/storage_DL_town.dna'
def load(self, zoneId):
TownLoader.TownLoader.load(self, zoneId)
Suit.loadSuits(3)
dnaFile = 'phase_8/dna/donalds_dreamland_' + str(self.canonicalBranchZone) + '.dna'
self.createHood(dnaFile)
def unload(self):
Suit.unloadSuits(3)
TownLoader.TownLoader.unload(self)