2
0
Эх сурвалжийг харах

Merge pull request #124 from lilligreen/scriptObject

Add behavior support to ScriptObject
Mich 12 жил өмнө
parent
commit
66b9cbfa2e

+ 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_