BsCDistanceJointRTTI.h 1.4 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 "BsCDistanceJoint.h"
  7. #include "BsGameObjectRTTI.h"
  8. namespace BansheeEngine
  9. {
  10. /** @cond RTTI */
  11. /** @addtogroup RTTI-Impl-Core
  12. * @{
  13. */
  14. class BS_CORE_EXPORT CDistanceJointRTTI : public RTTIType<CDistanceJoint, CJoint, CDistanceJointRTTI>
  15. {
  16. BS_BEGIN_RTTI_MEMBERS
  17. BS_RTTI_MEMBER_PLAIN_NAMED(mFlag, mDesc.flag, 0)
  18. BS_RTTI_MEMBER_PLAIN_NAMED(mMinDistance, mDesc.minDistance, 1)
  19. BS_RTTI_MEMBER_PLAIN_NAMED(mMaxDistance, mDesc.maxDistance, 2)
  20. BS_RTTI_MEMBER_PLAIN_NAMED(mTolerance, mDesc.tolerance, 3)
  21. BS_RTTI_MEMBER_PLAIN_NAMED(mSpringDamping, mDesc.spring.damping, 4)
  22. BS_RTTI_MEMBER_PLAIN_NAMED(mSpringStiffness, mDesc.spring.stiffness, 5)
  23. BS_END_RTTI_MEMBERS
  24. public:
  25. CDistanceJointRTTI()
  26. :mInitMembers(this)
  27. { }
  28. const String& getRTTIName() override
  29. {
  30. static String name = "CDistanceJoint";
  31. return name;
  32. }
  33. UINT32 getRTTIId() override
  34. {
  35. return TID_CDistanceJoint;
  36. }
  37. SPtr<IReflectable> newRTTIObject() override
  38. {
  39. return GameObjectRTTI::createGameObject<CDistanceJoint>();
  40. }
  41. };
  42. /** @} */
  43. /** @endcond */
  44. }