h_rootobj.h 660 B

123456789101112131415161718192021222324252627282930
  1. #ifndef __HOOK_SCRIPTOBJECT_H
  2. #define __HOOK_SCRIPTOBJECT_H
  3. #include <api/script/objects/c_script/scripthook.h>
  4. class H_RootObject : public ScriptHookI {
  5. public:
  6. H_RootObject(ScriptObject *o);
  7. H_RootObject();
  8. virtual ~H_RootObject();
  9. virtual void H_hook(ScriptObject *o);
  10. virtual int eventCallback(ScriptObject *object, int dlfid, scriptVar **params, int nparams);
  11. virtual void hook_onNotify(const wchar_t *s, const wchar_t *t, int u, int v) {}
  12. virtual ScriptObject *getHookedObject() { return me; }
  13. private:
  14. ScriptObject *me;
  15. static int onnotify_id;
  16. static int inited;
  17. static int count;
  18. };
  19. #endif