未验证 提交 176a7637 编写于 作者: L Logicoder 提交者: GitHub

Update StartSceneConfig (#235)

* 把Core的依赖文件移到Core内部,使得Core不在依赖任何外部文件
上级 30b147ab
......@@ -67,7 +67,7 @@ namespace ET
{
get
{
return StartZoneConfigCategory.Instance.Get(this.Process);
return StartZoneConfigCategory.Instance.Get(this.Zone);
}
}
......
......@@ -82,7 +82,6 @@
<Compile Include="..\..\Unity\Assets\Model\Module\Message\MessageHandlerAttribute.cs" Link="Module\Message\MessageHandlerAttribute.cs" />
<Compile Include="..\..\Unity\Assets\Model\Module\Message\OpcodeHelper.cs" Link="Module\Message\OpcodeHelper.cs" />
<Compile Include="..\..\Unity\Assets\Model\Module\Message\OpcodeTypeComponent.cs" Link="Module\Message\OpcodeTypeComponent.cs" />
<Compile Include="..\..\Unity\Assets\Model\Module\Message\ProtobufHelper.cs" Link="Module\Message\ProtobufHelper.cs" />
<Compile Include="..\..\Unity\Assets\Model\Module\Message\RpcException.cs" Link="Module\Message\RpcException.cs" />
<Compile Include="..\..\Unity\Assets\Model\Module\Message\Session.cs" Link="Module\Message\Session.cs" />
<Compile Include="..\..\Unity\Assets\Model\Module\NetworkTCP\PacketParser.cs">
......
using CommandLine;
using System;
using System.Collections.Generic;
namespace ET
{
public enum ServerType
{
Game,
Watcher,
}
public class Options
{
[Option("ServerType", Required = false, Default = ServerType.Game, HelpText = "serverType enum")]
public ServerType ServerType { get; set; }
[Option("Process", Required = false, Default = 1)]
public int Process { get; set; } = 1;
[Option("Develop", Required = false, Default = 0, HelpText = "develop mode, 0正式 1开发 2压测")]
public int Develop { get; set; } = 0;
[Option("LogLevel", Required = false, Default = 0)]
public int LogLevel { get; set; } = 2;
}
}
\ No newline at end of file
using CommandLine;
using CommandLine;
namespace ET
{
......@@ -7,16 +7,16 @@ namespace ET
Game,
Watcher,
}
public class Options
{
//[Option("StartConfig", Required = true)]
//public string StartConfig { get; set; }
//
//[Option("ServerType", Required = false, Default = ServerType.Game, HelpText = "serverType enum")]
//public ServerType ServerType { get; set; }
[Option("Develop", Required = false, Default = 0, HelpText = "develop mode")]
[Option("ServerType", Required = false, Default = ServerType.Game, HelpText = "serverType enum")]
public ServerType ServerType { get; set; }
[Option("Develop", Required = false, Default = 0, HelpText = "develop mode, 0正式 1开发 2压测")]
public int Develop { get; set; }
[Option("Process", Required = false, Default = 1)]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册