// Applies a configuration to the engine public void ApplyConfiguration(EngineConfiguration configuration) { if (configuration.FriendlyName != null && configuration.FriendlyName != "") { Name = configuration.FriendlyName; } foreach (string str in configuration.InitStrings) { Write(str); } foreach (EngineOption option in configuration.EngineOptions) { SetOption(option.Name, option.Value); } WhiteEvalPov = configuration.WhiteEvalPov; Restart = configuration.Restart; ClaimsValidated = configuration.ClaimsValidated; }
public EngineBuilder(IDebugMessageLog messageLog, EngineConfiguration config) { EngineConfiguration = config; MessageLog = messageLog; }