mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
服务器启动防呆提示需要转表
服务器启动防呆提示需要转表
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
using System.Diagnostics;
|
||||||
using Bright.Serialization;
|
using Bright.Serialization;
|
||||||
using GameConfig;
|
using GameConfig;
|
||||||
using TEngine;
|
using TEngine;
|
||||||
@@ -35,11 +36,18 @@ public class ConfigLoader:Singleton<ConfigLoader>
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void Load()
|
public void Load()
|
||||||
{
|
{
|
||||||
var tablesCtor = typeof(Tables).GetConstructors()[0];
|
try
|
||||||
var loaderReturnType = tablesCtor.GetParameters()[0].ParameterType.GetGenericArguments()[1];
|
{
|
||||||
|
var tablesCtor = typeof(Tables).GetConstructors()[0];
|
||||||
|
var loaderReturnType = tablesCtor.GetParameters()[0].ParameterType.GetGenericArguments()[1];
|
||||||
|
|
||||||
System.Delegate loader = new System.Func<string, ByteBuf>(LoadByteBuf);
|
System.Delegate loader = new System.Func<string, ByteBuf>(LoadByteBuf);
|
||||||
_tables = (Tables)tablesCtor.Invoke(new object[] { loader });
|
_tables = (Tables)tablesCtor.Invoke(new object[] { loader });
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Log.Warning($"找不到游戏配置 启动项目前请运行Luban目录gen_code_bin_to_server.bat."+e.Message);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user