diff options
Diffstat (limited to 'core/resource.h')
-rw-r--r-- | core/resource.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/core/resource.h b/core/resource.h index f0c86631cc..8bcdd6b4b7 100644 --- a/core/resource.h +++ b/core/resource.h @@ -87,7 +87,7 @@ public: class Resource : public Reference { - + OBJ_TYPE( Resource, Reference ); OBJ_CATEGORY("Resources"); RES_BASE_EXTENSION("res"); @@ -95,8 +95,8 @@ class Resource : public Reference { Set<ObjectID> owners; friend class ResBase; -friend class ResourceCache; - +friend class ResourceCache; + String name; String path_cache; int subindex; @@ -109,7 +109,7 @@ friend class ResourceCache; #endif protected: - + void emit_changed(); void notify_change_to_owners(); @@ -120,7 +120,7 @@ protected: void _set_path(const String& p_path); void _take_over_path(const String& p_path); public: - + virtual bool can_reload_from_file(); virtual void reload_from_file(); @@ -151,7 +151,7 @@ public: virtual RID get_rid() const; // some resources may offer conversion to RID - Resource(); + Resource(); ~Resource(); }; @@ -160,11 +160,11 @@ public: typedef Ref<Resource> RES; class ResourceCache { -friend class Resource; - static HashMap<String,Resource*> resources; +friend class Resource; + static HashMap<String,Resource*> resources; friend void unregister_core_types(); static void clear(); -public: +public: static void reload_externals(); static bool has(const String& p_path); |