| 12345678910111213141516171819202122232425262728293031 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsScriptEnginePrerequisites.h"
- #include "BsScriptCollider.h"
- #include "BsScriptJoint.h"
- namespace BansheeEngine
- {
- /** Interop class between C++ & CLR for SliderJoint. */
- class BS_SCR_BE_EXPORT ScriptSliderJoint : public TScriptJoint<ScriptSliderJoint>
- {
- public:
- SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "NativeSliderJoint")
- private:
- ScriptSliderJoint(MonoObject* instance, const SPtr<Joint>& joint);
- /** Returns the native slider joint wrapped by this object. */
- SliderJoint* getSliderJoint() const;
- /************************************************************************/
- /* CLR HOOKS */
- /************************************************************************/
- static void internal_CreateInstance(MonoObject* instance);
- static float internal_GetPosition(ScriptSliderJoint* thisPtr);
- static float internal_GetSpeed(ScriptSliderJoint* thisPtr);
- static void internal_SetLimit(ScriptSliderJoint* thisPtr, MonoObject* limit);
- static void internal_SetEnableLimit(ScriptSliderJoint* thisPtr, bool enable);
- };
- }
|