Rename Reference to RefCounted
This commit is contained in:
parent
fbb5a541ef
commit
04688b92ff
270 changed files with 926 additions and 926 deletions
|
|
@ -32,12 +32,12 @@
|
|||
#define CONFIG_FILE_H
|
||||
|
||||
#include "core/io/file_access.h"
|
||||
#include "core/object/reference.h"
|
||||
#include "core/object/ref_counted.h"
|
||||
#include "core/templates/ordered_hash_map.h"
|
||||
#include "core/variant/variant_parser.h"
|
||||
|
||||
class ConfigFile : public Reference {
|
||||
GDCLASS(ConfigFile, Reference);
|
||||
class ConfigFile : public RefCounted {
|
||||
GDCLASS(ConfigFile, RefCounted);
|
||||
|
||||
OrderedHashMap<String, OrderedHashMap<String, Variant>> values;
|
||||
|
||||
|
|
|
|||
|
|
@ -34,8 +34,8 @@
|
|||
#include "core/io/net_socket.h"
|
||||
#include "core/io/packet_peer_dtls.h"
|
||||
|
||||
class DTLSServer : public Reference {
|
||||
GDCLASS(DTLSServer, Reference);
|
||||
class DTLSServer : public RefCounted {
|
||||
GDCLASS(DTLSServer, RefCounted);
|
||||
|
||||
protected:
|
||||
static DTLSServer *(*_create)();
|
||||
|
|
|
|||
|
|
@ -34,10 +34,10 @@
|
|||
#include "core/io/ip.h"
|
||||
#include "core/io/stream_peer.h"
|
||||
#include "core/io/stream_peer_tcp.h"
|
||||
#include "core/object/reference.h"
|
||||
#include "core/object/ref_counted.h"
|
||||
|
||||
class HTTPClient : public Reference {
|
||||
GDCLASS(HTTPClient, Reference);
|
||||
class HTTPClient : public RefCounted {
|
||||
GDCLASS(HTTPClient, RefCounted);
|
||||
|
||||
public:
|
||||
enum ResponseCode {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
#ifndef JSON_H
|
||||
#define JSON_H
|
||||
|
||||
#include "core/object/reference.h"
|
||||
#include "core/object/ref_counted.h"
|
||||
#include "core/variant/variant.h"
|
||||
class JSON {
|
||||
enum TokenType {
|
||||
|
|
@ -74,8 +74,8 @@ public:
|
|||
static Error parse(const String &p_json, Variant &r_ret, String &r_err_str, int &r_err_line);
|
||||
};
|
||||
|
||||
class JSONParser : public Reference {
|
||||
GDCLASS(JSONParser, Reference);
|
||||
class JSONParser : public RefCounted {
|
||||
GDCLASS(JSONParser, RefCounted);
|
||||
|
||||
Variant data;
|
||||
String string;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include "marshalls.h"
|
||||
|
||||
#include "core/object/reference.h"
|
||||
#include "core/object/ref_counted.h"
|
||||
#include "core/os/keyboard.h"
|
||||
#include "core/string/print_string.h"
|
||||
|
||||
|
|
@ -489,8 +489,8 @@ Error decode_variant(Variant &r_variant, const uint8_t *p_buffer, int p_len, int
|
|||
obj->set(str, value);
|
||||
}
|
||||
|
||||
if (Object::cast_to<Reference>(obj)) {
|
||||
REF ref = REF(Object::cast_to<Reference>(obj));
|
||||
if (Object::cast_to<RefCounted>(obj)) {
|
||||
REF ref = REF(Object::cast_to<RefCounted>(obj));
|
||||
r_variant = ref;
|
||||
} else {
|
||||
r_variant = obj;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
#ifndef MARSHALLS_H
|
||||
#define MARSHALLS_H
|
||||
|
||||
#include "core/object/reference.h"
|
||||
#include "core/object/ref_counted.h"
|
||||
#include "core/typedefs.h"
|
||||
#include "core/variant/variant.h"
|
||||
|
||||
|
|
@ -165,8 +165,8 @@ static inline double decode_double(const uint8_t *p_arr) {
|
|||
return md.d;
|
||||
}
|
||||
|
||||
class EncodedObjectAsID : public Reference {
|
||||
GDCLASS(EncodedObjectAsID, Reference);
|
||||
class EncodedObjectAsID : public RefCounted {
|
||||
GDCLASS(EncodedObjectAsID, RefCounted);
|
||||
|
||||
ObjectID id;
|
||||
|
||||
|
|
|
|||
|
|
@ -32,10 +32,10 @@
|
|||
#define MULTIPLAYER_API_H
|
||||
|
||||
#include "core/io/networked_multiplayer_peer.h"
|
||||
#include "core/object/reference.h"
|
||||
#include "core/object/ref_counted.h"
|
||||
|
||||
class MultiplayerAPI : public Reference {
|
||||
GDCLASS(MultiplayerAPI, Reference);
|
||||
class MultiplayerAPI : public RefCounted {
|
||||
GDCLASS(MultiplayerAPI, RefCounted);
|
||||
|
||||
public:
|
||||
enum RPCMode {
|
||||
|
|
|
|||
|
|
@ -32,9 +32,9 @@
|
|||
#define NET_SOCKET_H
|
||||
|
||||
#include "core/io/ip.h"
|
||||
#include "core/object/reference.h"
|
||||
#include "core/object/ref_counted.h"
|
||||
|
||||
class NetSocket : public Reference {
|
||||
class NetSocket : public RefCounted {
|
||||
protected:
|
||||
static NetSocket *(*_create)();
|
||||
|
||||
|
|
|
|||
|
|
@ -80,8 +80,8 @@ public:
|
|||
PackedDataContainer() {}
|
||||
};
|
||||
|
||||
class PackedDataContainerRef : public Reference {
|
||||
GDCLASS(PackedDataContainerRef, Reference);
|
||||
class PackedDataContainerRef : public RefCounted {
|
||||
GDCLASS(PackedDataContainerRef, RefCounted);
|
||||
|
||||
friend class PackedDataContainer;
|
||||
uint32_t offset = 0;
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@
|
|||
#include "core/object/class_db.h"
|
||||
#include "core/templates/ring_buffer.h"
|
||||
|
||||
class PacketPeer : public Reference {
|
||||
GDCLASS(PacketPeer, Reference);
|
||||
class PacketPeer : public RefCounted {
|
||||
GDCLASS(PacketPeer, RefCounted);
|
||||
|
||||
Variant _bnd_get_var(bool p_allow_objects = false);
|
||||
|
||||
|
|
|
|||
|
|
@ -31,12 +31,12 @@
|
|||
#ifndef PCK_PACKER_H
|
||||
#define PCK_PACKER_H
|
||||
|
||||
#include "core/object/reference.h"
|
||||
#include "core/object/ref_counted.h"
|
||||
|
||||
class FileAccess;
|
||||
|
||||
class PCKPacker : public Reference {
|
||||
GDCLASS(PCKPacker, Reference);
|
||||
class PCKPacker : public RefCounted {
|
||||
GDCLASS(PCKPacker, RefCounted);
|
||||
|
||||
FileAccess *file = nullptr;
|
||||
int alignment = 0;
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
#define RESOURCE_H
|
||||
|
||||
#include "core/object/class_db.h"
|
||||
#include "core/object/reference.h"
|
||||
#include "core/object/ref_counted.h"
|
||||
#include "core/templates/safe_refcount.h"
|
||||
#include "core/templates/self_list.h"
|
||||
|
||||
|
|
@ -43,8 +43,8 @@ public:
|
|||
\
|
||||
private:
|
||||
|
||||
class Resource : public Reference {
|
||||
GDCLASS(Resource, Reference);
|
||||
class Resource : public RefCounted {
|
||||
GDCLASS(Resource, RefCounted);
|
||||
OBJ_CATEGORY("Resources");
|
||||
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -93,8 +93,8 @@ public:
|
|||
ResourceFormatImporter();
|
||||
};
|
||||
|
||||
class ResourceImporter : public Reference {
|
||||
GDCLASS(ResourceImporter, Reference);
|
||||
class ResourceImporter : public RefCounted {
|
||||
GDCLASS(ResourceImporter, RefCounted);
|
||||
|
||||
public:
|
||||
virtual String get_importer_name() const = 0;
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@
|
|||
#include "core/os/semaphore.h"
|
||||
#include "core/os/thread.h"
|
||||
|
||||
class ResourceFormatLoader : public Reference {
|
||||
GDCLASS(ResourceFormatLoader, Reference);
|
||||
class ResourceFormatLoader : public RefCounted {
|
||||
GDCLASS(ResourceFormatLoader, RefCounted);
|
||||
|
||||
public:
|
||||
enum CacheMode {
|
||||
|
|
|
|||
|
|
@ -33,8 +33,8 @@
|
|||
|
||||
#include "core/io/resource.h"
|
||||
|
||||
class ResourceFormatSaver : public Reference {
|
||||
GDCLASS(ResourceFormatSaver, Reference);
|
||||
class ResourceFormatSaver : public RefCounted {
|
||||
GDCLASS(ResourceFormatSaver, RefCounted);
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
|
|
|
|||
|
|
@ -31,10 +31,10 @@
|
|||
#ifndef STREAM_PEER_H
|
||||
#define STREAM_PEER_H
|
||||
|
||||
#include "core/object/reference.h"
|
||||
#include "core/object/ref_counted.h"
|
||||
|
||||
class StreamPeer : public Reference {
|
||||
GDCLASS(StreamPeer, Reference);
|
||||
class StreamPeer : public RefCounted {
|
||||
GDCLASS(StreamPeer, RefCounted);
|
||||
OBJ_CATEGORY("Networking");
|
||||
|
||||
protected:
|
||||
|
|
|
|||
|
|
@ -36,8 +36,8 @@
|
|||
#include "core/io/stream_peer.h"
|
||||
#include "core/io/stream_peer_tcp.h"
|
||||
|
||||
class TCPServer : public Reference {
|
||||
GDCLASS(TCPServer, Reference);
|
||||
class TCPServer : public RefCounted {
|
||||
GDCLASS(TCPServer, RefCounted);
|
||||
|
||||
protected:
|
||||
enum {
|
||||
|
|
|
|||
|
|
@ -34,8 +34,8 @@
|
|||
#include "core/io/net_socket.h"
|
||||
#include "core/io/packet_peer_udp.h"
|
||||
|
||||
class UDPServer : public Reference {
|
||||
GDCLASS(UDPServer, Reference);
|
||||
class UDPServer : public RefCounted {
|
||||
GDCLASS(UDPServer, RefCounted);
|
||||
|
||||
protected:
|
||||
enum {
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
#define XML_PARSER_H
|
||||
|
||||
#include "core/io/file_access.h"
|
||||
#include "core/object/reference.h"
|
||||
#include "core/object/ref_counted.h"
|
||||
#include "core/string/ustring.h"
|
||||
#include "core/templates/vector.h"
|
||||
|
||||
|
|
@ -40,8 +40,8 @@
|
|||
Based on irrXML (see their zlib license). Added mainly for compatibility with their Collada loader.
|
||||
*/
|
||||
|
||||
class XMLParser : public Reference {
|
||||
GDCLASS(XMLParser, Reference);
|
||||
class XMLParser : public RefCounted {
|
||||
GDCLASS(XMLParser, RefCounted);
|
||||
|
||||
public:
|
||||
//! Enumeration of all supported source text file formats
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue