2019-11-02 22:27:54 +00:00
|
|
|
from toontown.toonbase import ToontownGlobals
|
|
|
|
|
|
|
|
class StageRoomBase:
|
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def setStageId(self, stageId):
|
|
|
|
self.stageId = stageId
|
|
|
|
self.cogTrack = ToontownGlobals.cogHQZoneId2dept(stageId)
|
|
|
|
|
|
|
|
def setRoomId(self, roomId):
|
|
|
|
self.roomId = roomId
|
|
|
|
|
|
|
|
def getCogTrack(self):
|
|
|
|
return self.cogTrack
|
|
|
|
|
|
|
|
if __dev__:
|
|
|
|
|
|
|
|
def getEntityTypeReg(self):
|
2019-12-30 06:07:56 +00:00
|
|
|
from . import FactoryEntityTypes
|
2019-11-02 22:27:54 +00:00
|
|
|
from otp.level import EntityTypeRegistry
|
|
|
|
typeReg = EntityTypeRegistry.EntityTypeRegistry(FactoryEntityTypes)
|
|
|
|
return typeReg
|