15 lines
266 B
GDScript3
Raw Normal View History

2024-01-22 22:41:48 +00:00
class_name Client
var peer: PacketPeerUDP
var address: String
var last_packet: int
var auth_token: String
var account: Account
2024-01-23 23:09:50 +00:00
var player: Player
func _init(p: PacketPeerUDP, a: String):
peer = p
address = a
2024-01-22 22:41:48 +00:00
func is_logged_in() -> bool:
return auth_token != ""