| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsCorePrerequisites.h"
- #include "BsRTTIType.h"
- #include "BsCBone.h"
- #include "BsGameObjectRTTI.h"
- namespace bs
- {
- /** @cond RTTI */
- /** @addtogroup RTTI-Impl-Engine
- * @{
- */
- class BS_CORE_EXPORT CBoneRTTI : public RTTIType<CBone, Component, CBoneRTTI>
- {
- BS_BEGIN_RTTI_MEMBERS
- BS_RTTI_MEMBER_PLAIN(mBoneName, 0)
- BS_END_RTTI_MEMBERS
- public:
- CBoneRTTI()
- :mInitMembers(this)
- { }
- const String& getRTTIName() override
- {
- static String name = "CBone";
- return name;
- }
- UINT32 getRTTIId() override
- {
- return TID_CBone;
- }
- SPtr<IReflectable> newRTTIObject() override
- {
- return GameObjectRTTI::createGameObject<CBone>();
- }
- };
- /** @} */
- /** @endcond */
- }
|