|
|
@@ -16,7 +16,7 @@ namespace App
|
|
|
Log.Info("server start........................");
|
|
|
|
|
|
Object.ObjectManager.Register("Base", typeof(Game).Assembly);
|
|
|
- Object.ObjectManager.Register("Model", typeof(Opcode).Assembly);
|
|
|
+ Object.ObjectManager.Register("Model", typeof(ErrorCode).Assembly);
|
|
|
byte[] dllBytes = File.ReadAllBytes("./Controller.dll");
|
|
|
byte[] pdbBytes = File.ReadAllBytes("./Controller.pdb");
|
|
|
Assembly controller = Assembly.Load(dllBytes, pdbBytes);
|
|
|
@@ -32,9 +32,9 @@ namespace App
|
|
|
// 根据不同的AppType添加不同的组件
|
|
|
switch (options.AppType)
|
|
|
{
|
|
|
- case "realm":
|
|
|
+ case "Realm":
|
|
|
break;
|
|
|
- case "gate":
|
|
|
+ case "Gate":
|
|
|
break;
|
|
|
default:
|
|
|
throw new Exception($"命令行参数没有设置正确的AppType: {options.AppType}");
|