| 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/BsCFixedJoint.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 CFixedJointRTTI : public RTTIType<CFixedJoint, CJoint, CFixedJointRTTI> | 
| 18 | { | 
| 19 | public: | 
| 20 | CFixedJointRTTI() | 
| 21 | { } | 
| 22 | |
| 23 | const String& getRTTIName() override | 
| 24 | { | 
| 25 | 			static String name = "CFixedJoint";  | 
| 26 | return name; | 
| 27 | } | 
| 28 | |
| 29 | UINT32 getRTTIId() override | 
| 30 | { | 
| 31 | return TID_CFixedJoint; | 
| 32 | } | 
| 33 | |
| 34 | SPtr<IReflectable> newRTTIObject() override | 
| 35 | { | 
| 36 | return SceneObject::createEmptyComponent<CFixedJoint>(); | 
| 37 | } | 
| 38 | }; | 
| 39 | |
| 40 | /** @} */ | 
| 41 | /** @endcond */ | 
| 42 | } |