h_edit.h 803 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* This file was generated by Maki Compiler, do not edit manually */
  2. #ifndef __HOOK_EDIT_H
  3. #define __HOOK_EDIT_H
  4. #include "h_guiobject.h"
  5. #define H_EDIT_PARENT H_GuiObject
  6. class H_Edit : public H_EDIT_PARENT {
  7. public:
  8. H_Edit(ScriptObject *o);
  9. H_Edit();
  10. virtual ~H_Edit();
  11. virtual void H_hook(ScriptObject *o);
  12. ScriptObject *getHookedObject();
  13. virtual int eventCallback(ScriptObject *object, int dlfid, scriptVar **params, int nparams);
  14. virtual void hook_onEnter() { }
  15. virtual void hook_onAbort() { }
  16. virtual void hook_onIdleEditUpdate() { }
  17. virtual void hook_onEditUpdate() { }
  18. private:
  19. ScriptObject *obj;
  20. int inited;
  21. static int loaded;
  22. static int onenter_id;
  23. static int onabort_id;
  24. static int onidleeditupdate_id;
  25. static int oneditupdate_id;
  26. };
  27. #endif