30 lines
1.1 KiB
Python
30 lines
1.1 KiB
Python
|
from pandac.PandaModules import *
|
||
|
import SafeZoneLoader
|
||
|
import TTPlayground
|
||
|
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
|
||
|
self.musicFile = 'phase_4/audio/bgm/TC_nbrhood.mid'
|
||
|
self.activityMusicFile = 'phase_3.5/audio/bgm/TC_SZ_activity.mid'
|
||
|
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)
|
||
|
self.birdSound = map(base.loadSfx, ['phase_4/audio/sfx/SZ_TC_bird1.mp3', 'phase_4/audio/sfx/SZ_TC_bird2.mp3', 'phase_4/audio/sfx/SZ_TC_bird3.mp3'])
|
||
|
|
||
|
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)
|