about summary refs log tree commit diff stats
path: root/Archipelago/multiplayer.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-11-28 13:19:53 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2023-11-28 13:19:53 -0500
commit17a51b95bd07c5291192ab6036550cb238c1ef4f (patch)
treefd426d7b352227b9f497003b087d4a36e87d1901 /Archipelago/multiplayer.gd
parent36d849d38730c04a89efc94e9f75ccaa8c7c0dd8 (diff)
downloadlingo-archipelago-17a51b95bd07c5291192ab6036550cb238c1ef4f.tar.gz
lingo-archipelago-17a51b95bd07c5291192ab6036550cb238c1ef4f.tar.bz2
lingo-archipelago-17a51b95bd07c5291192ab6036550cb238c1ef4f.zip
Add ghost multiplayer v0.16.0
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)