mirror of
https://github.com/zhenyan121/SporeBG-Conid.git
synced 2026-04-10 06:14:08 +08:00
feat: read network config from JSON
This commit is contained in:
@@ -80,7 +80,14 @@ struct Viewport {
|
||||
SDL_FRect dst{};
|
||||
};
|
||||
|
||||
struct NetworkConfig {
|
||||
int port = 12345;
|
||||
int maxPlayers = 2;
|
||||
std::string serverIP = "127.0.0.1";
|
||||
};
|
||||
|
||||
struct Config {
|
||||
WindowConfig window;
|
||||
RenderConfig render;
|
||||
NetworkConfig network;
|
||||
};
|
||||
Reference in New Issue
Block a user