15 lines
238 B
GDScript

extends PacketHandler
signal success
func handle_packet(_data: PackedByteArray):
logout()
emit.call_deferred()
func emit():
success.emit()
func logout():
Global.account.id = ""
Global.account.auth_token = ""
Global.player = null