diff options
Diffstat (limited to 'apworld/client/client.gd')
-rw-r--r-- | apworld/client/client.gd | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apworld/client/client.gd b/apworld/client/client.gd index a23e85a..62d7fd8 100644 --- a/apworld/client/client.gd +++ b/apworld/client/client.gd | |||
@@ -24,6 +24,7 @@ var _received_items = {} | |||
24 | var _slot_data = {} | 24 | var _slot_data = {} |
25 | var _accessible_locations = [] | 25 | var _accessible_locations = [] |
26 | var _accessible_worldports = [] | 26 | var _accessible_worldports = [] |
27 | var _goal_accessible = false | ||
27 | 28 | ||
28 | signal could_not_connect | 29 | signal could_not_connect |
29 | signal connect_status | 30 | signal connect_status |
@@ -61,6 +62,7 @@ func _reset_state(): | |||
61 | _checked_worldports = [] | 62 | _checked_worldports = [] |
62 | _accessible_locations = [] | 63 | _accessible_locations = [] |
63 | _accessible_worldports = [] | 64 | _accessible_worldports = [] |
65 | _goal_accessible = false | ||
64 | 66 | ||
65 | 67 | ||
66 | func disconnect_from_ap(): | 68 | func disconnect_from_ap(): |
@@ -174,6 +176,8 @@ func _on_web_socket_server_message_received(_peer_id: int, packet: String) -> vo | |||
174 | for port_id in message["worldports"]: | 176 | for port_id in message["worldports"]: |
175 | _accessible_worldports.append(int(port_id)) | 177 | _accessible_worldports.append(int(port_id)) |
176 | 178 | ||
179 | _goal_accessible = bool(message.get("goal", false)) | ||
180 | |||
177 | accessible_locations_updated.emit() | 181 | accessible_locations_updated.emit() |
178 | 182 | ||
179 | elif cmd == "UpdateKeyboard": | 183 | elif cmd == "UpdateKeyboard": |