[MP] Add MultiplayerPeer disconnect_peer, close.
Update ENet, WebRTC, and WebSocket to support peer disconnection and unify the close function.
This commit is contained in:
parent
028db9f2b5
commit
39f3d9d59e
13 changed files with 188 additions and 201 deletions
|
|
@ -9,6 +9,20 @@
|
|||
<tutorials>
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="_close" qualifiers="virtual">
|
||||
<return type="void" />
|
||||
<description>
|
||||
Called when the multiplayer peer should be immediately closed (see [method MultiplayerPeer.close]).
|
||||
</description>
|
||||
</method>
|
||||
<method name="_disconnect_peer" qualifiers="virtual">
|
||||
<return type="void" />
|
||||
<param index="0" name="p_peer" type="int" />
|
||||
<param index="1" name="p_force" type="bool" />
|
||||
<description>
|
||||
Called when the connected [param p_peer] should be forcibly disconnected (see [method MultiplayerPeer.disconnect_peer]).
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_available_packet_count" qualifiers="virtual const">
|
||||
<return type="int" />
|
||||
<description>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue