예제 #1
0
        //	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;
        }
예제 #2
0
 public EngineBuilder(IDebugMessageLog messageLog, EngineConfiguration config)
 {
     EngineConfiguration = config;
     MessageLog          = messageLog;
 }