Skip to content

Commit

Permalink
Merge pull request #207 from Ughuuu/auth-lobby-allow-lobby-call-witho…
Browse files Browse the repository at this point in the history
…ut-params

Auth lobby allow lobby call without args
  • Loading branch information
Bioblaze authored Dec 22, 2024
2 parents 791ea9f + 27fd751 commit dc2cb0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
<method name="lobby_call">
<return type="AuthoritativeLobbyResponse" />
<param index="0" name="method" type="String" />
<param index="1" name="args" type="Array" />
<param index="1" name="args" type="Array" default="[]" />
<description>
Call a method on the server.
</description>
Expand Down
2 changes: 1 addition & 1 deletion modules/blazium_sdk/lobby/authoritative_lobby_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void AuthoritativeLobbyClient::_bind_methods() {
ClassDB::bind_method(D_METHOD("create_lobby", "title", "tags", "max_players", "password"), &AuthoritativeLobbyClient::create_lobby, DEFVAL(Dictionary()), DEFVAL(4), DEFVAL(""));
ClassDB::bind_method(D_METHOD("join_lobby", "lobby_id", "password"), &AuthoritativeLobbyClient::join_lobby, DEFVAL(""));
ClassDB::bind_method(D_METHOD("leave_lobby"), &AuthoritativeLobbyClient::leave_lobby);
ClassDB::bind_method(D_METHOD("lobby_call", "method", "args"), &AuthoritativeLobbyClient::lobby_call);
ClassDB::bind_method(D_METHOD("lobby_call", "method", "args"), &AuthoritativeLobbyClient::lobby_call, DEFVAL(Array()));
ClassDB::bind_method(D_METHOD("list_lobbies", "tags", "start", "count"), &AuthoritativeLobbyClient::list_lobby, DEFVAL(Dictionary()), DEFVAL(0), DEFVAL(10));
ClassDB::bind_method(D_METHOD("kick_peer", "peer_id"), &AuthoritativeLobbyClient::kick_peer);
ClassDB::bind_method(D_METHOD("send_chat_message", "chat_message"), &AuthoritativeLobbyClient::lobby_chat);
Expand Down

0 comments on commit dc2cb0b

Please sign in to comment.