ToonTownRewritten/toontown/building/DistributedKartShopInterior.py
Sam Edwards d517699fb3 decompilation: Fix decompilation of modules that use "if (__debug__):"
These are:
toontown.ai.ToontownMagicWordManager
toontown.building.DistributedAnimDoor
toontown.building.DistributedDoor
toontown.building.DistributedKartShopInterior
toontown.racing.DistributedKartPad
toontown.racing.DistributedVehicleAI
toontown.racing.DistributedViewPad
toontown.racing.KartDNA
toontown.safezone.GSSafeZoneLoader
2013-09-24 11:09:36 -06:00

37 lines
1.2 KiB
Python

from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObject import DistributedObject
from pandac.PandaModules import *
from toontown.building import ToonInteriorColors
from toontown.hood import ZoneUtil
from toontown.toonbase.ToonBaseGlobal import *
from toontown.toonbase.ToontownGlobals import *
if (__debug__):
import pdb
class DistributedKartShopInterior(DistributedObject):
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedKartShopInterior')
def __init__(self, cr):
DistributedObject.__init__(self, cr)
self.dnaStore = cr.playGame.dnaStore
def generate(self):
DistributedObject.generate(self)
def announceGenerate(self):
DistributedObject.announceGenerate(self)
self.__handleInteriorSetup()
def disable(self):
self.interior.removeNode()
del self.interior
DistributedObject.disable(self)
def setZoneIdAndBlock(self, zoneId, block):
self.zoneId = zoneId
self.block = block
def __handleInteriorSetup(self):
self.interior = loader.loadModel('phase_6/models/karting/KartShop_Interior')
self.interior.reparentTo(render)
self.interior.flattenMedium()