BsScriptSliderJoint.h 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsScriptEnginePrerequisites.h"
  5. #include "BsScriptCollider.h"
  6. #include "BsScriptJoint.h"
  7. namespace BansheeEngine
  8. {
  9. /** Interop class between C++ & CLR for SliderJoint. */
  10. class BS_SCR_BE_EXPORT ScriptSliderJoint : public TScriptJoint<ScriptSliderJoint>
  11. {
  12. public:
  13. SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "NativeSliderJoint")
  14. private:
  15. ScriptSliderJoint(MonoObject* instance, const SPtr<Joint>& joint);
  16. /** Returns the native slider joint wrapped by this object. */
  17. SliderJoint* getSliderJoint() const;
  18. /************************************************************************/
  19. /* CLR HOOKS */
  20. /************************************************************************/
  21. static void internal_CreateInstance(MonoObject* instance);
  22. static float internal_GetPosition(ScriptSliderJoint* thisPtr);
  23. static float internal_GetSpeed(ScriptSliderJoint* thisPtr);
  24. static void internal_SetLimit(ScriptSliderJoint* thisPtr, MonoObject* limit);
  25. static void internal_SetEnableLimit(ScriptSliderJoint* thisPtr, bool enable);
  26. };
  27. }