about summary refs log tree commit diff stats
path: root/Archipelago/client.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Archipelago/client.gd')
-rw-r--r--Archipelago/client.gd6
1 files changed, 6 insertions, 0 deletions
diff --git a/Archipelago/client.gd b/Archipelago/client.gd index 0f121a1..bdd3905 100644 --- a/Archipelago/client.gd +++ b/Archipelago/client.gd
@@ -18,6 +18,7 @@ const uuid_util = preload("user://maps/Archipelago/vendor/uuid.gd")
18 18
19# TODO: caching per MW/slot, reset between connections 19# TODO: caching per MW/slot, reset between connections
20var _authenticated = false 20var _authenticated = false
21var _seed = ""
21var _team = 0 22var _team = 0
22var _slot = 0 23var _slot = 0
23var _players = [] 24var _players = []
@@ -90,6 +91,7 @@ func _on_data():
90 global._print("Received command: " + cmd) 91 global._print("Received command: " + cmd)
91 92
92 if cmd == "RoomInfo": 93 if cmd == "RoomInfo":
94 _seed = message["seed_name"]
93 if message["datapackage_checksums"].has("Lingo"): 95 if message["datapackage_checksums"].has("Lingo"):
94 if _datapackage_checksum != message["datapackage_checksums"]["Lingo"]: 96 if _datapackage_checksum != message["datapackage_checksums"]["Lingo"]:
95 requestDatapackage() 97 requestDatapackage()
@@ -171,6 +173,10 @@ func saveSettings():
171 file.close() 173 file.close()
172 174
173 175
176func getSaveFileName():
177 return "zzAP_%s_%d" % [_seed, _slot]
178
179
174func connectToServer(): 180func connectToServer():
175 var url = "ws://" + ap_server 181 var url = "ws://" + ap_server
176 var err = _client.connect_to_url(url) 182 var err = _client.connect_to_url(url)