Исправления работы entry и конвертации в String

This commit is contained in:
MaD_CaT
2023-07-31 08:31:22 +03:00
parent d57ddc2f63
commit 6e4b2fce41
12 changed files with 636 additions and 635 deletions

18
main.gd
View File

@@ -11,18 +11,18 @@ var sock = PacketPeerUDP.new()
# Called when the node enters the scene tree for the first time.
func _ready():
sock.bind(Consts.MAIN_ADDR[1], Consts.MAIN_ADDR[0])
sock.set_dest_address(Consts.DST_ADDR[0], Consts.DST_ADDR[1])
Threats.init_treats(header_threads, table_threads, btn_add_threads, btn_del_threads)
Pomehi.init_pomehi(header_pomehi, table_pomehi)
var timer = Timer.new()
timer.connect('timeout', Callable(self, 'on_timeout').bind())
add_child(timer) #to process
timer.start(1) #to start
sock.bind(Consts.MAIN_ADDR[1], Consts.MAIN_ADDR[0])
sock.set_dest_address(Consts.DST_ADDR[0], Consts.DST_ADDR[1])
Threats.init_treats(header_threads, table_threads, btn_add_threads, btn_del_threads)
Pomehi.init_pomehi(header_pomehi, table_pomehi)
var timer = Timer.new()
timer.connect('timeout', Callable(self, 'on_timeout').bind())
add_child(timer) #to process
timer.start(1) #to start
func on_timeout():
sock.put_packet(Threats.get_threats_data())
sock.put_packet(Threats.get_threats_data())
# Called every frame. 'delta' is the elapsed time since the previous frame.