Skip to main content

SettingsCommandModules

A static class in Root.Township, Alta.Console.Commands.

Console module settings: reads and changes game or server settings by name, toggles settings, and sets info board text.

Fields​

1 private and internal field
MemberWhat it is
private static Logger loggerNLog logger for this module.

Methods​

14 private and internal methods
MemberWhat it is
private static void ChangeSetting(string settingsTarget, string setting, string value)settings changesetting: sets a bool, float, int or enum property on the server or game settings by name, then saves and notifies.
private static void DisableServerBoard()Server: settings disable-board turns off the in-game server settings board and saves the config.
private static void EnableServerBoard()Server: settings enable-board turns on the in-game server settings board and saves the config.
private static IEnumerable<PropertyInfo> GetProperties(string settingsTarget)Public properties of ServerSettings or GameSettings, hiding DevOnly ones unless the caller has debug_features.
private static void Heat(float multiplier)settings heat: sets the global heat conductivity multiplier on HeatPoint.
private static void InfoBoard(string identifier, string value)settings infoboard: writes text (max 500 chars, escapes unescaped) to the named info board file in the save and refreshes that board.
private static IEnumerable<string> InfoBoardList() (iterator)settings infoboard-list: lists the info board files in the save.
private static IEnumerable<string> ListPossivleValues(string settingsTarget, string setting)settings possible: lists the enum names a setting can take.
private static ISettings ListSettings(string settingsTarget)settings list: returns the settings object for the given target as a table.
private static void ResetServerSettings()Server: settings reset replaces all server settings with defaults.
private static void Save(bool isServer)settings save: saves the server config, the game config, or both with no argument.
private static void Save()settings save: saves the server config, the game config, or both with no argument.
private static void ToggleOnSetting(string setting, bool isOn = true)Server: settings settoggle sets a registered ToggleBool setting on or off.
private static void ToggleSetting(string setting)settings toggle: flips a registered ToggleBool setting.