feat: read network config from JSON

This commit is contained in:
2025-12-28 16:44:54 +08:00
parent 2d43b73e57
commit 19698996cd
6 changed files with 46 additions and 8 deletions

View File

@@ -16,5 +16,10 @@
"ui": {
"font": "fonts/SourceHanSansSC-Regular.otf",
"font_size": 16
},
"network": {
"server_ip": "127.0.0.1",
"port": 12345,
"max_players": 2
}
}
}