SpaceAgeScenario.cs
/// <summary>
/// Applying default settings, using config files if exist
/// </summary>
Applying default settings, using config files if exist
Applying default settings using config files if exist
void ResetSettings()
        {
            Core.Log("ResetSettings", LogLevel.Important);
            SpaceAgeChronicleSettings.Instance.Reset();
            if (GameDatabase.Instance.ExistsConfigNode(Node_Config))
            {
                ConfigNode config = GameDatabase.Instance.GetConfigNode(Node_Config);
                Core.Log($"{Node_Config}: {config}", LogLevel.Important);
                SpaceAgeChronicleSettings.Instance.UseStockDateTimeFormat = config.GetBool("stockDateTimeFormat", SpaceAgeChronicleSettings.Instance.UseStockDateTimeFormat);
                SpaceAgeChronicleSettings.Instance.FundsPerScore = (float)config.GetDouble("fundsPerScore", SpaceAgeChronicleSettings.Instance.FundsPerScore);
                SpaceAgeChronicleSettings.Instance.SciencePerScore = (float)config.GetDouble("sciencePerScore", SpaceAgeChronicleSettings.Instance.SciencePerScore);
                SpaceAgeChronicleSettings.Instance.RepPerScore = (float)config.GetDouble("repPerScore", SpaceAgeChronicleSettings.Instance.RepPerScore);
            }
            else Core.Log($"{Node_Config} node not found.", LogLevel.Important);
        }
void ResetSettings ( ) { Core . Log ( " " , LogLevel . Important ) ; SpaceAgeChronicleSettings . Instance . Reset ( ) ; if ( GameDatabase . Instance . ExistsConfigNode ( Node_Config ) ) { ConfigNode config = GameDatabase . Instance . GetConfigNode ( Node_Config ) ; Core . Log ( $" { Node_Config } :  { config } " , LogLevel . Important ) ; SpaceAgeChronicleSettings . Instance . UseStockDateTimeFormat = config . GetBool ( " " , SpaceAgeChronicleSettings . Instance . UseStockDateTimeFormat ) ; SpaceAgeChronicleSettings . Instance . FundsPerScore = ( float ) config . GetDouble ( " " , SpaceAgeChronicleSettings . Instance . FundsPerScore ) ; SpaceAgeChronicleSettings . Instance . SciencePerScore = ( float ) config . GetDouble ( " " , SpaceAgeChronicleSettings . Instance . SciencePerScore ) ; SpaceAgeChronicleSettings . Instance . RepPerScore = ( float ) config . GetDouble ( " " , SpaceAgeChronicleSettings . Instance . RepPerScore ) ; } else Core . Log ( $" { Node_Config }  node not found. " , LogLevel . Important ) ; }
Applying default settings, using config files if exist
Applying default settings using config files if exist