oldschool-toontown/toontown/safezone/DGSafeZoneLoader.py

34 lines
1.3 KiB
Python
Raw Normal View History

from panda3d.core import *
from . import SafeZoneLoader
from . import DGPlayground
2019-11-02 17:27:54 -05:00
class DGSafeZoneLoader(SafeZoneLoader.SafeZoneLoader):
def __init__(self, hood, parentFSM, doneEvent):
SafeZoneLoader.SafeZoneLoader.__init__(self, hood, parentFSM, doneEvent)
self.playgroundClass = DGPlayground.DGPlayground
2020-01-14 13:28:52 -06:00
self.musicFile = 'phase_8/audio/bgm/DG_nbrhood.ogg'
self.activityMusicFile = 'phase_8/audio/bgm/DG_SZ.ogg'
2019-11-02 17:27:54 -05:00
self.dnaFile = 'phase_8/dna/daisys_garden_sz.dna'
self.safeZoneStorageDNAFile = 'phase_8/dna/storage_DG_sz.dna'
def load(self):
SafeZoneLoader.SafeZoneLoader.load(self)
2020-01-14 13:28:52 -06:00
self.bird1Sound = base.loader.loadSfx('phase_8/audio/sfx/SZ_DG_bird_01.ogg')
self.bird2Sound = base.loader.loadSfx('phase_8/audio/sfx/SZ_DG_bird_02.ogg')
self.bird3Sound = base.loader.loadSfx('phase_8/audio/sfx/SZ_DG_bird_03.ogg')
self.bird4Sound = base.loader.loadSfx('phase_8/audio/sfx/SZ_DG_bird_04.ogg')
2019-11-02 17:27:54 -05:00
def unload(self):
SafeZoneLoader.SafeZoneLoader.unload(self)
del self.bird1Sound
del self.bird2Sound
del self.bird3Sound
del self.bird4Sound
def enter(self, requestStatus):
SafeZoneLoader.SafeZoneLoader.enter(self, requestStatus)
def exit(self):
SafeZoneLoader.SafeZoneLoader.exit(self)