Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
老鱼er
et
提交
e96aa6c2
E
et
项目概览
老鱼er
/
et
与 Fork 源项目一致
从无法访问的项目Fork
通知
10
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
et
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e96aa6c2
编写于
10月 17, 2017
作者:
T
tanghai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
加上默认参数,以后命令行可以少输入几个参数
上级
7d3bf75f
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
5 addition
and
11 deletion
+5
-11
Server/App/Program.cs
Server/App/Program.cs
+1
-1
Server/App/Properties/launchSettings.json
Server/App/Properties/launchSettings.json
+0
-1
Server/Model/Other/Options.cs
Server/Model/Other/Options.cs
+3
-3
Unity/Unity.sln
Unity/Unity.sln
+1
-6
未找到文件。
Server/App/Program.cs
浏览文件 @
e96aa6c2
...
...
@@ -21,7 +21,7 @@ namespace App
Options
options
=
Game
.
Scene
.
AddComponent
<
OptionComponent
,
string
[
]>
(
args
).
Options
;
StartConfig
startConfig
=
Game
.
Scene
.
AddComponent
<
StartConfigComponent
,
string
,
int
>(
options
.
Config
,
options
.
AppId
).
StartConfig
;
if
(
options
.
AppType
!=
startConfig
.
AppType
)
if
(
!
options
.
AppType
.
Is
(
startConfig
.
AppType
)
)
{
Log
.
Error
(
"命令行参数apptype与配置不一致"
);
return
;
...
...
Server/App/Properties/launchSettings.json
浏览文件 @
e96aa6c2
...
...
@@ -2,7 +2,6 @@
"profiles"
:
{
"Server.App"
:
{
"commandName"
:
"Project"
,
"commandLineArgs"
:
"--appId=1 --appType=AllServer --config=../Config/StartConfig/LocalAllServer.txt"
,
"workingDirectory"
:
"D:
\\
Source
\\
Egametang
\\
netcoreapp2.0"
}
}
...
...
Server/Model/Other/Options.cs
浏览文件 @
e96aa6c2
...
...
@@ -6,14 +6,14 @@ namespace Model
{
public
class
Options
{
[
Option
(
"appId"
,
Required
=
true
)]
[
Option
(
"appId"
,
Required
=
false
,
Default
=
1
)]
public
int
AppId
{
get
;
set
;
}
// 没啥用,主要是在查看进程信息能区分每个app.exe的类型
[
Option
(
"appType"
,
Required
=
true
)]
[
Option
(
"appType"
,
Required
=
false
,
Default
=
AppType
.
Manager
)]
public
AppType
AppType
{
get
;
set
;
}
[
Option
(
"config"
,
Required
=
false
)]
[
Option
(
"config"
,
Required
=
false
,
Default
=
"../Config/StartConfig/LocalAllServer.txt"
)]
public
string
Config
{
get
;
set
;
}
}
}
\ No newline at end of file
Unity/Unity.sln
浏览文件 @
e96aa6c2
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26730.15
MinimumVisualStudioVersion = 10.0.40219.1
# Visual Studio 2017
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.Plugins", "Unity.Plugins.csproj", "{D1FDB199-0FB7-099D-3771-C6A942E4E326}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity", "Unity.csproj", "{CF118143-7E37-744F-BE45-3F55345FEC40}"
...
...
@@ -43,7 +41,4 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {ED6F29BC-3CD2-4A7E-938F-1F85FFE60CB1}
EndGlobalSection
EndGlobal
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录