summaryrefslogtreecommitdiffstats
path: root/core/io/resource.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/io/resource.h')
-rw-r--r--core/io/resource.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/core/io/resource.h b/core/io/resource.h
index 5135664f36..af8c275a1c 100644
--- a/core/io/resource.h
+++ b/core/io/resource.h
@@ -54,8 +54,6 @@ public:
virtual String get_base_extension() const { return "res"; }
private:
- HashSet<ObjectID> owners;
-
friend class ResBase;
friend class ResourceCache;
@@ -76,10 +74,6 @@ private:
SelfList<Resource> remapped_list;
protected:
- void emit_changed();
-
- void notify_change_to_owners();
-
virtual void _resource_path_changed();
static void _bind_methods();
@@ -96,8 +90,9 @@ public:
virtual Error copy_from(const Ref<Resource> &p_resource);
virtual void reload_from_file();
- void register_owner(Object *p_owner);
- void unregister_owner(Object *p_owner);
+ void emit_changed();
+ void connect_changed(const Callable &p_callable, uint32_t p_flags = 0);
+ void disconnect_changed(const Callable &p_callable);
void set_name(const String &p_name);
String get_name() const;