about summary refs log tree commit diff stats
path: root/Archipelago/multiplayer.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Archipelago/multiplayer.gd')
-rw-r--r--Archipelago/multiplayer.gd20
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 @@
1extends "res://scripts/multiplayer.gd"
2
3
4func _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
13func _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)