You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #110837 from wheatear-dev/add-gdsoftclass-deeper
Add `GDSOFTCLASS` to deeper inheritors of `Object`
This commit is contained in:
@@ -149,6 +149,8 @@ public:
|
||||
};
|
||||
|
||||
class ResourceFormatLoaderCrypto : public ResourceFormatLoader {
|
||||
GDSOFTCLASS(ResourceFormatLoaderCrypto, ResourceFormatLoader);
|
||||
|
||||
public:
|
||||
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;
|
||||
virtual void get_recognized_extensions(List<String> *p_extensions) const override;
|
||||
@@ -161,6 +163,8 @@ public:
|
||||
};
|
||||
|
||||
class ResourceFormatSaverCrypto : public ResourceFormatSaver {
|
||||
GDSOFTCLASS(ResourceFormatSaverCrypto, ResourceFormatSaver);
|
||||
|
||||
public:
|
||||
virtual Error save(const Ref<Resource> &p_resource, const String &p_path, uint32_t p_flags = 0) override;
|
||||
virtual void get_recognized_extensions(const Ref<Resource> &p_resource, List<String> *p_extensions) const override;
|
||||
|
||||
@@ -48,9 +48,9 @@ class RemoteDebugger::PerformanceProfiler : public EngineProfiler {
|
||||
uint64_t last_monitor_modification_time = 0;
|
||||
|
||||
public:
|
||||
void toggle(bool p_enable, const Array &p_opts) {}
|
||||
void add(const Array &p_data) {}
|
||||
void tick(double p_frame_time, double p_process_time, double p_physics_time, double p_physics_frame_time) {
|
||||
void toggle(bool p_enable, const Array &p_opts) override {}
|
||||
void add(const Array &p_data) override {}
|
||||
void tick(double p_frame_time, double p_process_time, double p_physics_time, double p_physics_frame_time) override {
|
||||
if (!performance) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -37,6 +37,8 @@
|
||||
#include "core/string/ustring.h"
|
||||
|
||||
class RemoteDebuggerPeer : public RefCounted {
|
||||
GDSOFTCLASS(RemoteDebuggerPeer, RefCounted);
|
||||
|
||||
protected:
|
||||
int max_queued_messages = 4096;
|
||||
|
||||
@@ -54,6 +56,8 @@ public:
|
||||
};
|
||||
|
||||
class RemoteDebuggerPeerTCP : public RemoteDebuggerPeer {
|
||||
GDSOFTCLASS(RemoteDebuggerPeerTCP, RemoteDebuggerPeer);
|
||||
|
||||
private:
|
||||
Ref<StreamPeerTCP> tcp_client;
|
||||
Mutex mutex;
|
||||
|
||||
@@ -183,6 +183,8 @@ public:
|
||||
VARIANT_ENUM_CAST(GDExtension::InitializationLevel)
|
||||
|
||||
class GDExtensionResourceLoader : public ResourceFormatLoader {
|
||||
GDSOFTCLASS(GDExtensionResourceLoader, ResourceFormatLoader);
|
||||
|
||||
public:
|
||||
static Error load_gdextension_resource(const String &p_path, Ref<GDExtension> &p_extension);
|
||||
|
||||
|
||||
@@ -35,6 +35,8 @@
|
||||
#include "core/crypto/crypto.h"
|
||||
|
||||
class HTTPClientTCP : public HTTPClient {
|
||||
GDSOFTCLASS(HTTPClientTCP, HTTPClient);
|
||||
|
||||
private:
|
||||
Status status = STATUS_DISCONNECTED;
|
||||
IP::ResolverID resolving = IP::RESOLVER_INVALID_ID;
|
||||
|
||||
@@ -101,6 +101,8 @@ public:
|
||||
};
|
||||
|
||||
class ResourceFormatLoaderImage : public ResourceFormatLoader {
|
||||
GDSOFTCLASS(ResourceFormatLoaderImage, ResourceFormatLoader);
|
||||
|
||||
public:
|
||||
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;
|
||||
virtual void get_recognized_extensions(List<String> *p_extensions) const override;
|
||||
|
||||
@@ -107,6 +107,8 @@ public:
|
||||
};
|
||||
|
||||
class ResourceFormatLoaderJSON : public ResourceFormatLoader {
|
||||
GDSOFTCLASS(ResourceFormatLoaderJSON, ResourceFormatLoader);
|
||||
|
||||
public:
|
||||
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;
|
||||
virtual void get_recognized_extensions(List<String> *p_extensions) const override;
|
||||
@@ -119,6 +121,8 @@ public:
|
||||
};
|
||||
|
||||
class ResourceFormatSaverJSON : public ResourceFormatSaver {
|
||||
GDSOFTCLASS(ResourceFormatSaverJSON, ResourceFormatSaver);
|
||||
|
||||
public:
|
||||
virtual Error save(const Ref<Resource> &p_resource, const String &p_path, uint32_t p_flags = 0) override;
|
||||
virtual void get_recognized_extensions(const Ref<Resource> &p_resource, List<String> *p_extensions) const override;
|
||||
|
||||
@@ -37,6 +37,8 @@
|
||||
class PListNode;
|
||||
|
||||
class PList : public RefCounted {
|
||||
GDSOFTCLASS(PList, RefCounted);
|
||||
|
||||
friend class PListNode;
|
||||
|
||||
public:
|
||||
|
||||
@@ -108,6 +108,8 @@ public:
|
||||
};
|
||||
|
||||
class ResourceFormatLoaderBinary : public ResourceFormatLoader {
|
||||
GDSOFTCLASS(ResourceFormatLoaderBinary, ResourceFormatLoader);
|
||||
|
||||
public:
|
||||
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;
|
||||
virtual void get_recognized_extensions_for_type(const String &p_type, List<String> *p_extensions) const override;
|
||||
@@ -179,6 +181,8 @@ public:
|
||||
};
|
||||
|
||||
class ResourceFormatSaverBinary : public ResourceFormatSaver {
|
||||
GDSOFTCLASS(ResourceFormatSaverBinary, ResourceFormatSaver);
|
||||
|
||||
public:
|
||||
static inline ResourceFormatSaverBinary *singleton = nullptr;
|
||||
virtual Error save(const Ref<Resource> &p_resource, const String &p_path, uint32_t p_flags = 0) override;
|
||||
|
||||
@@ -39,6 +39,8 @@ class ResourceFormatImporter;
|
||||
typedef Ref<Resource> (*ResourceFormatImporterLoadOnStartup)(ResourceFormatImporter *p_importer, const String &p_path, Error *r_error, bool p_use_sub_threads, float *r_progress, ResourceFormatLoader::CacheMode p_cache_mode);
|
||||
|
||||
class ResourceFormatImporter : public ResourceFormatLoader {
|
||||
GDSOFTCLASS(ResourceFormatImporter, ResourceFormatLoader);
|
||||
|
||||
struct PathAndType {
|
||||
String path;
|
||||
String type;
|
||||
|
||||
@@ -35,6 +35,8 @@
|
||||
#include "core/string/translation.h"
|
||||
|
||||
class TranslationLoaderPO : public ResourceFormatLoader {
|
||||
GDSOFTCLASS(TranslationLoaderPO, ResourceFormatLoader);
|
||||
|
||||
public:
|
||||
static Ref<Resource> load_translation(Ref<FileAccess> f, Error *r_error = nullptr);
|
||||
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;
|
||||
|
||||
@@ -50,6 +50,8 @@ class TranslationPO : public Translation {
|
||||
|
||||
// Cache temporary variables related to _get_plural_index() to make it faster
|
||||
class EQNode : public RefCounted {
|
||||
GDSOFTCLASS(EQNode, RefCounted);
|
||||
|
||||
public:
|
||||
String regex;
|
||||
Ref<EQNode> left;
|
||||
|
||||
Reference in New Issue
Block a user