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