Skip to content

Commit

Permalink
fix private data event and add del/clear data
Browse files Browse the repository at this point in the history
updat with clear/del functions

upd

fix private/public data events.

Update lobby_client.h

fix shadowing

use add for naming
  • Loading branch information
Ughuuu committed Dec 13, 2024
1 parent 9096d05 commit 2be1a70
Show file tree
Hide file tree
Showing 3 changed files with 230 additions and 87 deletions.
108 changes: 72 additions & 36 deletions modules/blazium_sdk/doc_classes/LobbyClient.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,42 @@
<tutorials>
</tutorials>
<methods>
<method name="add_lobby_data">
<return type="LobbyResponse" />
<param index="0" name="data" type="Dictionary" />
<param index="1" name="is_private" type="bool" default="false" />
<description>
Add data to the lobby. Only works if you are host.
Generates [signal received_lobby_data].
</description>
</method>
<method name="add_lobby_tags">
<return type="LobbyResponse" />
<param index="0" name="tags" type="Dictionary" />
<description>
Add tags to the lobby. Only works if you are host.
Generates [signal lobby_tagged].
</description>
</method>
<method name="add_peer_data">
<return type="LobbyResponse" />
<param index="0" name="data" type="Dictionary" />
<param index="1" name="target_peer" type="String" />
<param index="2" name="is_private" type="bool" default="false" />
<description>
Add data to a peer. Only works if you are host.
Generates [signal received_peer_data].
</description>
</method>
<method name="add_peers_data">
<return type="LobbyResponse" />
<param index="0" name="data" type="Dictionary" />
<param index="1" name="is_private" type="bool" default="false" />
<description>
Add data to all peers. Only works if you are host.
Generates [signal received_peer_data].
</description>
</method>
<method name="connect_to_lobby">
<return type="bool" />
<description>
Expand All @@ -27,6 +63,42 @@
Generates [signal lobby_created] signal.
</description>
</method>
<method name="del_lobby_data">
<return type="LobbyResponse" />
<param index="0" name="keys" type="String[]" />
<param index="1" name="is_private" type="bool" default="false" />
<description>
Delete one or more keys from the lobby data. Only works if you are host.
Generates [signal received_lobby_data].
</description>
</method>
<method name="del_lobby_tags">
<return type="LobbyResponse" />
<param index="0" name="keys" type="String[]" />
<description>
Delete one or more keys from the lobby tags. Only works if you are host.
Generates [signal lobby_tagged].
</description>
</method>
<method name="del_peer_data">
<return type="LobbyResponse" />
<param index="0" name="keys" type="String[]" />
<param index="1" name="target_peer" type="String" />
<param index="2" name="is_private" type="bool" default="false" />
<description>
one or more keys from the peer data. Only works if you are host.
Generates [signal received_peer_data].
</description>
</method>
<method name="del_peers_data">
<return type="LobbyResponse" />
<param index="0" name="keys" type="String[]" />
<param index="1" name="is_private" type="bool" default="false" />
<description>
one or more keys from the peers data. Only works if you are host.
Generates [signal received_peer_data].
</description>
</method>
<method name="disconnect_from_lobby">
<return type="void" />
<description>
Expand Down Expand Up @@ -98,15 +170,6 @@
Generates [signal peer_messaged].
</description>
</method>
<method name="set_lobby_data">
<return type="LobbyResponse" />
<param index="0" name="data" type="Dictionary" />
<param index="1" name="is_private" type="bool" default="false" />
<description>
Set data on the lobby. Only works if you are host.
Generates [signal received_lobby_data].
</description>
</method>
<method name="set_lobby_ready">
<return type="LobbyResponse" />
<param index="0" name="ready" type="bool" />
Expand All @@ -123,24 +186,6 @@
Generates [signal lobby_sealed].
</description>
</method>
<method name="set_lobby_tags">
<return type="LobbyResponse" />
<param index="0" name="tags" type="Dictionary" />
<description>
Set tags on the lobby. Only works if you are host.
Generates [signal lobby_tagged].
</description>
</method>
<method name="set_peer_data">
<return type="LobbyResponse" />
<param index="0" name="data" type="Dictionary" />
<param index="1" name="target_peer" type="String" />
<param index="2" name="is_private" type="bool" />
<description>
Set data on the peer. Only works if you are host.
Generates [signal received_peer_data] signal if you are in lobby.
</description>
</method>
<method name="set_peer_name">
<return type="LobbyResponse" />
<param index="0" name="peer_name" type="String" />
Expand All @@ -149,15 +194,6 @@
Generates [signal peer_named] signal if you are in lobby.
</description>
</method>
<method name="set_peers_data">
<return type="LobbyResponse" />
<param index="0" name="data" type="Dictionary" />
<param index="1" name="is_private" type="bool" />
<description>
Set data on the peers. Only works if you are host.
Generates [signal received_peer_data] signal if you are in lobby.
</description>
</method>
<method name="view_lobby">
<return type="ViewLobbyResponse" />
<param index="0" name="lobby_id" type="String" default="&quot;&quot;" />
Expand Down
Loading

0 comments on commit 2be1a70

Please sign in to comment.