15 lines
266 B
GDScript

class_name Client
var peer: PacketPeerUDP
var address: String
var last_packet: int
var auth_token: String
var account: Account
var player: Player
func _init(p: PacketPeerUDP, a: String):
peer = p
address = a
func is_logged_in() -> bool:
return auth_token != ""