mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 20:22:33 -06:00
28 lines
753 B
Python
28 lines
753 B
Python
|
import FactorySpecs
|
||
|
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):
|
||
|
import FactoryEntityTypes
|
||
|
from otp.level import EntityTypeRegistry
|
||
|
typeReg = EntityTypeRegistry.EntityTypeRegistry(FactoryEntityTypes)
|
||
|
return typeReg
|