mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-27 05:32:41 -06:00
21 lines
985 B
Python
21 lines
985 B
Python
|
from otp.level import EntityCreator
|
||
|
from toontown.cogdominium import CogdoCraneGameConsts
|
||
|
from toontown.cogdominium.CogdoLevelMgr import CogdoLevelMgr
|
||
|
from toontown.cogdominium import CogdoBoardroomGameConsts
|
||
|
from toontown.cogdominium import CogdoCraneGameConsts
|
||
|
|
||
|
class CogdoEntityCreator(EntityCreator.EntityCreator):
|
||
|
|
||
|
def __init__(self, level):
|
||
|
EntityCreator.EntityCreator.__init__(self, level)
|
||
|
nothing = EntityCreator.nothing
|
||
|
nonlocal = EntityCreator.nonlocal
|
||
|
self.privRegisterTypes({'levelMgr': CogdoLevelMgr,
|
||
|
'cogdoBoardroomGameSettings': Functor(self._createCogdoSettings, CogdoBoardroomGameConsts.Settings),
|
||
|
'cogdoCraneGameSettings': Functor(self._createCogdoSettings, CogdoCraneGameConsts.Settings),
|
||
|
'cogdoCraneCogSettings': Functor(self._createCogdoSettings, CogdoCraneGameConsts.CogSettings)})
|
||
|
|
||
|
def _createCogdoSettings(self, ent, level, entId):
|
||
|
ent.initializeEntity(level, entId)
|
||
|
return ent
|