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/BsCCapsuleCollider.h"
8#include "Private/RTTI/BsGameObjectRTTI.h"
9
10namespace bs
11{
12 /** @cond RTTI */
13 /** @addtogroup RTTI-Impl-Core
14 * @{
15 */
16
17 class BS_CORE_EXPORT CCapsuleColliderRTTI : public RTTIType<CCapsuleCollider, CCollider, CCapsuleColliderRTTI>
18 {
19 private:
20 BS_BEGIN_RTTI_MEMBERS
21 BS_RTTI_MEMBER_PLAIN(mNormal, 0)
22 BS_RTTI_MEMBER_PLAIN(mRadius, 1)
23 BS_RTTI_MEMBER_PLAIN(mHalfHeight, 2)
24 BS_END_RTTI_MEMBERS
25 public:
26 const String& getRTTIName() override
27 {
28 static String name = "CCapsuleCollider";
29 return name;
30 }
31
32 UINT32 getRTTIId() override
33 {
34 return TID_CCapsuleCollider;
35 }
36
37 SPtr<IReflectable> newRTTIObject() override
38 {
39 return SceneObject::createEmptyComponent<CCapsuleCollider>();
40 }
41 };
42
43 /** @} */
44 /** @endcond */
45}
46