2 #include "resourcemanager.h"
10 manager->remove_resource(*this);
13 Resource::Resource(Resource &&other):
14 manager(other.manager),
15 manager_data(other.manager_data)
19 manager->move_resource(other, *this);
20 manager_data = manager->get_data_for_resource(*this);
23 other.manager_data = 0;
26 void Resource::set_manager(ResourceManager *m)
29 manager->remove_resource(*this);
33 manager->add_resource(*this);
34 manager_data = manager->get_data_for_resource(*this);
40 bool Resource::is_loaded() const
42 return manager ? manager->is_resource_loaded(*this) : true;