From 313afffce7a823c30acf4853b083f9ca5132e879 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 29 Nov 2024 21:54:32 +0100 Subject: next commit --- network/network.gd | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'network/network.gd') diff --git a/network/network.gd b/network/network.gd index 25607a2..1e665a3 100644 --- a/network/network.gd +++ b/network/network.gd @@ -109,7 +109,16 @@ func _ready() -> void: #print(msls.get_position()) var file = FileAccess.open("res://data/data.grf", FileAccess.READ) - var signature = file.get_buffer("Master of Magic".length()) - print(signature.get_string_from_utf8()) - print(file.get_16()) - print(file.get_32()) + var header = GRF.Header.from_file(file) + print(inst_to_dict(header)) + + +func _process(_delta: float) -> void: + if login_server: + login_server.listen() + + if character_server: + character_server.listen() + + if map_server: + map_server.listen() -- cgit v1.2.3