22 lines
800 B
Python
22 lines
800 B
Python
import TownLoader
|
|
import MMStreet
|
|
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
|
|
self.musicFile = 'phase_6/audio/bgm/MM_SZ.ogg'
|
|
self.activityMusicFile = 'phase_6/audio/bgm/MM_SZ_activity.ogg'
|
|
self.townStorageDNAFile = 'phase_6/dna/storage_MM_town.xml'
|
|
|
|
def load(self, zoneId):
|
|
TownLoader.TownLoader.load(self, zoneId)
|
|
Suit.loadSuits(2)
|
|
dnaFile = 'phase_6/dna/minnies_melody_land_' + str(self.canonicalBranchZone) + '.xml'
|
|
self.createHood(dnaFile)
|
|
|
|
def unload(self):
|
|
Suit.unloadSuits(2)
|
|
TownLoader.TownLoader.unload(self)
|