#if TENGINE_NET namespace TEngine.Core; public static class Define { #if TENGINE_NET #region ProtoBuf public static readonly char[] SplitChars = { ' ', '\t' }; /// /// ProtoBuf文件夹 /// public static string ProtoBufDirectory; /// /// 服务端生成文件夹 /// public static string ProtoBufServerDirectory; /// /// 客户端生成文件夹 /// public static string ProtoBufClientDirectory; /// /// 代码模板路径 /// public static string ProtoBufTemplatePath; #endregion #region Excel /// /// 配置文件根目录 /// public static string ExcelProgramPath; /// /// 版本文件Excel /// public static string ExcelVersionFile; /// /// 服务器代码生成文件夹 /// public static string ExcelServerFileDirectory; /// /// 客户端代码生成文件夹 /// public static string ExcelClientFileDirectory; /// /// 服务器二进制数据文件夹 /// public static string ExcelServerBinaryDirectory; /// /// 客户端二进制数据文件夹 /// public static string ExcelClientBinaryDirectory; /// /// 服务器Json数据文件夹 /// public static string ExcelServerJsonDirectory; /// /// 客户端Json数据文件夹 /// public static string ExcelClientJsonDirectory; /// /// 服务器自定义导出代码 /// public static string ServerCustomExportDirectory; /// /// 客户端自定义导出代码 /// public static string ClientCustomExportDirectory; /// /// SceneConfig.xlsx的位置 /// public static string SceneConfigPath; /// /// 自定义导出代码存放的程序集 /// public static string CustomExportAssembly; /// /// 导表支持的类型 /// public static readonly HashSet ColTypeSet = new HashSet() { "", "0", "bool", "byte", "short", "ushort", "int", "uint", "long", "ulong", "float", "string", "AttrConfig", "IntDictionaryConfig", "StringDictionaryConfig", "short[]", "int[]", "long[]", "float[]", "string[]","uint[]" }; /// /// Excel生成代码模板的位置 /// public static string ExcelTemplatePath; /// /// 代码模板 /// public static string ExcelTemplate { get { return _template ??= File.ReadAllText(ExcelTemplatePath); } } private static string _template; #endregion #region Network public static int SessionIdleCheckerInterval; public static int SessionIdleCheckerTimeout; #endregion #endif } #endif