BsScriptFixedJoint.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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. /** @addtogroup ScriptInteropEngine
  10. * @{
  11. */
  12. /** Interop class between C++ & CLR for FixedJoint. */
  13. class BS_SCR_BE_EXPORT ScriptFixedJoint : public TScriptJoint<ScriptFixedJoint>
  14. {
  15. public:
  16. SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "NativeFixedJoint")
  17. private:
  18. ScriptFixedJoint(MonoObject* instance, const SPtr<Joint>& joint);
  19. /** Returns the native fixed joint wrapped by this object. */
  20. FixedJoint* getFixedJoint() const;
  21. /************************************************************************/
  22. /* CLR HOOKS */
  23. /************************************************************************/
  24. static void internal_CreateInstance(MonoObject* instance, ScriptCommonJointData* commonData);
  25. };
  26. /** @} */
  27. }