Skip to content

Commit dffaa69

Browse files
authored
Merge pull request #159 from TaloDev/develop
Release 0.36.1
2 parents 642ed66 + 1b33bd9 commit dffaa69

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

addons/talo/apis/health_check_api.gd

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ enum HealthCheckStatus {
1111
UNKNOWN
1212
}
1313

14-
## Emitted when internet connectivity is lost.
15-
signal connection_lost()
16-
17-
## Emitted when internet connectivity is restored.
18-
signal connection_restored()
19-
2014
var _last_health_check_status := HealthCheckStatus.UNKNOWN
2115

2216
## Ping the Talo Health Check API to check if Talo can be reached.
@@ -28,11 +22,11 @@ func ping() -> bool:
2822
if success:
2923
_last_health_check_status = HealthCheckStatus.OK
3024
if failed_last_health_check:
31-
connection_restored.emit()
25+
Talo.connection_restored.emit()
3226
else:
3327
_last_health_check_status = HealthCheckStatus.FAILED
3428
if not failed_last_health_check:
35-
connection_lost.emit()
29+
Talo.connection_lost.emit()
3630

3731
return success
3832

addons/talo/apis/players_api.gd

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ signal identification_failed()
1818
signal identity_cleared()
1919

2020
func _ready() -> void:
21-
await Talo.init_completed
22-
Talo.health_check.connection_restored.connect(_on_connection_restored)
21+
Talo.connection_restored.connect(_on_connection_restored)
2322

2423
func _handle_identify_success(alias: TaloPlayerAlias, socket_token: String = "") -> TaloPlayer:
2524
if not await Talo.is_offline():
@@ -155,7 +154,7 @@ func create_socket_token() -> String:
155154

156155
func _on_connection_restored():
157156
await Talo.socket.reset_connection()
158-
if Talo.identity_check() == OK:
157+
if Talo.identity_check(false) == OK:
159158
var socket_token := await create_socket_token()
160159
Talo.socket.set_socket_token(socket_token)
161160

addons/talo/plugin.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
name="Talo Game Services"
44
description="Talo (https://trytalo.com) is an open-source game backend. Talo's Godot plugin is the easiest way to add leaderboards, player authentication, socket-based multiplayer and more to your game."
55
author="trytalo"
6-
version="0.36.0"
6+
version="0.36.1"
77
script="talo_autoload.gd"

addons/talo/talo_client.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class_name TaloClient extends Node
22

33
# automatically updated with a pre-commit hook
4-
const TALO_CLIENT_VERSION = "0.36.0"
4+
const TALO_CLIENT_VERSION = "0.36.1"
55

66
var _base_url: String
77

addons/talo/talo_manager.gd

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
extends Node
22

3-
signal init_completed
3+
## Emitted when Talo has finished setting up internal dependencies.
4+
signal init_completed()
5+
6+
## Emitted when internet connectivity is lost.
7+
signal connection_lost()
8+
9+
## Emitted when internet connectivity is restored.
10+
signal connection_restored()
411

512
var current_alias: TaloPlayerAlias
613
var current_player: TaloPlayer:

0 commit comments

Comments
 (0)