Improved reconnect flow
This commit is contained in:
12
client/network/Logout.gd
Normal file
12
client/network/Logout.gd
Normal 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
|
Reference in New Issue
Block a user