BsScriptCD6Joint.generated.cpp 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. #include "BsScriptCD6Joint.generated.h"
  2. #include "BsMonoMethod.h"
  3. #include "BsMonoClass.h"
  4. #include "BsMonoUtil.h"
  5. #include "../../../bsf/Source/Foundation/bsfCore/Components/BsCD6Joint.h"
  6. #include "BsScriptD6JointDrive.generated.h"
  7. #include "Wrappers/BsScriptVector.h"
  8. #include "BsScriptLimitLinear.generated.h"
  9. #include "BsScriptLimitAngularRange.generated.h"
  10. #include "BsScriptLimitConeRange.generated.h"
  11. #include "Wrappers/BsScriptQuaternion.h"
  12. namespace bs
  13. {
  14. ScriptCD6Joint::ScriptCD6Joint(MonoObject* managedInstance, const GameObjectHandle<CD6Joint>& value)
  15. :TScriptComponent(managedInstance, value)
  16. {
  17. }
  18. void ScriptCD6Joint::initRuntimeData()
  19. {
  20. metaData.scriptClass->addInternalCall("Internal_getMotion", (void*)&ScriptCD6Joint::Internal_getMotion);
  21. metaData.scriptClass->addInternalCall("Internal_setMotion", (void*)&ScriptCD6Joint::Internal_setMotion);
  22. metaData.scriptClass->addInternalCall("Internal_getTwist", (void*)&ScriptCD6Joint::Internal_getTwist);
  23. metaData.scriptClass->addInternalCall("Internal_getSwingY", (void*)&ScriptCD6Joint::Internal_getSwingY);
  24. metaData.scriptClass->addInternalCall("Internal_getSwingZ", (void*)&ScriptCD6Joint::Internal_getSwingZ);
  25. metaData.scriptClass->addInternalCall("Internal_getLimitLinear", (void*)&ScriptCD6Joint::Internal_getLimitLinear);
  26. metaData.scriptClass->addInternalCall("Internal_setLimitLinear", (void*)&ScriptCD6Joint::Internal_setLimitLinear);
  27. metaData.scriptClass->addInternalCall("Internal_getLimitTwist", (void*)&ScriptCD6Joint::Internal_getLimitTwist);
  28. metaData.scriptClass->addInternalCall("Internal_setLimitTwist", (void*)&ScriptCD6Joint::Internal_setLimitTwist);
  29. metaData.scriptClass->addInternalCall("Internal_getLimitSwing", (void*)&ScriptCD6Joint::Internal_getLimitSwing);
  30. metaData.scriptClass->addInternalCall("Internal_setLimitSwing", (void*)&ScriptCD6Joint::Internal_setLimitSwing);
  31. metaData.scriptClass->addInternalCall("Internal_getDrive", (void*)&ScriptCD6Joint::Internal_getDrive);
  32. metaData.scriptClass->addInternalCall("Internal_setDrive", (void*)&ScriptCD6Joint::Internal_setDrive);
  33. metaData.scriptClass->addInternalCall("Internal_getDrivePosition", (void*)&ScriptCD6Joint::Internal_getDrivePosition);
  34. metaData.scriptClass->addInternalCall("Internal_getDriveRotation", (void*)&ScriptCD6Joint::Internal_getDriveRotation);
  35. metaData.scriptClass->addInternalCall("Internal_setDriveTransform", (void*)&ScriptCD6Joint::Internal_setDriveTransform);
  36. metaData.scriptClass->addInternalCall("Internal_getDriveLinearVelocity", (void*)&ScriptCD6Joint::Internal_getDriveLinearVelocity);
  37. metaData.scriptClass->addInternalCall("Internal_getDriveAngularVelocity", (void*)&ScriptCD6Joint::Internal_getDriveAngularVelocity);
  38. metaData.scriptClass->addInternalCall("Internal_setDriveVelocity", (void*)&ScriptCD6Joint::Internal_setDriveVelocity);
  39. }
  40. D6JointMotion ScriptCD6Joint::Internal_getMotion(ScriptCD6Joint* thisPtr, D6JointAxis axis)
  41. {
  42. D6JointMotion tmp__output;
  43. tmp__output = thisPtr->getHandle()->getMotion(axis);
  44. D6JointMotion __output;
  45. __output = tmp__output;
  46. return __output;
  47. }
  48. void ScriptCD6Joint::Internal_setMotion(ScriptCD6Joint* thisPtr, D6JointAxis axis, D6JointMotion motion)
  49. {
  50. thisPtr->getHandle()->setMotion(axis, motion);
  51. }
  52. void ScriptCD6Joint::Internal_getTwist(ScriptCD6Joint* thisPtr, Radian* __output)
  53. {
  54. Radian tmp__output;
  55. tmp__output = thisPtr->getHandle()->getTwist();
  56. *__output = tmp__output;
  57. }
  58. void ScriptCD6Joint::Internal_getSwingY(ScriptCD6Joint* thisPtr, Radian* __output)
  59. {
  60. Radian tmp__output;
  61. tmp__output = thisPtr->getHandle()->getSwingY();
  62. *__output = tmp__output;
  63. }
  64. void ScriptCD6Joint::Internal_getSwingZ(ScriptCD6Joint* thisPtr, Radian* __output)
  65. {
  66. Radian tmp__output;
  67. tmp__output = thisPtr->getHandle()->getSwingZ();
  68. *__output = tmp__output;
  69. }
  70. void ScriptCD6Joint::Internal_getLimitLinear(ScriptCD6Joint* thisPtr, __LimitLinearInterop* __output)
  71. {
  72. LimitLinear tmp__output;
  73. tmp__output = thisPtr->getHandle()->getLimitLinear();
  74. __LimitLinearInterop interop__output;
  75. interop__output = ScriptLimitLinear::toInterop(tmp__output);
  76. MonoUtil::valueCopy(__output, &interop__output, ScriptLimitLinear::getMetaData()->scriptClass->_getInternalClass());
  77. }
  78. void ScriptCD6Joint::Internal_setLimitLinear(ScriptCD6Joint* thisPtr, __LimitLinearInterop* limit)
  79. {
  80. LimitLinear tmplimit;
  81. tmplimit = ScriptLimitLinear::fromInterop(*limit);
  82. thisPtr->getHandle()->setLimitLinear(tmplimit);
  83. }
  84. void ScriptCD6Joint::Internal_getLimitTwist(ScriptCD6Joint* thisPtr, __LimitAngularRangeInterop* __output)
  85. {
  86. LimitAngularRange tmp__output;
  87. tmp__output = thisPtr->getHandle()->getLimitTwist();
  88. __LimitAngularRangeInterop interop__output;
  89. interop__output = ScriptLimitAngularRange::toInterop(tmp__output);
  90. MonoUtil::valueCopy(__output, &interop__output, ScriptLimitAngularRange::getMetaData()->scriptClass->_getInternalClass());
  91. }
  92. void ScriptCD6Joint::Internal_setLimitTwist(ScriptCD6Joint* thisPtr, __LimitAngularRangeInterop* limit)
  93. {
  94. LimitAngularRange tmplimit;
  95. tmplimit = ScriptLimitAngularRange::fromInterop(*limit);
  96. thisPtr->getHandle()->setLimitTwist(tmplimit);
  97. }
  98. void ScriptCD6Joint::Internal_getLimitSwing(ScriptCD6Joint* thisPtr, __LimitConeRangeInterop* __output)
  99. {
  100. LimitConeRange tmp__output;
  101. tmp__output = thisPtr->getHandle()->getLimitSwing();
  102. __LimitConeRangeInterop interop__output;
  103. interop__output = ScriptLimitConeRange::toInterop(tmp__output);
  104. MonoUtil::valueCopy(__output, &interop__output, ScriptLimitConeRange::getMetaData()->scriptClass->_getInternalClass());
  105. }
  106. void ScriptCD6Joint::Internal_setLimitSwing(ScriptCD6Joint* thisPtr, __LimitConeRangeInterop* limit)
  107. {
  108. LimitConeRange tmplimit;
  109. tmplimit = ScriptLimitConeRange::fromInterop(*limit);
  110. thisPtr->getHandle()->setLimitSwing(tmplimit);
  111. }
  112. void ScriptCD6Joint::Internal_getDrive(ScriptCD6Joint* thisPtr, D6JointDriveType type, D6JointDrive* __output)
  113. {
  114. D6JointDrive tmp__output;
  115. tmp__output = thisPtr->getHandle()->getDrive(type);
  116. *__output = tmp__output;
  117. }
  118. void ScriptCD6Joint::Internal_setDrive(ScriptCD6Joint* thisPtr, D6JointDriveType type, D6JointDrive* drive)
  119. {
  120. thisPtr->getHandle()->setDrive(type, *drive);
  121. }
  122. void ScriptCD6Joint::Internal_getDrivePosition(ScriptCD6Joint* thisPtr, Vector3* __output)
  123. {
  124. Vector3 tmp__output;
  125. tmp__output = thisPtr->getHandle()->getDrivePosition();
  126. *__output = tmp__output;
  127. }
  128. void ScriptCD6Joint::Internal_getDriveRotation(ScriptCD6Joint* thisPtr, Quaternion* __output)
  129. {
  130. Quaternion tmp__output;
  131. tmp__output = thisPtr->getHandle()->getDriveRotation();
  132. *__output = tmp__output;
  133. }
  134. void ScriptCD6Joint::Internal_setDriveTransform(ScriptCD6Joint* thisPtr, Vector3* position, Quaternion* rotation)
  135. {
  136. thisPtr->getHandle()->setDriveTransform(*position, *rotation);
  137. }
  138. void ScriptCD6Joint::Internal_getDriveLinearVelocity(ScriptCD6Joint* thisPtr, Vector3* __output)
  139. {
  140. Vector3 tmp__output;
  141. tmp__output = thisPtr->getHandle()->getDriveLinearVelocity();
  142. *__output = tmp__output;
  143. }
  144. void ScriptCD6Joint::Internal_getDriveAngularVelocity(ScriptCD6Joint* thisPtr, Vector3* __output)
  145. {
  146. Vector3 tmp__output;
  147. tmp__output = thisPtr->getHandle()->getDriveAngularVelocity();
  148. *__output = tmp__output;
  149. }
  150. void ScriptCD6Joint::Internal_setDriveVelocity(ScriptCD6Joint* thisPtr, Vector3* linear, Vector3* angular)
  151. {
  152. thisPtr->getHandle()->setDriveVelocity(*linear, *angular);
  153. }
  154. }