2019-11-02 17:27:54 -05:00
|
|
|
from pandac.PandaModules import *
|
2019-12-30 00:07:56 -06:00
|
|
|
from . import SafeZoneLoader
|
|
|
|
from . import TTPlayground
|
2019-11-02 17:27:54 -05:00
|
|
|
import random
|
|
|
|
from toontown.launcher import DownloadForceAcknowledge
|
|
|
|
|
|
|
|
class TTSafeZoneLoader(SafeZoneLoader.SafeZoneLoader):
|
|
|
|
|
|
|
|
def __init__(self, hood, parentFSM, doneEvent):
|
|
|
|
SafeZoneLoader.SafeZoneLoader.__init__(self, hood, parentFSM, doneEvent)
|
|
|
|
self.playgroundClass = TTPlayground.TTPlayground
|
2020-01-14 13:28:52 -06:00
|
|
|
self.musicFile = 'phase_4/audio/bgm/TC_nbrhood.ogg'
|
|
|
|
self.activityMusicFile = 'phase_3.5/audio/bgm/TC_SZ_activity.ogg'
|
2019-11-02 17:27:54 -05:00
|
|
|
self.dnaFile = 'phase_4/dna/toontown_central_sz.dna'
|
|
|
|
self.safeZoneStorageDNAFile = 'phase_4/dna/storage_TT_sz.dna'
|
|
|
|
|
|
|
|
def load(self):
|
|
|
|
SafeZoneLoader.SafeZoneLoader.load(self)
|
2020-01-14 13:28:52 -06:00
|
|
|
self.birdSound = list(map(base.loader.loadSfx, ['phase_4/audio/sfx/SZ_TC_bird1.ogg', 'phase_4/audio/sfx/SZ_TC_bird2.ogg', 'phase_4/audio/sfx/SZ_TC_bird3.ogg']))
|
2019-11-02 17:27:54 -05:00
|
|
|
|
|
|
|
def unload(self):
|
|
|
|
del self.birdSound
|
|
|
|
SafeZoneLoader.SafeZoneLoader.unload(self)
|
|
|
|
|
|
|
|
def enter(self, requestStatus):
|
|
|
|
SafeZoneLoader.SafeZoneLoader.enter(self, requestStatus)
|
|
|
|
|
|
|
|
def exit(self):
|
|
|
|
SafeZoneLoader.SafeZoneLoader.exit(self)
|