BsResourceMappingRTTI.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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_BEGIN_RTTI_MEMBERS
  17. BS_RTTI_MEMBER_PLAIN(mMapping, 0)
  18. BS_END_RTTI_MEMBERS
  19. public:
  20. ResourceMappingRTTI()
  21. :mInitMembers(this)
  22. { }
  23. const String& getRTTIName() override
  24. {
  25. static String name = "ResourceMapping";
  26. return name;
  27. }
  28. UINT32 getRTTIId() override
  29. {
  30. return TID_ResourceMapping;
  31. }
  32. SPtr<IReflectable> newRTTIObject() override
  33. {
  34. return ResourceMapping::create();
  35. }
  36. };
  37. /** @} */
  38. /** @endcond */
  39. }