浏览代码

Merge pull request #124 from lilligreen/scriptObject

Add behavior support to ScriptObject
Mich 12 年之前
父节点
当前提交
66b9cbfa2e
共有 1 个文件被更改,包括 11 次插入3 次删除
  1. 11 3
      engine/source/sim/scriptObject.h

+ 11 - 3
engine/source/sim/scriptObject.h

@@ -27,11 +27,19 @@
 #include "console/consoleInternal.h"
 #endif
 
+#ifndef _BEHAVIOR_COMPONENT_H_
+#include "component/behaviors/behaviorComponent.h"
+#endif
+
+#ifndef _BEHAVIORINSTANCE_H_
+#include "component/behaviors/behaviorInstance.h"
+#endif
+
 //-----------------------------------------------------------------------------
 
-class ScriptObject : public SimObject
+class ScriptObject : public BehaviorComponent
 {
-   typedef SimObject Parent;
+   typedef BehaviorComponent Parent;
 
 public:
    ScriptObject();
@@ -39,4 +47,4 @@ public:
    DECLARE_CONOBJECT(ScriptObject);
 };
 
-#endif // _SCRIPT_OBJECT_H_
+#endif // _SCRIPT_OBJECT_H_