1
0

sgammaset.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #ifndef __SGammaset_H
  2. #define __SGammaset_H
  3. class SGamma;
  4. #include <api/script/script.h>
  5. #include <api/script/objcontroller.h>
  6. #include <api/script/objects/rootobj.h>
  7. #include <api/script/objects/rootobject.h>
  8. #include <api/skin/skinelem.h>
  9. #include <api/skin/gammamgr.h>
  10. #include "sgammagroup.h"
  11. #define SGAMMASET_SCRIPTPARENT RootObjectInstance
  12. class GammasetScriptController : public ScriptObjectControllerI {
  13. public:
  14. virtual const wchar_t *getClassName();
  15. virtual const wchar_t *getAncestorClassName();
  16. virtual ScriptObjectController *getAncestorController();
  17. virtual int getNumFunctions();
  18. virtual const function_descriptor_struct *getExportedFunctions();
  19. virtual GUID getClassGuid();
  20. virtual ScriptObject *instantiate();
  21. virtual void destroy(ScriptObject *o);
  22. virtual void *encapsulate(ScriptObject *o);
  23. virtual void deencapsulate(void *o);
  24. private:
  25. static function_descriptor_struct exportedFunction[];
  26. };
  27. extern GammasetScriptController *gammasetController;
  28. class SGammaset : public SGAMMASET_SCRIPTPARENT {
  29. public:
  30. SGammaset();
  31. SGammaset(const wchar_t *);
  32. SGammaset(int i);
  33. virtual ~SGammaset();
  34. protected:
  35. const wchar_t *gammasetID;
  36. private:
  37. void __construct();
  38. public:
  39. static scriptVar script_vcpu_apply(SCRIPT_FUNCTION_PARAMS, ScriptObject *o);
  40. static scriptVar script_vcpu_getID(SCRIPT_FUNCTION_PARAMS, ScriptObject *o);
  41. static scriptVar script_vcpu_rename(SCRIPT_FUNCTION_PARAMS, ScriptObject *o, scriptVar name);
  42. static scriptVar script_vcpu_update(SCRIPT_FUNCTION_PARAMS, ScriptObject *o);
  43. static scriptVar script_vcpu_delete(SCRIPT_FUNCTION_PARAMS, ScriptObject *o);
  44. static scriptVar script_vcpu_getDefaultGammaGroup(SCRIPT_FUNCTION_PARAMS, ScriptObject *o);
  45. static scriptVar script_vcpu_getGammaGroup(SCRIPT_FUNCTION_PARAMS, ScriptObject *o, scriptVar name);
  46. static scriptVar script_vcpu_getNumGammaGroups(SCRIPT_FUNCTION_PARAMS, ScriptObject *o);
  47. static scriptVar script_vcpu_enumGammaGroup(SCRIPT_FUNCTION_PARAMS, ScriptObject *o, scriptVar n);
  48. };
  49. #endif