Преглед изворни кода

修复工具的错误,不用再输入Console=1
启动ExcelExport:
dotnet Server.dll --AppType=ExcelExporter

启动Proto2CS:
dotnet Server.dll --AppType=Proto2CS

tanghai пре 4 година
родитељ
комит
0f7d56c9e9

+ 2 - 3
Book/1.1运行指南.md

@@ -11,10 +11,9 @@
 
 5. 用vs2019打开 ET/Client-Server.sln 编译(**一定要全部工程编译,右键VS解决方案,全部编译**)
 
-6. 导表工具,编译完成后命令行进入 Bin 目录,执行 dotnet Server.dll AppType=ExcelExport --Console=1  
-
-7. 导出协议工具,编译完成后进入 Bin 目录,执行 dotnet Server.dll AppType=Proto2CS --Console=1  
+6. 导表工具,编译完成后命令行进入 Bin 目录,执行 dotnet Server.dll --AppType=ExcelExport  
 
+7. 导出协议工具,编译完成后进入 Bin 目录,执行 dotnet Server.dll --AppType=Proto2CS  
 # 测试状态同步demo
 
 >  帧同步demo已经删除,需要的话请看ET4.0分支

+ 3 - 0
Server/App/Server.App.csproj

@@ -33,6 +33,9 @@
     <None Update="NLog.config">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </None>
+    <None Update="Template.txt">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
   </ItemGroup>
 
   <ItemGroup>

+ 0 - 0
Server/Model/ExcelExporter/Template.txt → Server/App/Template.txt


+ 2 - 0
Server/Hotfix/AppStart_Init.cs

@@ -10,11 +10,13 @@ namespace ET
             {
                 case AppType.ExcelExporter:
                 {
+                    Game.Options.Console = 1;
                     ExcelExporter.Export();
                     return;
                 }
                 case AppType.Proto2CS:
                 {
+                    Game.Options.Console = 1;
                     Proto2CS.Export();
                     return;
                 }

+ 0 - 5
Server/Model/Server.Model.csproj

@@ -143,9 +143,4 @@
     <ProjectReference Include="..\..\ThirdParty\ShareLib\ShareLib.csproj" />
     <ProjectReference Include="..\..\ThirdParty\UnityEngine\UnityEngine.csproj" />
   </ItemGroup>
-  <ItemGroup>
-    <None Update="ExcelExporter\Template.txt">
-      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
-    </None>
-  </ItemGroup>
 </Project>

+ 1 - 1
Unity/Assets/Model/Core/Object/ObjectPool.cs

@@ -63,7 +63,7 @@ namespace ET
             }
         }
 
-        public readonly Dictionary<Type, ComponentQueue> dictionary = new Dictionary<Type, ComponentQueue>();
+        private readonly Dictionary<Type, ComponentQueue> dictionary = new Dictionary<Type, ComponentQueue>();
 
         public Object Fetch(Type type)
         {