Poodletooth-iLand/toontown/coghq/FactoryBase.py
2015-03-03 17:10:12 -05:00

27 lines
747 B
Python

import FactorySpecs
from otp.level import LevelSpec
from toontown.toonbase import ToontownGlobals
class FactoryBase:
def __init__(self):
pass
def setFactoryId(self, factoryId):
self.factoryId = 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