diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-28 13:19:53 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-28 13:19:53 -0500 |
commit | 17a51b95bd07c5291192ab6036550cb238c1ef4f (patch) | |
tree | fd426d7b352227b9f497003b087d4a36e87d1901 /Archipelago/multiplayer.gd | |
parent | 36d849d38730c04a89efc94e9f75ccaa8c7c0dd8 (diff) | |
download | lingo-archipelago-0.16.0.tar.gz lingo-archipelago-0.16.0.tar.bz2 lingo-archipelago-0.16.0.zip |
Add ghost multiplayer v0.16.0
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) | ||