You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.0 KiB
60 lines
2.0 KiB
1 month ago
|
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<string> fileList = new()
|
||
|
{
|
||
|
"MarketShopDesc.bin",
|
||
|
"RewardDesc.bin",
|
||
|
"EquipDesc.bin",
|
||
|
"EquipAttrDesc.bin",
|
||
|
"TalentDesc.bin",
|
||
|
};
|
||
|
|
||
|
public ConfigStrategy()
|
||
|
{
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 有实参的构造函数不会被子类调用
|
||
|
/// </summary>
|
||
|
/// <param name="lockstr"></param>
|
||
|
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();
|
||
|
|
||
|
}
|
||
|
}
|