From 9f8a485744ba8de13c01cc48a4db0d8d73189c97 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Fri, 7 Mar 2025 15:58:30 +0100 Subject: Refactor check_game --- plugins/check_game.d/config.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 plugins/check_game.d/config.h (limited to 'plugins/check_game.d/config.h') diff --git a/plugins/check_game.d/config.h b/plugins/check_game.d/config.h new file mode 100644 index 00000000..c95a1ced --- /dev/null +++ b/plugins/check_game.d/config.h @@ -0,0 +1,30 @@ +#pragma once +#include "../../config.h" +#include + +typedef struct { + char *server_ip; + char *game_type; + int port; + + int qstat_game_players_max; + int qstat_game_players; + int qstat_game_field; + int qstat_map_field; + int qstat_ping_field; +} check_game_config; + +check_game_config check_game_config_init() { + check_game_config tmp = { + .server_ip = NULL, + .game_type = NULL, + .port = 0, + + .qstat_game_players_max = 4, + .qstat_game_players = 5, + .qstat_map_field = 3, + .qstat_game_field = 2, + .qstat_ping_field = 5, + }; + return tmp; +} -- cgit v1.2.3-74-g34f1