Add GDSOFTCLASS to deeper inheritors of Object

This commit is contained in:
Edward Moulsdale
2025-09-24 19:15:46 +01:00
parent 1ce3101fbc
commit e366471fdc
51 changed files with 154 additions and 18 deletions

View File

@@ -143,6 +143,8 @@ public:
};
class ResourceFormatLoaderText : public ResourceFormatLoader {
GDSOFTCLASS(ResourceFormatLoaderText, ResourceFormatLoader);
public:
static ResourceFormatLoaderText *singleton;
virtual Ref<Resource> load(const String &p_path, const String &p_original_path = "", Error *r_error = nullptr, bool p_use_sub_threads = false, float *r_progress = nullptr, CacheMode p_cache_mode = CACHE_MODE_REUSE) override;
@@ -203,6 +205,8 @@ public:
};
class ResourceFormatSaverText : public ResourceFormatSaver {
GDSOFTCLASS(ResourceFormatSaverText, ResourceFormatSaver);
public:
static ResourceFormatSaverText *singleton;
virtual Error save(const Ref<Resource> &p_resource, const String &p_path, uint32_t p_flags = 0) override;