summaryrefslogtreecommitdiff
path: root/network/network.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-11-29 21:54:32 +0100
committerDaniel Weipert <git@mail.dweipert.de>2024-11-29 21:54:32 +0100
commit313afffce7a823c30acf4853b083f9ca5132e879 (patch)
tree5a7370392ebd39314612166b35e6f53e67441c0b /network/network.gd
parente8aa9f50886b66d525307a58d71036e6fd3d4aa1 (diff)
next commit
Diffstat (limited to 'network/network.gd')
-rw-r--r--network/network.gd17
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()