BsCSliderJointRTTI.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsCorePrerequisites.h"
  5. #include "BsRTTIType.h"
  6. #include "BsCSliderJoint.h"
  7. #include "BsGameObjectRTTI.h"
  8. namespace BansheeEngine
  9. {
  10. /** @cond RTTI */
  11. /** @addtogroup RTTI-Impl-Core
  12. * @{
  13. */
  14. class BS_CORE_EXPORT CSliderJointRTTI : public RTTIType<CSliderJoint, CJoint, CSliderJointRTTI>
  15. {
  16. BS_BEGIN_RTTI_MEMBERS
  17. BS_RTTI_MEMBER_PLAIN_NAMED(mFlag, mDesc.flag, 0)
  18. BS_RTTI_MEMBER_PLAIN_NAMED(mLimitLower, mDesc.limit.lower, 1)
  19. BS_RTTI_MEMBER_PLAIN_NAMED(mLimitUpper, mDesc.limit.upper, 2)
  20. BS_RTTI_MEMBER_PLAIN_NAMED(mLimitContactDist, mDesc.limit.contactDist, 3)
  21. BS_RTTI_MEMBER_PLAIN_NAMED(mLimitRestitution, mDesc.limit.restitution, 4)
  22. BS_RTTI_MEMBER_PLAIN_NAMED(mSpringDamping, mDesc.limit.spring.damping, 5)
  23. BS_RTTI_MEMBER_PLAIN_NAMED(mSpringStiffness, mDesc.limit.spring.stiffness, 6)
  24. BS_END_RTTI_MEMBERS
  25. public:
  26. CSliderJointRTTI()
  27. :mInitMembers(this)
  28. { }
  29. const String& getRTTIName() override
  30. {
  31. static String name = "CSliderJoint";
  32. return name;
  33. }
  34. UINT32 getRTTIId() override
  35. {
  36. return TID_CSliderJoint;
  37. }
  38. SPtr<IReflectable> newRTTIObject() override
  39. {
  40. return GameObjectRTTI::createGameObject<CSliderJoint>();
  41. }
  42. };
  43. /** @} */
  44. /** @endcond */
  45. }