#include "BsResource.h" #include "BsResourceRTTI.h" #include "BsResources.h" #include "BsUUID.h" #include "BsResourceMetaData.h" #include "BsRenderSystem.h" namespace BansheeEngine { Resource::Resource(bool initializeOnRenderThread) :CoreObject(initializeOnRenderThread), mSize(0) { mMetaData = bs_shared_ptr(); } const WString& Resource::getName() const { return mMetaData->displayName; } void Resource::setName(const WString& name) { mMetaData->displayName = name; } RTTITypeBase* Resource::getRTTIStatic() { return ResourceRTTI::instance(); } RTTITypeBase* Resource::getRTTI() const { return Resource::getRTTIStatic(); } }