diff options
author | David Snopek <dsnopek@gmail.com> | 2022-07-20 14:43:34 -0500 |
---|---|---|
committer | David Snopek <dsnopek@gmail.com> | 2022-07-20 18:19:05 -0500 |
commit | f8137ce6c1c53c24d7d2d8ad2e082ea629ef926b (patch) | |
tree | 3490bbe1adb230295b8720d55ea6bd853e2303a5 /doc/classes/MultiplayerPeerExtension.xml | |
parent | 351197bfe406a226ff304712b97847bf51ce0abc (diff) |
Allow extending MultiplayerPeerExtension from GDScript
Diffstat (limited to 'doc/classes/MultiplayerPeerExtension.xml')
-rw-r--r-- | doc/classes/MultiplayerPeerExtension.xml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/classes/MultiplayerPeerExtension.xml b/doc/classes/MultiplayerPeerExtension.xml index bd11c76039..f837171e2f 100644 --- a/doc/classes/MultiplayerPeerExtension.xml +++ b/doc/classes/MultiplayerPeerExtension.xml @@ -41,6 +41,12 @@ Called when the ID of the [MultiplayerPeer] who sent the most recent packet is requested (see [method MultiplayerPeer.get_packet_peer]). </description> </method> + <method name="_get_packet_script" qualifiers="virtual"> + <return type="PackedByteArray" /> + <description> + Called when a packet needs to be received by the [MultiplayerAPI], if [method _get_packet] isn't implemented. Use this when extending this class via GDScript. + </description> + </method> <method name="_get_transfer_channel" qualifiers="virtual const"> <return type="int" /> <description> @@ -85,6 +91,13 @@ Called when a packet needs to be sent by the [MultiplayerAPI], with [code]p_buffer_size[/code] being the size of the binary [code]p_buffer[/code] in bytes. </description> </method> + <method name="_put_packet_script" qualifiers="virtual"> + <return type="int" /> + <argument index="0" name="p_buffer" type="PackedByteArray" /> + <description> + Called when a packet needs to be sent by the [MultiplayerAPI], if [method _put_packet] isn't implemented. Use this when extending this class via GDScript. + </description> + </method> <method name="_set_refuse_new_connections" qualifiers="virtual"> <return type="void" /> <argument index="0" name="p_enable" type="bool" /> |