BsScriptCJoint.generated.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #pragma once
  2. #include "BsScriptEnginePrerequisites.h"
  3. #include "Wrappers/BsScriptComponent.h"
  4. #include "../../../bsf/Source/Foundation/bsfCore/Physics/BsFJoint.h"
  5. #include "Math/BsVector3.h"
  6. #include "Math/BsQuaternion.h"
  7. namespace bs
  8. {
  9. class CJoint;
  10. class BS_SCR_BE_EXPORT ScriptCJointBase : public ScriptComponentBase
  11. {
  12. public:
  13. ScriptCJointBase(MonoObject* instance);
  14. virtual ~ScriptCJointBase() {}
  15. };
  16. class BS_SCR_BE_EXPORT ScriptCJoint : public TScriptComponent<ScriptCJoint, CJoint, ScriptCJointBase>
  17. {
  18. public:
  19. SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "Joint")
  20. ScriptCJoint(MonoObject* managedInstance, const GameObjectHandle<CJoint>& value);
  21. private:
  22. void onJointBreak();
  23. typedef void(BS_THUNKCALL *onJointBreakThunkDef) (MonoObject*, MonoException**);
  24. static onJointBreakThunkDef onJointBreakThunk;
  25. static MonoObject* Internal_getBody(ScriptCJointBase* thisPtr, JointBody body);
  26. static void Internal_setBody(ScriptCJointBase* thisPtr, JointBody body, MonoObject* value);
  27. static void Internal_getPosition(ScriptCJointBase* thisPtr, JointBody body, Vector3* __output);
  28. static void Internal_getRotation(ScriptCJointBase* thisPtr, JointBody body, Quaternion* __output);
  29. static void Internal_setTransform(ScriptCJointBase* thisPtr, JointBody body, Vector3* position, Quaternion* rotation);
  30. static float Internal_getBreakForce(ScriptCJointBase* thisPtr);
  31. static void Internal_setBreakForce(ScriptCJointBase* thisPtr, float force);
  32. static float Internal_getBreakTorque(ScriptCJointBase* thisPtr);
  33. static void Internal_setBreakTorque(ScriptCJointBase* thisPtr, float torque);
  34. static bool Internal_getEnableCollision(ScriptCJointBase* thisPtr);
  35. static void Internal_setEnableCollision(ScriptCJointBase* thisPtr, bool value);
  36. };
  37. }