mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-25 20:52:26 -06:00
48 lines
1.4 KiB
Python
48 lines
1.4 KiB
Python
|
import CutScene
|
||
|
import EntityCreatorBase
|
||
|
import BasicEntities
|
||
|
from direct.directnotify import DirectNotifyGlobal
|
||
|
import EntrancePoint
|
||
|
import LevelMgr
|
||
|
import LogicGate
|
||
|
import ZoneEntity
|
||
|
import ModelEntity
|
||
|
import PathEntity
|
||
|
import VisibilityExtender
|
||
|
import PropSpinner
|
||
|
import AmbientSound
|
||
|
import LocatorEntity
|
||
|
import CollisionSolidEntity
|
||
|
|
||
|
def nothing(*args):
|
||
|
return 'nothing'
|
||
|
|
||
|
|
||
|
def nonlocal(*args):
|
||
|
return 'nonlocal'
|
||
|
|
||
|
|
||
|
class EntityCreator(EntityCreatorBase.EntityCreatorBase):
|
||
|
|
||
|
def __init__(self, level):
|
||
|
EntityCreatorBase.EntityCreatorBase.__init__(self, level)
|
||
|
self.level = level
|
||
|
self.privRegisterTypes({'attribModifier': nothing,
|
||
|
'ambientSound': AmbientSound.AmbientSound,
|
||
|
'collisionSolid': CollisionSolidEntity.CollisionSolidEntity,
|
||
|
'cutScene': CutScene.CutScene,
|
||
|
'entityGroup': nothing,
|
||
|
'entrancePoint': EntrancePoint.EntrancePoint,
|
||
|
'levelMgr': LevelMgr.LevelMgr,
|
||
|
'locator': LocatorEntity.LocatorEntity,
|
||
|
'logicGate': LogicGate.LogicGate,
|
||
|
'model': ModelEntity.ModelEntity,
|
||
|
'nodepath': BasicEntities.NodePathEntity,
|
||
|
'path': PathEntity.PathEntity,
|
||
|
'propSpinner': PropSpinner.PropSpinner,
|
||
|
'visibilityExtender': VisibilityExtender.VisibilityExtender,
|
||
|
'zone': ZoneEntity.ZoneEntity})
|
||
|
|
||
|
def doCreateEntity(self, ctor, entId):
|
||
|
return ctor(self.level, entId)
|