2019-12-30 00:07:56 -06:00
|
|
|
from . import FactorySpecs
|
2019-11-02 17:27:54 -05:00
|
|
|
from otp.level import LevelSpec
|
|
|
|
from toontown.toonbase import ToontownGlobals
|
|
|
|
|
|
|
|
class LawOfficeBase:
|
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def setLawOfficeId(self, factoryId):
|
|
|
|
self.lawOfficeId = factoryId
|
|
|
|
self.factoryType = ToontownGlobals.factoryId2factoryType[factoryId]
|
|
|
|
self.cogTrack = ToontownGlobals.cogHQZoneId2dept(factoryId)
|
|
|
|
|
|
|
|
def getCogTrack(self):
|
|
|
|
return self.cogTrack
|
|
|
|
|
|
|
|
def getFactoryType(self):
|
|
|
|
return self.factoryType
|
|
|
|
|
|
|
|
if __dev__:
|
|
|
|
|
|
|
|
def getEntityTypeReg(self):
|
2019-12-30 00:07:56 -06:00
|
|
|
from . import FactoryEntityTypes
|
2019-11-02 17:27:54 -05:00
|
|
|
from otp.level import EntityTypeRegistry
|
|
|
|
typeReg = EntityTypeRegistry.EntityTypeRegistry(FactoryEntityTypes)
|
|
|
|
return typeReg
|