BsCBoneRTTI.h 972 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsCorePrerequisites.h"
  5. #include "BsRTTIType.h"
  6. #include "BsCBone.h"
  7. #include "BsGameObjectRTTI.h"
  8. namespace bs
  9. {
  10. /** @cond RTTI */
  11. /** @addtogroup RTTI-Impl-Engine
  12. * @{
  13. */
  14. class BS_CORE_EXPORT CBoneRTTI : public RTTIType<CBone, Component, CBoneRTTI>
  15. {
  16. BS_BEGIN_RTTI_MEMBERS
  17. BS_RTTI_MEMBER_PLAIN(mBoneName, 0)
  18. BS_END_RTTI_MEMBERS
  19. public:
  20. CBoneRTTI()
  21. :mInitMembers(this)
  22. { }
  23. const String& getRTTIName() override
  24. {
  25. static String name = "CBone";
  26. return name;
  27. }
  28. UINT32 getRTTIId() override
  29. {
  30. return TID_CBone;
  31. }
  32. SPtr<IReflectable> newRTTIObject() override
  33. {
  34. return GameObjectRTTI::createGameObject<CBone>();
  35. }
  36. };
  37. /** @} */
  38. /** @endcond */
  39. }