mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Merge pull request #110837 from wheatear-dev/add-gdsoftclass-deeper
Add `GDSOFTCLASS` to deeper inheritors of `Object`
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user