c_rootobj.h 622 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef __C_SCRIPTOBJ_H
  2. #define __C_SCRIPTOBJ_H
  3. #include <api/script/scriptobj.h>
  4. class C_RootObject{
  5. public:
  6. C_RootObject(ScriptObject *o);
  7. C_RootObject();
  8. virtual ~C_RootObject();
  9. virtual void C_hook(ScriptObject *o);
  10. virtual const wchar_t *getClassName();
  11. virtual void notify(const wchar_t *a, const wchar_t *b, int c, int d);
  12. virtual ScriptObject *getScriptObject();
  13. operator ScriptObject *() { return getScriptObject(); }
  14. private:
  15. ScriptObject *obj;
  16. static int getclassname_id;
  17. static int notify_id;
  18. static int inited;
  19. static int count;
  20. };
  21. #endif