Browse Source

Add behavior support to ScriptObject

Mike Lilligreen 12 years ago
parent
commit
16f681614e
1 changed files with 11 additions and 3 deletions
  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_