1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- #pragma once
- #include <stdbool.h>
- #define CONFIG_LIST_MAX 32
- #define CONFIG_VALUE_MAX 256
- typedef struct GameModeConfig GameModeConfig;
- GameModeConfig *config_create(void);
- void config_init(GameModeConfig *self);
- void config_reload(GameModeConfig *self);
- void config_destroy(GameModeConfig *self);
- bool config_get_client_whitelisted(GameModeConfig *self, const char *client);
- bool config_get_client_blacklisted(GameModeConfig *self, const char *client);
- long config_get_reaper_thread_frequency(GameModeConfig *self);
- void config_get_gamemode_start_scripts(GameModeConfig *self,
- char scripts[CONFIG_LIST_MAX][CONFIG_VALUE_MAX]);
- void config_get_gamemode_end_scripts(GameModeConfig *self,
- char scripts[CONFIG_LIST_MAX][CONFIG_VALUE_MAX]);
|