diff options
Diffstat (limited to 'Archipelago/multiplayer.gd')
-rw-r--r-- | Archipelago/multiplayer.gd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Archipelago/multiplayer.gd b/Archipelago/multiplayer.gd new file mode 100644 index 0000000..07b63b8 --- /dev/null +++ b/Archipelago/multiplayer.gd | |||
@@ -0,0 +1,20 @@ | |||
1 | extends "res://scripts/multiplayer.gd" | ||
2 | |||
3 | |||
4 | func _request_lobby_list(): | ||
5 | var apclient = global.get_node("Archipelago") | ||
6 | Steam.addRequestLobbyListStringFilter( | ||
7 | "archipelago", apclient._seed, Steam.LOBBY_COMPARISON_EQUAL | ||
8 | ) | ||
9 | |||
10 | ._request_lobby_list() | ||
11 | |||
12 | |||
13 | func _on_lobby_created(result: int, lobby_id: int) -> void: | ||
14 | if result != Steam.RESULT_OK: | ||
15 | return | ||
16 | |||
17 | var apclient = global.get_node("Archipelago") | ||
18 | var _ignore = Steam.setLobbyData(lobby_id, "archipelago", apclient._seed) | ||
19 | |||
20 | ._on_lobby_created(result, lobby_id) | ||