BsScriptHandleSliderDisc.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsScriptEditorPrerequisites.h"
  5. #include "BsScriptObject.h"
  6. #include "Wrappers/BsScriptHandleSlider.h"
  7. #include "Handles/BsHandleSliderDisc.h"
  8. #include "Math/BsVector3.h"
  9. namespace bs
  10. {
  11. /** @addtogroup ScriptInteropEditor
  12. * @{
  13. */
  14. /** Interop class between C++ & CLR for HandleSliderDisc. */
  15. class BS_SCR_BED_EXPORT ScriptHandleSliderDisc : public ScriptObject <ScriptHandleSliderDisc, ScriptHandleSliderBase>
  16. {
  17. public:
  18. SCRIPT_OBJ(EDITOR_ASSEMBLY, EDITOR_NS, "HandleSliderDisc")
  19. protected:
  20. /** @copydoc ScriptHandleSliderBase::getSlider */
  21. virtual HandleSlider* getSlider() const override { return mSlider; }
  22. /** @copydoc ScriptHandleSliderBase::destroyInternal */
  23. virtual void destroyInternal() override;
  24. private:
  25. ScriptHandleSliderDisc(MonoObject* instance, const Vector3& normal, float radius, bool fixedScale, UINT64 layer);
  26. ~ScriptHandleSliderDisc();
  27. HandleSliderDisc* mSlider;
  28. /************************************************************************/
  29. /* CLR HOOKS */
  30. /************************************************************************/
  31. static void internal_CreateInstance(MonoObject* instance, Vector3* normal, float radius, bool fixedScale, UINT64 layer);
  32. static void internal_GetDelta(ScriptHandleSliderDisc* nativeInstance, float* value);
  33. static void internal_GetStartAngle(ScriptHandleSliderDisc* nativeInstance, float* value);
  34. static void internal_SetCutoffPlane(ScriptHandleSliderDisc* nativeInstance, float value, bool enabled);
  35. };
  36. /** @} */
  37. }