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/BsCAnimation.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 CAnimationRTTI : public RTTIType<CAnimation, Component, CAnimationRTTI>
18 {
19 BS_BEGIN_RTTI_MEMBERS
20 BS_RTTI_MEMBER_REFL(mDefaultClip, 0)
21 BS_RTTI_MEMBER_PLAIN(mWrapMode, 1)
22 BS_RTTI_MEMBER_PLAIN(mSpeed, 2)
23 BS_RTTI_MEMBER_PLAIN(mEnableCull, 3)
24 BS_RTTI_MEMBER_PLAIN(mUseBounds, 4)
25 BS_RTTI_MEMBER_PLAIN(mBounds, 5)
26 BS_END_RTTI_MEMBERS
27 public:
28 const String& getRTTIName() override
29 {
30 static String name = "CAnimation";
31 return name;
32 }
33
34 UINT32 getRTTIId() override
35 {
36 return TID_CAnimation;
37 }
38
39 SPtr<IReflectable> newRTTIObject() override
40 {
41 return SceneObject::createEmptyComponent<CAnimation>();
42 }
43 };
44
45 /** @} */
46 /** @endcond */
47}
48