BsResourceMappingRTTI.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsPrerequisites.h"
  5. #include "BsRTTIType.h"
  6. #include "BsGameResourceManager.h"
  7. namespace BansheeEngine
  8. {
  9. /** @cond RTTI */
  10. /** @addtogroup RTTI-Impl-Engine
  11. * @{
  12. */
  13. class BS_EXPORT ResourceMappingRTTI : public RTTIType<ResourceMapping, IReflectable, ResourceMappingRTTI>
  14. {
  15. private:
  16. BS_PLAIN_MEMBER(mMapping)
  17. public:
  18. ResourceMappingRTTI()
  19. {
  20. BS_ADD_PLAIN_FIELD(mMapping, 0);
  21. }
  22. const String& getRTTIName() override
  23. {
  24. static String name = "ResourceMapping";
  25. return name;
  26. }
  27. UINT32 getRTTIId() override
  28. {
  29. return TID_ResourceMapping;
  30. }
  31. std::shared_ptr<IReflectable> newRTTIObject() override
  32. {
  33. return ResourceMapping::create();
  34. }
  35. };
  36. /** @} */
  37. /** @endcond */
  38. }