summaryrefslogtreecommitdiffstats
path: root/core/io/resource.h
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2023-07-03 21:29:37 +0200
committerkobewi <kobewi4e@gmail.com>2023-07-17 19:35:57 +0200
commitde4a3fa151d2cef139149bb2b878ec8923ba2ce8 (patch)
tree1a023d3bf44bef9f87522c94c4f951bf164877f5 /core/io/resource.h
parent2c552140686b5366e48c61a1a15001f15359cccc (diff)
downloadredot-engine-de4a3fa151d2cef139149bb2b878ec8923ba2ce8.tar.gz
Unify and streamline connecting to Resource changes
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;