BsCAnimationRTTI.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 "BsCAnimation.h"
  7. #include "BsGameObjectRTTI.h"
  8. namespace bs
  9. {
  10. /** @cond RTTI */
  11. /** @addtogroup RTTI-Impl-Engine
  12. * @{
  13. */
  14. class BS_CORE_EXPORT CAnimationRTTI : public RTTIType<CAnimation, Component, CAnimationRTTI>
  15. {
  16. BS_BEGIN_RTTI_MEMBERS
  17. BS_RTTI_MEMBER_REFL(mDefaultClip, 0)
  18. BS_RTTI_MEMBER_PLAIN(mWrapMode, 1)
  19. BS_RTTI_MEMBER_PLAIN(mSpeed, 2)
  20. BS_RTTI_MEMBER_PLAIN(mEnableCull, 3)
  21. BS_RTTI_MEMBER_PLAIN(mUseBounds, 4)
  22. BS_RTTI_MEMBER_PLAIN(mBounds, 5)
  23. BS_END_RTTI_MEMBERS
  24. public:
  25. CAnimationRTTI()
  26. :mInitMembers(this)
  27. { }
  28. const String& getRTTIName() override
  29. {
  30. static String name = "CAnimation";
  31. return name;
  32. }
  33. UINT32 getRTTIId() override
  34. {
  35. return TID_CAnimation;
  36. }
  37. SPtr<IReflectable> newRTTIObject() override
  38. {
  39. return GameObjectRTTI::createGameObject<CAnimation>();
  40. }
  41. };
  42. /** @} */
  43. /** @endcond */
  44. }