mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-27 05:32:41 -06:00
19 lines
821 B
Python
19 lines
821 B
Python
|
from direct.showbase.PythonUtil import Functor
|
||
|
from otp.level import EntityCreatorAI
|
||
|
from toontown.cogdominium.CogdoLevelMgrAI import CogdoLevelMgrAI
|
||
|
from toontown.cogdominium import CogdoCraneGameConsts
|
||
|
|
||
|
class CogdoEntityCreatorAI(EntityCreatorAI.EntityCreatorAI):
|
||
|
|
||
|
def __init__(self, level):
|
||
|
EntityCreatorAI.EntityCreatorAI.__init__(self, level)
|
||
|
cDE = EntityCreatorAI.createDistributedEntity
|
||
|
cLE = EntityCreatorAI.createLocalEntity
|
||
|
nothing = EntityCreatorAI.nothing
|
||
|
self.privRegisterTypes({'levelMgr': Functor(cLE, CogdoLevelMgrAI),
|
||
|
'cogdoCraneGameSettings': Functor(cLE, self._createCogdoSettings)})
|
||
|
|
||
|
def _createCogdoSettings(self, level, entId):
|
||
|
CogdoCraneGameConsts.Settings.initializeEntity(level, entId)
|
||
|
return CogdoCraneGameConsts.Settings
|