1 | //************************************ bs::framework - Copyright 2018 Marko Pintera **************************************// |
2 | //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// |
3 | #pragma once |
4 | |
5 | #include "BsCorePrerequisites.h" |
6 | #include "Reflection/BsRTTIType.h" |
7 | #include "Components/BsCSliderJoint.h" |
8 | #include "Private/RTTI/BsGameObjectRTTI.h" |
9 | |
10 | namespace bs |
11 | { |
12 | /** @cond RTTI */ |
13 | /** @addtogroup RTTI-Impl-Core |
14 | * @{ |
15 | */ |
16 | |
17 | class BS_CORE_EXPORT CSliderJointRTTI : public RTTIType<CSliderJoint, CJoint, CSliderJointRTTI> |
18 | { |
19 | BS_BEGIN_RTTI_MEMBERS |
20 | BS_RTTI_MEMBER_PLAIN_NAMED(mFlag, mDesc.flag, 0) |
21 | BS_RTTI_MEMBER_PLAIN_NAMED(mLimitLower, mDesc.limit.lower, 1) |
22 | BS_RTTI_MEMBER_PLAIN_NAMED(mLimitUpper, mDesc.limit.upper, 2) |
23 | BS_RTTI_MEMBER_PLAIN_NAMED(mLimitContactDist, mDesc.limit.contactDist, 3) |
24 | BS_RTTI_MEMBER_PLAIN_NAMED(mLimitRestitution, mDesc.limit.restitution, 4) |
25 | BS_RTTI_MEMBER_PLAIN_NAMED(mSpringDamping, mDesc.limit.spring.damping, 5) |
26 | BS_RTTI_MEMBER_PLAIN_NAMED(mSpringStiffness, mDesc.limit.spring.stiffness, 6) |
27 | BS_END_RTTI_MEMBERS |
28 | public: |
29 | const String& getRTTIName() override |
30 | { |
31 | static String name = "CSliderJoint" ; |
32 | return name; |
33 | } |
34 | |
35 | UINT32 getRTTIId() override |
36 | { |
37 | return TID_CSliderJoint; |
38 | } |
39 | |
40 | SPtr<IReflectable> newRTTIObject() override |
41 | { |
42 | return SceneObject::createEmptyComponent<CSliderJoint>(); |
43 | } |
44 | }; |
45 | |
46 | /** @} */ |
47 | /** @endcond */ |
48 | } |
49 | |