BsScriptGUIGameObjectField.h 1.1 KB

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include "BsScriptEditorPrerequisites.h"
  3. #include "BsScriptGUIElement.h"
  4. namespace BansheeEngine
  5. {
  6. class BS_SCR_BED_EXPORT ScriptGUIGameObjectField : public TScriptGUIElement<ScriptGUIGameObjectField>
  7. {
  8. public:
  9. SCRIPT_OBJ(EDITOR_ASSEMBLY, "BansheeEditor", "GUIGameObjectField")
  10. private:
  11. static void internal_createInstance(MonoObject* instance, MonoReflectionType* type, MonoObject* title, UINT32 titleWidth,
  12. MonoString* style, MonoArray* guiOptions, bool withTitle);
  13. static void internal_getValue(ScriptGUIGameObjectField* nativeInstance, MonoObject** output);
  14. static void internal_setValue(ScriptGUIGameObjectField* nativeInstance, MonoObject* value);
  15. static void internal_setTint(ScriptGUIGameObjectField* nativeInstance, Color color);
  16. static void onChanged(MonoObject* instance, const HGameObject& newValue);
  17. static MonoObject* nativeToManagedGO(const HGameObject& instance);
  18. ScriptGUIGameObjectField(MonoObject* instance, GUIGameObjectField* GOField);
  19. typedef void(__stdcall *OnChangedThunkDef) (MonoObject*, MonoObject*, MonoException**);
  20. static OnChangedThunkDef onChangedThunk;
  21. };
  22. }