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