|
@@ -14,6 +14,7 @@ class Entity(EntityTypeDesc):
|
|
|
|
|
|
|
|
class LevelMgr(Entity):
|
|
class LevelMgr(Entity):
|
|
|
type = 'levelMgr'
|
|
type = 'levelMgr'
|
|
|
|
|
+ permanent = 1
|
|
|
attribs = (
|
|
attribs = (
|
|
|
('cogLevel', 0, 'int', {'min':0, 'max':11}),
|
|
('cogLevel', 0, 'int', {'min':0, 'max':11}),
|
|
|
('cogTrack', 'c', 'choice', {'choiceSet':['c','s','l','m']}),
|
|
('cogTrack', 'c', 'choice', {'choiceSet':['c','s','l','m']}),
|
|
@@ -22,6 +23,7 @@ class LevelMgr(Entity):
|
|
|
|
|
|
|
|
class EditMgr(Entity):
|
|
class EditMgr(Entity):
|
|
|
type = 'editMgr'
|
|
type = 'editMgr'
|
|
|
|
|
+ permanent = 1
|
|
|
attribs = (
|
|
attribs = (
|
|
|
('requestSave', None),
|
|
('requestSave', None),
|
|
|
('requestNewEntity', None),
|
|
('requestNewEntity', None),
|
|
@@ -29,18 +31,6 @@ class EditMgr(Entity):
|
|
|
('removeEntity', None),
|
|
('removeEntity', None),
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
-class LogicGate(Entity):
|
|
|
|
|
- type = 'logicGate'
|
|
|
|
|
- output = 'bool'
|
|
|
|
|
- attribs = (
|
|
|
|
|
- ('input1Event', 0, 'entId', {'output':'bool'}),
|
|
|
|
|
- ('input2Event', 0, 'entId', {'output':'bool'}),
|
|
|
|
|
- ('isInput1', 0, 'bool'),
|
|
|
|
|
- ('isInput2', 0, 'bool'),
|
|
|
|
|
- ('logicType', 'or', 'choice',
|
|
|
|
|
- {'choiceSet':['or','and','xor','nand','nor','xnor']}),
|
|
|
|
|
- )
|
|
|
|
|
-
|
|
|
|
|
class Nodepath(Entity):
|
|
class Nodepath(Entity):
|
|
|
type = 'nodepath'
|
|
type = 'nodepath'
|
|
|
attribs = (
|
|
attribs = (
|
|
@@ -51,6 +41,7 @@ class Nodepath(Entity):
|
|
|
|
|
|
|
|
class Zone(Nodepath):
|
|
class Zone(Nodepath):
|
|
|
type = 'zone'
|
|
type = 'zone'
|
|
|
|
|
+ permanent = 1
|
|
|
delAttribs = (
|
|
delAttribs = (
|
|
|
'parentEntId',
|
|
'parentEntId',
|
|
|
'pos',
|
|
'pos',
|
|
@@ -58,10 +49,22 @@ class Zone(Nodepath):
|
|
|
)
|
|
)
|
|
|
attribs = (
|
|
attribs = (
|
|
|
('description', '', 'string'),
|
|
('description', '', 'string'),
|
|
|
- ('modelZoneNum', None, 'int'),
|
|
|
|
|
|
|
+ ('modelZoneNum', -1, 'int'),
|
|
|
('visibility', [], 'visZoneList'),
|
|
('visibility', [], 'visZoneList'),
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|
|
+class LogicGate(Entity):
|
|
|
|
|
+ type = 'logicGate'
|
|
|
|
|
+ output = 'bool'
|
|
|
|
|
+ attribs = (
|
|
|
|
|
+ ('input1Event', 0, 'entId', {'output':'bool'}),
|
|
|
|
|
+ ('input2Event', 0, 'entId', {'output':'bool'}),
|
|
|
|
|
+ ('isInput1', 0, 'bool'),
|
|
|
|
|
+ ('isInput2', 0, 'bool'),
|
|
|
|
|
+ ('logicType', 'or', 'choice',
|
|
|
|
|
+ {'choiceSet':['or','and','xor','nand','nor','xnor']}),
|
|
|
|
|
+ )
|
|
|
|
|
+
|
|
|
class CutScene(Entity):
|
|
class CutScene(Entity):
|
|
|
type = 'cutScene'
|
|
type = 'cutScene'
|
|
|
output = 'bool'
|
|
output = 'bool'
|