2019-12-30 00:07:56 -06:00
|
|
|
from . import TownLoader
|
|
|
|
from . import MMStreet
|
2019-11-02 17:27:54 -05:00
|
|
|
from toontown.suit import Suit
|
|
|
|
|
|
|
|
class MMTownLoader(TownLoader.TownLoader):
|
|
|
|
|
|
|
|
def __init__(self, hood, parentFSM, doneEvent):
|
|
|
|
TownLoader.TownLoader.__init__(self, hood, parentFSM, doneEvent)
|
|
|
|
self.streetClass = MMStreet.MMStreet
|
2020-01-14 13:28:52 -06:00
|
|
|
self.musicFile = 'phase_6/audio/bgm/MM_SZ.ogg'
|
|
|
|
self.activityMusicFile = 'phase_6/audio/bgm/MM_SZ_activity.ogg'
|
2019-11-02 17:27:54 -05:00
|
|
|
self.townStorageDNAFile = 'phase_6/dna/storage_MM_town.dna'
|
|
|
|
|
|
|
|
def load(self, zoneId):
|
|
|
|
TownLoader.TownLoader.load(self, zoneId)
|
|
|
|
Suit.loadSuits(2)
|
|
|
|
dnaFile = 'phase_6/dna/minnies_melody_land_' + str(self.canonicalBranchZone) + '.dna'
|
|
|
|
self.createHood(dnaFile)
|
|
|
|
|
|
|
|
def unload(self):
|
|
|
|
Suit.unloadSuits(2)
|
|
|
|
TownLoader.TownLoader.unload(self)
|