This commit is contained in:
2024-02-27 23:21:44 +01:00
parent ba37eca0c9
commit bfec08ff02
38 changed files with 89 additions and 92 deletions

View File

@ -20,7 +20,7 @@ func _ready():
var ip := IP.resolve_hostname(host)
socket.connect_to_host(ip, port)
func _process(_delta):
func _process(_delta: float):
while socket.get_available_packet_count() > 0:
var packet := socket.get_packet()
handle_packet(packet)
@ -33,7 +33,4 @@ func update_statistics():
func send(data: PackedByteArray):
socket.put_packet(data)
upload += data.size()
func log(message: String):
print_rich("[color=#808080][%s][/color] %s" % [Global.account.name, message])
upload += data.size()