mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-26 21:22:27 -06:00
24 lines
842 B
Python
24 lines
842 B
Python
|
from toontown.suit import Suit
|
||
|
from toontown.town import TTStreet
|
||
|
from toontown.town import TownLoader
|
||
|
|
||
|
|
||
|
class TTTownLoader(TownLoader.TownLoader):
|
||
|
def __init__(self, hood, parentFSM, doneEvent):
|
||
|
TownLoader.TownLoader.__init__(self, hood, parentFSM, doneEvent)
|
||
|
self.streetClass = TTStreet.TTStreet
|
||
|
self.musicFile = 'phase_3.5/audio/bgm/TC_SZ.ogg'
|
||
|
self.activityMusicFile = 'phase_3.5/audio/bgm/TC_SZ_activity.ogg'
|
||
|
self.townStorageDNAFile = 'phase_5/dna/storage_TT_town.pdna'
|
||
|
|
||
|
def load(self, zoneId):
|
||
|
TownLoader.TownLoader.load(self, zoneId)
|
||
|
Suit.loadSuits(1)
|
||
|
dnaFile = 'phase_5/dna/toontown_central_' + str(self.canonicalBranchZone) + '.pdna'
|
||
|
self.createHood(dnaFile)
|
||
|
|
||
|
def unload(self):
|
||
|
TownLoader.TownLoader.unload(self)
|
||
|
Suit.unloadSuits(1)
|
||
|
|