diff options
Diffstat (limited to 'core/resource.h')
-rw-r--r-- | core/resource.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/resource.h b/core/resource.h index cf7ffcbd2c..3596abe673 100644 --- a/core/resource.h +++ b/core/resource.h @@ -99,6 +99,7 @@ friend class ResourceCache; String name; String path_cache; + int subindex; virtual bool _use_builtin_script() const { return true; } @@ -129,9 +130,12 @@ public: void set_name(const String& p_name); String get_name() const; - void set_path(const String& p_path,bool p_take_over=false); + virtual void set_path(const String& p_path,bool p_take_over=false); String get_path() const; + void set_subindex(int p_sub_index); + int get_subindex() const; + Ref<Resource> duplicate(bool p_subresources=false); void set_import_metadata(const Ref<ResourceImportMetadata>& p_metadata); |