mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 04:02:40 -06:00
22 lines
825 B
Python
22 lines
825 B
Python
from toontown.suit import Suit
|
|
from toontown.town import DGStreet
|
|
from toontown.town import TownLoader
|
|
|
|
|
|
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.ogg'
|
|
self.activityMusicFile = 'phase_8/audio/bgm/DG_SZ.ogg'
|
|
self.townStorageDNAFile = 'phase_8/dna/storage_DG_town.pdna'
|
|
|
|
def load(self, zoneId):
|
|
TownLoader.TownLoader.load(self, zoneId)
|
|
Suit.loadSuits(3)
|
|
dnaFile = 'phase_8/dna/daisys_garden_' + str(self.canonicalBranchZone) + '.pdna'
|
|
self.createHood(dnaFile)
|
|
|
|
def unload(self):
|
|
TownLoader.TownLoader.unload(self)
|
|
Suit.unloadSuits(3)
|