1//************************************ bs::framework - Copyright 2018 Marko Pintera **************************************//
2//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
3#pragma once
4
5#include "BsCorePrerequisites.h"
6#include "Reflection/BsRTTIType.h"
7#include "Resources/BsSavedResourceData.h"
8
9namespace bs
10{
11 /** @cond RTTI */
12 /** @addtogroup RTTI-Impl-Core
13 * @{
14 */
15
16 class BS_CORE_EXPORT SavedResourceDataRTTI : public RTTIType <SavedResourceData, IReflectable, SavedResourceDataRTTI>
17 {
18 private:
19 BS_BEGIN_RTTI_MEMBERS
20 BS_RTTI_MEMBER_PLAIN_ARRAY(mDependencies, 0)
21 BS_RTTI_MEMBER_PLAIN(mAllowAsync, 1)
22 BS_RTTI_MEMBER_PLAIN(mCompressionMethod, 2)
23 BS_END_RTTI_MEMBERS
24
25 public:
26 const String& getRTTIName() override
27 {
28 static String name = "ResourceDependencies";
29 return name;
30 }
31
32 UINT32 getRTTIId() override
33 {
34 return TID_ResourceDependencies;
35 }
36
37 SPtr<IReflectable> newRTTIObject() override
38 {
39 return bs_shared_ptr_new<SavedResourceData>();
40 }
41 };
42
43 /** @} */
44 /** @endcond */
45}
46