Improved reconnect flow

This commit is contained in:
2024-01-29 23:16:06 +01:00
parent bf08205c7d
commit b22d0b1367
25 changed files with 212 additions and 99 deletions

12
client/network/Logout.gd Normal file
View File

@ -0,0 +1,12 @@
extends PacketHandler
signal success
func handle_packet(_data: PackedByteArray):
logout()
success.emit()
func logout():
Global.auth_token = ""
Global.account_id = ""
Global.player = null