Skip to main content

ServerConfigFileManager

A class in Root.Township, the global namespace.

Loads a server's server_config JSON file, creating an empty ServerConfiguration if there isn't one.

Constructors​

MemberWhat it is
ServerConfigFileManager()Creates a ServerConfigFileManager with default values.

Fields​

1 private and internal field
MemberWhat it is
private static string configFileNameName of the config file: server_config.

Methods​

MemberWhat it is
static async Task<ServerConfiguration> GetConfigFile(GameServerInfo server)Reads the server's config file and returns its ServerConfiguration, or a new one set as the file's content.