Merge pull request #110837 from wheatear-dev/add-gdsoftclass-deeper

Add `GDSOFTCLASS` to deeper inheritors of `Object`
This commit is contained in:
Thaddeus Crews
2025-09-25 12:13:56 -05:00
51 changed files with 154 additions and 18 deletions

View File

@@ -34,6 +34,8 @@
#include "core/io/resource_saver.h"
class ResourceSaverPNG : public ResourceFormatSaver {
GDSOFTCLASS(ResourceSaverPNG, ResourceFormatSaver);
public:
static Error save_image(const String &p_path, const Ref<Image> &p_img);
static Vector<uint8_t> save_image_to_buffer(const Ref<Image> &p_img);

View File

@@ -37,6 +37,8 @@
#include <sys/socket.h>
class NetSocketUnix : public NetSocket {
GDSOFTCLASS(NetSocketUnix, NetSocket);
private:
int _sock = -1;
IP::Type _ip_type = IP::TYPE_NONE;

View File

@@ -38,6 +38,8 @@
#include <ws2tcpip.h>
class NetSocketWinSock : public NetSocket {
GDSOFTCLASS(NetSocketWinSock, NetSocket);
private:
SOCKET _sock = INVALID_SOCKET;
IP::Type _ip_type = IP::TYPE_NONE;