summaryrefslogtreecommitdiffstats
path: root/modules/enet/enet_connection.h
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-08-08 00:52:20 +0200
committerkobewi <kobewi4e@gmail.com>2022-08-24 12:53:36 +0200
commitf7f4873ed08d6b465c8108f7ce0c1cb76f9caf2f (patch)
treef5644c01ab66109f8f342d784c3a38240aa295ef /modules/enet/enet_connection.h
parent0626ce50cfd35d1eb81c6c9627f8540be9636b4b (diff)
downloadredot-engine-f7f4873ed08d6b465c8108f7ce0c1cb76f9caf2f.tar.gz
Replace Array return types with TypedArray 3
Diffstat (limited to 'modules/enet/enet_connection.h')
-rw-r--r--modules/enet/enet_connection.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/enet/enet_connection.h b/modules/enet/enet_connection.h
index 0c873b6c55..5cd8f6be9a 100644
--- a/modules/enet/enet_connection.h
+++ b/modules/enet/enet_connection.h
@@ -38,6 +38,9 @@
#include <enet/enet.h>
+template <typename T>
+class TypedArray;
+
class ENetConnection : public RefCounted {
GDCLASS(ENetConnection, RefCounted);
@@ -83,7 +86,7 @@ private:
Error _create(ENetAddress *p_address, int p_max_peers, int p_max_channels, int p_in_bandwidth, int p_out_bandwidth);
Array _service(int p_timeout = 0);
void _broadcast(int p_channel, PackedByteArray p_packet, int p_flags);
- Array _get_peers();
+ TypedArray<ENetPacketPeer> _get_peers();
class Compressor {
private: