diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-09-23 12:27:40 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-09-23 12:27:40 +0200 |
commit | 510bc3dc6a91978aa70b2586b0e4efa03ba2b02f (patch) | |
tree | 2c50ccaa82f3d17033572860280eb6c89dac0ef0 /core/io/resource.h | |
parent | 720c236fc09e5453612a1ce71f3e7cc9e75d34c9 (diff) | |
parent | bc3dcf3d404046a9ae8ac5a1aeab4853cb7c082b (diff) | |
download | redot-engine-510bc3dc6a91978aa70b2586b0e4efa03ba2b02f.tar.gz |
Merge pull request #90969 from Naros/expose-resource-and-saver-methods
Expose several resource/resource-saver functions
Diffstat (limited to 'core/io/resource.h')
-rw-r--r-- | core/io/resource.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/io/resource.h b/core/io/resource.h index 2c1a431255..8966c0233c 100644 --- a/core/io/resource.h +++ b/core/io/resource.h @@ -89,6 +89,9 @@ protected: GDVIRTUAL0RC(RID, _get_rid); + GDVIRTUAL1C(_set_path_cache, String); + GDVIRTUAL0(_reset_state); + public: static Node *(*_get_local_scene_func)(); //used by editor static void (*_update_configuration_warning)(); //used by editor @@ -144,11 +147,9 @@ public: virtual RID get_rid() const; // some resources may offer conversion to RID -#ifdef TOOLS_ENABLED //helps keep IDs same number when loading/saving scenes. -1 clears ID and it Returns -1 when no id stored void set_id_for_path(const String &p_path, const String &p_id); String get_id_for_path(const String &p_path) const; -#endif Resource(); ~Resource(); |