diff options
Diffstat (limited to 'network/network.gd')
-rw-r--r-- | network/network.gd | 17 |
1 files changed, 13 insertions, 4 deletions
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() |