12 lines
202 B
GDScript

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