using Sog; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; namespace CheckConfig { public class CheckCofigDef { //跳过语言表的颜色检查 public bool skipLanguageCheck { get; set; } // 跳过于言表某几个语言的校验 public string skipLanguageList { get; set; } } public abstract class ConfigStrategy { private readonly List fileList = new() { "MarketShopDesc.bin", "RewardDesc.bin", "EquipDesc.bin", "EquipAttrDesc.bin", "TalentDesc.bin", }; public ConfigStrategy() { } /// /// 有实参的构造函数不会被子类调用 /// /// public ConfigStrategy(string lockstr) { //测试 C:/work/arpg_share_proj/ExcelExport/win7-x64/GameConfig/Server/ //GameConfigMgr.Instance.ReadAllConfig(new string[] { "../GameConfig/Server/", "../GameConfig/Client/" }); try { GameConfigMgr.Instance.ReadSomeConfig(fileList, new string[] { "../GameConfig/Server/"}); }catch (Exception e) { //Console.Error.WriteLine(e.Message); ConsoleStyle.WriteString(e.Message); ConsoleStyle.WriteString(e.StackTrace); } //GameConfigMgr.Instance.ReadAllConfig(new string[] { "C:/arpg/arpg_share_proj/ExcelExport/win7-x64/GameConfig/Server/", "C:/arpg/arpg_share_proj/ExcelExport/win7-x64/GameConfig/Client/" }); //GameConfigMgr.Instance.ReadSomeConfig(fileList, new string[] { "C:/arpg/arpg_share_proj/ExcelExport/win7-x64/GameConfig/Server/", "C:/arpg/arpg_share_proj/ExcelExport/win7-x64/GameConfig/Client/" }); } public abstract void CheckConfigAlgorithm(); } }