/// <summary>
        /// 通过配置文件构造实例
        /// </summary>
        /// <param name="filePath"></param>
        public NIAIStaticConfig(string filePath)
        {
            NIAIStaticConfig config = (NIAIStaticConfig)InitFromConfigFile(filePath);

            TriggerConfig       = config.TriggerConfig;
            ClockConfig         = config.ClockConfig;
            ChannelConfig       = config.ChannelConfig;
            StartTime           = config.StartTime;
            AutoWriteDataToFile = config.AutoWriteDataToFile;
            ChannelCount        = config.ChannelCount;
            RemainShotsMax      = config.RemainShotsMax;
            RemainShotsMin      = config.RemainShotsMin;
            IsOn     = config.IsOn;
            CardType = config.CardType;
        }
 public void InitAI(string configFilePath)
 {
     _staticConfig = LoadStaticConfig(configFilePath) as NIAIStaticConfig;
 }
Exemple #3
0
 public void ChangeStaticConfig(BasicAIStaticConfig basicAIStaticConfig)
 {
     _staticConfig = (NIAIStaticConfig)basicAIStaticConfig;
 }