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

            BoardNum            = config.BoardNum;
            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;
        }
Example #2
0
 public void ChangeStaticConfig(BasicAIStaticConfig basicAIStaticConfig)
 {
     _staticConfig = (JYAIStaticConfig)basicAIStaticConfig;
 }
Example #3
0
 /// <summary>
 /// 使用JYAIStaticConfig配置
 /// </summary>
 /// <param name="configFilePath"></param>
 public void InitAI(string configFilePath)
 {
     _staticConfig = LoadStaticConfig(configFilePath) as JYAIStaticConfig;
 }