Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
guo450212436
et
提交
7a7d58b6
E
et
项目概览
guo450212436
/
et
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
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,体验更适合开发者的 AI 搜索 >>
提交
7a7d58b6
编写于
3月 12, 2018
作者:
T
tanghai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.去掉消息继承机制,主要是很多序列化库无法继承,包括ILRuntime端的protobuf
2.actor消息因为无法继承,所以做了一些实现上的改动
上级
ce551d44
变更
34
隐藏空白更改
内联
并排
Showing
34 changed file
with
221 addition
and
252 deletion
+221
-252
Client-Server.sln
Client-Server.sln
+1
-1
Proto/OuterMessage.proto
Proto/OuterMessage.proto
+0
-6
Server/Hotfix/Module/Actor/EntityActorHandler.cs
Server/Hotfix/Module/Actor/EntityActorHandler.cs
+32
-18
Server/Hotfix/Module/FrameSync/ServerFrameComponentSystem.cs
Server/Hotfix/Module/FrameSync/ServerFrameComponentSystem.cs
+3
-3
Server/Hotfix/Module/Message/OuterMessageDispatcher.cs
Server/Hotfix/Module/Message/OuterMessageDispatcher.cs
+17
-0
Server/Model/Module/Actor/AMActorHandler.cs
Server/Model/Module/Actor/AMActorHandler.cs
+19
-9
Server/Model/Module/Actor/ActorMessageDispatherComponent.cs
Server/Model/Module/Actor/ActorMessageDispatherComponent.cs
+3
-3
Server/Model/Module/Actor/ActorProxy.cs
Server/Model/Module/Actor/ActorProxy.cs
+2
-2
Server/Model/Module/Actor/ActorRequestWrap.cs
Server/Model/Module/Actor/ActorRequestWrap.cs
+11
-2
Server/Model/Module/Actor/ActorTask.cs
Server/Model/Module/Actor/ActorTask.cs
+21
-7
Server/Model/Module/Actor/IMActorHandler.cs
Server/Model/Module/Actor/IMActorHandler.cs
+1
-1
Server/Model/Module/Message/HotfixMessage.cs
Server/Model/Module/Message/HotfixMessage.cs
+2
-9
Server/Model/Module/Message/OuterMessage.cs
Server/Model/Module/Message/OuterMessage.cs
+7
-43
Server/Model/Module/Message/OuterOpcode.cs
Server/Model/Module/Message/OuterOpcode.cs
+5
-6
Unity/Assets/Editor/Proto2CsEditor/Proto2CSEditor.cs
Unity/Assets/Editor/Proto2CsEditor/Proto2CSEditor.cs
+2
-3
Unity/Assets/Scripts/Module/FrameSync/ClientFrameComponent.cs
...y/Assets/Scripts/Module/FrameSync/ClientFrameComponent.cs
+11
-17
Unity/Assets/Scripts/Module/FrameSync/FrameMessage.cs
Unity/Assets/Scripts/Module/FrameSync/FrameMessage.cs
+13
-3
Unity/Assets/Scripts/Module/Message/ClientDispatcher.cs
Unity/Assets/Scripts/Module/Message/ClientDispatcher.cs
+1
-1
Unity/Assets/Scripts/Module/Message/IMessage.cs
Unity/Assets/Scripts/Module/Message/IMessage.cs
+0
-5
Unity/Assets/Scripts/Module/Message/Opcode.cs
Unity/Assets/Scripts/Module/Message/Opcode.cs
+1
-0
Unity/Assets/Scripts/Module/Message/OuterMessage.cs
Unity/Assets/Scripts/Module/Message/OuterMessage.cs
+7
-31
Unity/Assets/Scripts/Module/Message/OuterOpcode.cs
Unity/Assets/Scripts/Module/Message/OuterOpcode.cs
+5
-6
Unity/Assets/Scripts/Module/Message/Session.cs
Unity/Assets/Scripts/Module/Message/Session.cs
+1
-1
Unity/Assets/ThirdParty/ILRuntime/Generated/CLRBindings.cs
Unity/Assets/ThirdParty/ILRuntime/Generated/CLRBindings.cs
+1
-1
Unity/Assets/ThirdParty/ILRuntime/Generated/System_Collections_Generic_Dictionary_2_Int32_Action_1_ILTypeI_t.cs
...lections_Generic_Dictionary_2_Int32_Action_1_ILTypeI_t.cs
+0
-18
Unity/Assets/ThirdParty/ILRuntime/Generated/System_Linq_Enumerable_Binding.cs
...rty/ILRuntime/Generated/System_Linq_Enumerable_Binding.cs
+3
-31
Unity/Hotfix/Module/FrameSync/OperaComponent.cs
Unity/Hotfix/Module/FrameSync/OperaComponent.cs
+1
-1
Unity/Hotfix/Module/Message/HotfixMessage.cs
Unity/Hotfix/Module/Message/HotfixMessage.cs
+2
-2
Unity/Hotfix/Module/Message/IMessage.cs
Unity/Hotfix/Module/Message/IMessage.cs
+0
-5
Unity/Hotfix/Module/Message/SessionWrap.cs
Unity/Hotfix/Module/Message/SessionWrap.cs
+3
-1
Unity/Unity.Editor.Plugins.csproj
Unity/Unity.Editor.Plugins.csproj
+14
-5
Unity/Unity.Editor.csproj
Unity/Unity.Editor.csproj
+14
-5
Unity/Unity.Plugins.csproj
Unity/Unity.Plugins.csproj
+9
-3
Unity/Unity.csproj
Unity/Unity.csproj
+9
-3
未找到文件。
Client-Server.sln
浏览文件 @
7a7d58b6
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.20
27
VisualStudioVersion = 15.0.27130.20
36
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.Plugins", "Unity\Unity.Plugins.csproj", "{D1FDB199-0FB7-099D-3771-C6A942E4E326}"
EndProject
...
...
Proto/OuterMessage.proto
浏览文件 @
7a7d58b6
...
...
@@ -44,12 +44,6 @@ message Actor_CreateUnits // IActorMessage
repeated
UnitInfo
Units
=
1
;
}
message
FrameMessageInfo
{
required
int64
Id
=
1
;
required
MessageObject
Message
=
2
;
}
message
Frame_ClickMap
// IFrameMessage
{
required
int32
X
=
1
;
...
...
Server/Hotfix/Module/Actor/EntityActorHandler.cs
浏览文件 @
7a7d58b6
...
...
@@ -9,21 +9,29 @@ namespace ETHotfix
/// </summary>
public
class
GateSessionEntityActorHandler
:
IEntityActorHandler
{
public
async
Task
Handle
(
Session
session
,
Entity
entity
,
ActorRequest
message
)
public
async
Task
Handle
(
Session
session
,
Entity
entity
,
ActorRequest
actorRequest
)
{
ActorResponse
r
esponse
=
new
ActorResponse
();
ActorResponse
actorR
esponse
=
new
ActorResponse
();
try
{
((
Session
)
entity
).
Send
((
IMessage
)
message
.
AMessage
);
response
.
RpcId
=
message
.
RpcId
;
session
.
Reply
(
response
);
OpcodeTypeComponent
opcodeTypeComponent
=
session
.
Network
.
Entity
.
GetComponent
<
OpcodeTypeComponent
>();
Type
type
=
opcodeTypeComponent
.
GetType
(
actorRequest
.
Op
);
IMessage
message
=
(
IMessage
)
session
.
Network
.
MessagePacker
.
DeserializeFrom
(
type
,
actorRequest
.
AMessage
);
// 发送给客户端
Session
clientSession
=
entity
as
Session
;
clientSession
.
Send
(
actorResponse
.
Flag
,
message
);
actorResponse
.
RpcId
=
actorRequest
.
RpcId
;
session
.
Reply
(
actorResponse
);
await
Task
.
CompletedTask
;
}
catch
(
Exception
e
)
{
response
.
Error
=
ErrorCode
.
ERR_SessionActorError
;
response
.
Message
=
$"session actor error
{
e
}
"
;
session
.
Reply
(
response
);
actorResponse
.
Error
=
ErrorCode
.
ERR_SessionActorError
;
actorResponse
.
Message
=
$"session actor error
{
e
}
"
;
actorResponse
.
RpcId
=
actorRequest
.
RpcId
;
session
.
Reply
(
actorResponse
);
throw
;
}
}
...
...
@@ -31,9 +39,12 @@ namespace ETHotfix
public
class
CommonEntityActorHandler
:
IEntityActorHandler
{
public
async
Task
Handle
(
Session
session
,
Entity
entity
,
ActorRequest
message
)
public
async
Task
Handle
(
Session
session
,
Entity
entity
,
ActorRequest
actorRequest
)
{
await
Game
.
Scene
.
GetComponent
<
ActorMessageDispatherComponent
>().
Handle
(
session
,
entity
,
message
);
OpcodeTypeComponent
opcodeTypeComponent
=
session
.
Network
.
Entity
.
GetComponent
<
OpcodeTypeComponent
>();
Type
type
=
opcodeTypeComponent
.
GetType
(
actorRequest
.
Op
);
IMessage
message
=
(
IMessage
)
session
.
Network
.
MessagePacker
.
DeserializeFrom
(
type
,
actorRequest
.
AMessage
);
await
Game
.
Scene
.
GetComponent
<
ActorMessageDispatherComponent
>().
Handle
(
session
,
entity
,
actorRequest
,
message
);
}
}
...
...
@@ -42,19 +53,22 @@ namespace ETHotfix
/// </summary>
public
class
MapUnitEntityActorHandler
:
IEntityActorHandler
{
public
async
Task
Handle
(
Session
session
,
Entity
entity
,
ActorRequest
message
)
public
async
Task
Handle
(
Session
session
,
Entity
entity
,
ActorRequest
actorRequest
)
{
if
(
message
.
AMessage
is
IFrameMessage
aFrameMessage
)
OpcodeTypeComponent
opcodeTypeComponent
=
session
.
Network
.
Entity
.
GetComponent
<
OpcodeTypeComponent
>();
Type
type
=
opcodeTypeComponent
.
GetType
(
actorRequest
.
Op
);
IMessage
message
=
(
IMessage
)
session
.
Network
.
MessagePacker
.
DeserializeFrom
(
type
,
actorRequest
.
AMessage
);
if
(
message
is
OneFrameMessage
aFrameMessage
)
{
// 客户端发送不需要设置Frame消息的id,在这里统一设置,防止客户端被破解发个假的id过来
aFrameMessage
.
Id
=
entity
.
Id
;
Game
.
Scene
.
GetComponent
<
ServerFrameComponent
>().
Add
(
aFrameMessage
);
ActorResponse
response
=
new
ActorResponse
();
response
.
RpcId
=
message
.
RpcId
;
session
.
Reply
(
response
);
ActorResponse
actorResponse
=
new
ActorResponse
();
actorResponse
.
RpcId
=
actorRequest
.
RpcId
;
session
.
Reply
(
actorResponse
);
return
;
}
await
Game
.
Scene
.
GetComponent
<
ActorMessageDispatherComponent
>().
Handle
(
session
,
entity
,
message
);
await
Game
.
Scene
.
GetComponent
<
ActorMessageDispatherComponent
>().
Handle
(
session
,
entity
,
actorRequest
,
message
);
}
}
}
\ No newline at end of file
Server/Hotfix/Module/FrameSync/ServerFrameComponentSystem.cs
浏览文件 @
7a7d58b6
...
...
@@ -32,7 +32,7 @@ namespace ETHotfix
return
;
}
await
timerComponent
.
WaitAsync
(
4
0
);
await
timerComponent
.
WaitAsync
(
10
0
);
MessageHelper
.
Broadcast
(
self
.
FrameMessage
);
...
...
@@ -41,9 +41,9 @@ namespace ETHotfix
}
}
public
static
void
Add
(
this
ServerFrameComponent
self
,
IFrameMessage
m
essage
)
public
static
void
Add
(
this
ServerFrameComponent
self
,
OneFrameMessage
oneFrameM
essage
)
{
self
.
FrameMessage
.
Messages
.
Add
(
(
MessageObject
)
m
essage
);
self
.
FrameMessage
.
Messages
.
Add
(
oneFrameM
essage
);
}
}
}
\ No newline at end of file
Server/Hotfix/Module/Message/OuterMessageDispatcher.cs
浏览文件 @
7a7d58b6
...
...
@@ -10,6 +10,23 @@ namespace ETHotfix
ushort
opcode
=
packet
.
Opcode
();
Type
messageType
=
Game
.
Scene
.
GetComponent
<
OpcodeTypeComponent
>().
GetType
(
opcode
);
object
message
=
session
.
Network
.
MessagePacker
.
DeserializeFrom
(
messageType
,
packet
.
Bytes
,
Packet
.
Index
,
packet
.
Length
-
Packet
.
Index
);
// 如果是帧指令消息,构造成OneFrameMessage发给对应的unit
if
(
message
is
IFrameMessage
)
{
long
unitId
=
session
.
GetComponent
<
SessionPlayerComponent
>().
Player
.
UnitId
;
ActorProxy
actorProxy
=
Game
.
Scene
.
GetComponent
<
ActorProxyComponent
>().
Get
(
unitId
);
// 这里设置了帧消息的id,防止客户端伪造
IFrameMessage
iFrameMessage
=
(
IFrameMessage
)
message
;
iFrameMessage
.
Id
=
unitId
;
OneFrameMessage
oneFrameMessage
=
new
OneFrameMessage
();
oneFrameMessage
.
Op
=
opcode
;
oneFrameMessage
.
AMessage
=
session
.
Network
.
MessagePacker
.
SerializeToByteArray
(
iFrameMessage
);
actorProxy
.
Send
(
oneFrameMessage
);
return
;
}
// gate session收到actor消息直接转发给actor自己去处理
if
(
message
is
IActorMessage
)
...
...
Server/Model/Module/Actor/AMActorHandler.cs
浏览文件 @
7a7d58b6
...
...
@@ -3,13 +3,13 @@ using System.Threading.Tasks;
namespace
ETModel
{
public
abstract
class
AMActorHandler
<
E
,
Message
>:
IMActorHandler
where
E
:
Entity
where
Message
:
MessageObject
public
abstract
class
AMActorHandler
<
E
,
Message
>:
IMActorHandler
where
E
:
Entity
where
Message
:
class
{
protected
abstract
Task
Run
(
E
entity
,
Message
message
);
public
async
Task
Handle
(
Session
session
,
Entity
entity
,
ActorRequest
message
)
public
async
Task
Handle
(
Session
session
,
Entity
entity
,
ActorRequest
actorRequest
,
object
message
)
{
Message
msg
=
message
.
AMessage
as
Message
;
Message
msg
=
message
as
Message
;
if
(
msg
==
null
)
{
Log
.
Error
(
$"消息类型转换错误:
{
message
.
GetType
().
FullName
}
to
{
typeof
(
Message
).
Name
}
"
);
...
...
@@ -39,7 +39,7 @@ namespace ETModel
}
}
public
abstract
class
AMActorRpcHandler
<
E
,
Request
,
Response
>:
IMActorHandler
where
E
:
Entity
where
Request
:
MessageObject
,
IActorRequest
where
Response
:
MessageObject
,
IActorResponse
public
abstract
class
AMActorRpcHandler
<
E
,
Request
,
Response
>:
IMActorHandler
where
E
:
Entity
where
Request
:
class
,
IActorRequest
where
Response
:
class
,
IActorResponse
{
protected
static
void
ReplyError
(
Response
response
,
Exception
e
,
Action
<
Response
>
reply
)
{
...
...
@@ -51,11 +51,11 @@ namespace ETModel
protected
abstract
Task
Run
(
E
unit
,
Request
message
,
Action
<
Response
>
reply
);
public
async
Task
Handle
(
Session
session
,
Entity
entity
,
ActorRequest
message
)
public
async
Task
Handle
(
Session
session
,
Entity
entity
,
ActorRequest
actorRequest
,
object
message
)
{
try
{
Request
request
=
message
.
AMessage
as
Request
;
Request
request
=
message
as
Request
;
if
(
request
==
null
)
{
Log
.
Error
(
$"消息类型转换错误:
{
message
.
GetType
().
FullName
}
to
{
typeof
(
Request
).
Name
}
"
);
...
...
@@ -67,6 +67,8 @@ namespace ETModel
Log
.
Error
(
$"Actor类型转换错误:
{
entity
.
GetType
().
Name
}
to
{
typeof
(
E
).
Name
}
"
);
return
;
}
int
rpcId
=
request
.
RpcId
;
await
this
.
Run
(
e
,
request
,
response
=>
{
// 等回调回来,session可以已经断开了,所以需要判断session id是否为0
...
...
@@ -74,12 +76,20 @@ namespace ETModel
{
return
;
}
response
.
RpcId
=
rpcId
;
OpcodeTypeComponent
opcodeTypeComponent
=
session
.
Network
.
Entity
.
GetComponent
<
OpcodeTypeComponent
>();
ushort
opcode
=
opcodeTypeComponent
.
GetOpcode
(
response
.
GetType
());
byte
[]
repsponseBytes
=
session
.
Network
.
MessagePacker
.
SerializeToByteArray
(
response
);
ActorResponse
actorResponse
=
new
ActorResponse
{
AMessage
=
response
Flag
=
0x01
,
Op
=
opcode
,
AMessage
=
repsponseBytes
};
int
rpcId
=
message
.
RpcId
;
actorResponse
.
RpcId
=
rpcId
;
actorResponse
.
RpcId
=
actorRequest
.
RpcId
;
session
.
Reply
(
actorResponse
);
});
}
...
...
Server/Model/Module/Actor/ActorMessageDispatherComponent.cs
浏览文件 @
7a7d58b6
...
...
@@ -75,14 +75,14 @@ namespace ETModel
return
actorHandler
;
}
public
async
Task
Handle
(
Session
session
,
Entity
entity
,
ActorRequest
message
)
public
async
Task
Handle
(
Session
session
,
Entity
entity
,
ActorRequest
actorRequest
,
object
message
)
{
if
(!
this
.
handlers
.
TryGetValue
(
message
.
AMessage
.
GetType
(),
out
IMActorHandler
handler
))
if
(!
this
.
handlers
.
TryGetValue
(
message
.
GetType
(),
out
IMActorHandler
handler
))
{
throw
new
Exception
(
$"not found message handler:
{
MongoHelper
.
ToJson
(
message
)}
"
);
}
await
handler
.
Handle
(
session
,
entity
,
message
);
await
handler
.
Handle
(
session
,
entity
,
actorRequest
,
message
);
}
public
override
void
Dispose
()
...
...
Server/Model/Module/Actor/ActorProxy.cs
浏览文件 @
7a7d58b6
...
...
@@ -209,7 +209,7 @@ namespace ETModel
public
void
Send
(
IMessage
message
)
{
ActorTask
task
=
new
ActorTask
();
task
.
message
=
(
MessageObject
)
message
;
task
.
message
=
message
;
task
.
proxy
=
this
;
this
.
Add
(
task
);
}
...
...
@@ -217,7 +217,7 @@ namespace ETModel
public
Task
<
IResponse
>
Call
(
IRequest
request
)
{
ActorTask
task
=
new
ActorTask
();
task
.
message
=
(
MessageObject
)
request
;
task
.
message
=
request
;
task
.
proxy
=
this
;
task
.
Tcs
=
new
TaskCompletionSource
<
IResponse
>();
this
.
Add
(
task
);
...
...
Server/Model/Module/Actor/ActorRequestWrap.cs
浏览文件 @
7a7d58b6
...
...
@@ -19,7 +19,10 @@ namespace ETModel
public
long
Id
{
get
;
set
;
}
[
ProtoMember
(
2
,
IsRequired
=
true
)]
public
MessageObject
AMessage
{
get
;
set
;
}
public
ushort
Op
{
get
;
set
;
}
[
ProtoMember
(
3
,
IsRequired
=
true
)]
public
byte
[]
AMessage
{
get
;
set
;
}
}
/// <summary>
...
...
@@ -39,6 +42,12 @@ namespace ETModel
public
int
RpcId
{
get
;
set
;
}
[
ProtoMember
(
1
,
IsRequired
=
true
)]
public
MessageObject
AMessage
;
public
byte
Flag
{
get
;
set
;
}
[
ProtoMember
(
2
,
IsRequired
=
true
)]
public
ushort
Op
{
get
;
set
;
}
[
ProtoMember
(
3
,
IsRequired
=
true
)]
public
byte
[]
AMessage
{
get
;
set
;
}
}
}
Server/Model/Module/Actor/ActorTask.cs
浏览文件 @
7a7d58b6
using
System.Threading.Tasks
;
using
System
;
using
System.Threading.Tasks
;
namespace
ETModel
{
...
...
@@ -6,19 +7,32 @@ namespace ETModel
{
public
ActorProxy
proxy
;
public
MessageO
bject
message
;
public
o
bject
message
;
public
TaskCompletionSource
<
IResponse
>
Tcs
;
public
async
Task
<
IResponse
>
Run
()
{
ActorRequest
request
=
new
ActorRequest
()
{
Id
=
this
.
proxy
.
Id
,
AMessage
=
this
.
message
};
ActorResponse
response
=
(
ActorResponse
)
await
this
.
proxy
.
RealCall
(
request
,
this
.
proxy
.
CancellationTokenSource
.
Token
);
if
(
response
.
Error
!=
ErrorCode
.
ERR_NotFoundActor
)
Session
session
=
Game
.
Scene
.
GetComponent
<
NetInnerComponent
>().
Get
(
this
.
proxy
.
Address
);
OpcodeTypeComponent
opcodeTypeComponent
=
session
.
Network
.
Entity
.
GetComponent
<
OpcodeTypeComponent
>();
ushort
opcode
=
opcodeTypeComponent
.
GetOpcode
(
message
.
GetType
());
byte
[]
requestBytes
=
session
.
Network
.
MessagePacker
.
SerializeToByteArray
(
message
);
ActorRequest
actorRequest
=
new
ActorRequest
()
{
Id
=
this
.
proxy
.
Id
,
Op
=
opcode
,
AMessage
=
requestBytes
};
ActorResponse
actorResponse
=
(
ActorResponse
)
await
session
.
Call
(
actorRequest
,
this
.
proxy
.
CancellationTokenSource
.
Token
);
if
(
actorResponse
.
Error
!=
ErrorCode
.
ERR_NotFoundActor
)
{
this
.
Tcs
?.
SetResult
((
IResponse
)
response
.
AMessage
);
if
(
this
.
Tcs
!=
null
)
{
Type
type
=
opcodeTypeComponent
.
GetType
(
actorResponse
.
Op
);
IResponse
response
=
(
IResponse
)
session
.
Network
.
MessagePacker
.
DeserializeFrom
(
type
,
actorResponse
.
AMessage
);
this
.
Tcs
?.
SetResult
(
response
);
}
}
return
r
esponse
;
return
actorR
esponse
;
}
public
void
RunFail
(
int
error
)
...
...
Server/Model/Module/Actor/IMActorHandler.cs
浏览文件 @
7a7d58b6
...
...
@@ -5,7 +5,7 @@ namespace ETModel
{
public
interface
IMActorHandler
{
Task
Handle
(
Session
session
,
Entity
entity
,
ActorRequest
message
);
Task
Handle
(
Session
session
,
Entity
entity
,
ActorRequest
actorRequest
,
object
message
);
Type
GetMessageType
();
}
}
\ No newline at end of file
Server/Model/Module/Message/HotfixMessage.cs
浏览文件 @
7a7d58b6
...
...
@@ -73,7 +73,7 @@ namespace ETModel
[
Message
(
HotfixOpcode
.
C2M_TestActorRequest
)]
[
ProtoContract
]
public
partial
class
C2M_TestActorRequest
:
MessageObject
,
IActorRequest
public
partial
class
C2M_TestActorRequest
:
IActorRequest
{
[
ProtoMember
(
90
,
IsRequired
=
true
)]
public
int
RpcId
{
get
;
set
;
}
...
...
@@ -84,7 +84,7 @@ namespace ETModel
[
Message
(
HotfixOpcode
.
M2C_TestActorResponse
)]
[
ProtoContract
]
public
partial
class
M2C_TestActorResponse
:
MessageObject
,
IActorResponse
public
partial
class
M2C_TestActorResponse
:
IActorResponse
{
[
ProtoMember
(
90
,
IsRequired
=
true
)]
public
int
Error
{
get
;
set
;
}
...
...
@@ -127,10 +127,3 @@ namespace ETModel
}
}
namespace
ETModel
{
[
BsonKnownTypes
(
typeof
(
C2M_TestActorRequest
))]
[
BsonKnownTypes
(
typeof
(
M2C_TestActorResponse
))]
public
partial
class
MessageObject
{}
}
Server/Model/Module/Message/OuterMessage.cs
浏览文件 @
7a7d58b6
...
...
@@ -6,7 +6,7 @@ namespace ETModel
{
[
Message
(
OuterOpcode
.
Actor_Test
)]
[
ProtoContract
]
public
partial
class
Actor_Test
:
MessageObject
,
IActorMessage
public
partial
class
Actor_Test
:
IActorMessage
{
[
ProtoMember
(
1
,
IsRequired
=
true
)]
public
string
Info
;
...
...
@@ -15,7 +15,7 @@ namespace ETModel
[
Message
(
OuterOpcode
.
Actor_TestRequest
)]
[
ProtoContract
]
public
partial
class
Actor_TestRequest
:
MessageObject
,
IActorRequest
public
partial
class
Actor_TestRequest
:
IActorRequest
{
[
ProtoMember
(
90
,
IsRequired
=
true
)]
public
int
RpcId
{
get
;
set
;
}
...
...
@@ -26,7 +26,7 @@ namespace ETModel
[
Message
(
OuterOpcode
.
Actor_TestResponse
)]
[
ProtoContract
]
public
partial
class
Actor_TestResponse
:
MessageObject
,
IActorResponse
public
partial
class
Actor_TestResponse
:
IActorResponse
{
[
ProtoMember
(
90
,
IsRequired
=
true
)]
public
int
Error
{
get
;
set
;
}
...
...
@@ -41,7 +41,7 @@ namespace ETModel
[
Message
(
OuterOpcode
.
Actor_TransferRequest
)]
[
ProtoContract
]
public
partial
class
Actor_TransferRequest
:
MessageObject
,
IActorRequest
public
partial
class
Actor_TransferRequest
:
IActorRequest
{
[
ProtoMember
(
90
,
IsRequired
=
true
)]
public
int
RpcId
{
get
;
set
;
}
...
...
@@ -52,7 +52,7 @@ namespace ETModel
[
Message
(
OuterOpcode
.
Actor_TransferResponse
)]
[
ProtoContract
]
public
partial
class
Actor_TransferResponse
:
MessageObject
,
IActorResponse
public
partial
class
Actor_TransferResponse
:
IActorResponse
{
[
ProtoMember
(
90
,
IsRequired
=
true
)]
public
int
Error
{
get
;
set
;
}
...
...
@@ -105,28 +105,16 @@ namespace ETModel
[
Message
(
OuterOpcode
.
Actor_CreateUnits
)]
[
ProtoContract
]
public
partial
class
Actor_CreateUnits
:
MessageObject
,
IActorMessage
public
partial
class
Actor_CreateUnits
:
IActorMessage
{
[
ProtoMember
(
1
)]
public
List
<
UnitInfo
>
Units
=
new
List
<
UnitInfo
>();
}
[
Message
(
OuterOpcode
.
FrameMessageInfo
)]
[
ProtoContract
]
public
partial
class
FrameMessageInfo
{
[
ProtoMember
(
1
,
IsRequired
=
true
)]
public
long
Id
;
[
ProtoMember
(
2
,
IsRequired
=
true
)]
public
MessageObject
Message
;
}
[
Message
(
OuterOpcode
.
Frame_ClickMap
)]
[
ProtoContract
]
public
partial
class
Frame_ClickMap
:
MessageObject
,
IFrameMessage
public
partial
class
Frame_ClickMap
:
IFrameMessage
{
[
ProtoMember
(
92
,
IsRequired
=
true
)]
public
long
Id
{
get
;
set
;
}
...
...
@@ -182,27 +170,3 @@ namespace ETModel
}
}
namespace
ETModel
{
[
BsonKnownTypes
(
typeof
(
Actor_Test
))]
[
BsonKnownTypes
(
typeof
(
Actor_TestRequest
))]
[
BsonKnownTypes
(
typeof
(
Actor_TestResponse
))]
[
BsonKnownTypes
(
typeof
(
Actor_TransferRequest
))]
[
BsonKnownTypes
(
typeof
(
Actor_TransferResponse
))]
[
BsonKnownTypes
(
typeof
(
Actor_CreateUnits
))]
[
BsonKnownTypes
(
typeof
(
Frame_ClickMap
))]
public
partial
class
MessageObject
{}
}
namespace
ETModel
{
[
ProtoInclude
(
OuterOpcode
.
Actor_Test
,
typeof
(
Actor_Test
))]
[
ProtoInclude
(
OuterOpcode
.
Actor_TestRequest
,
typeof
(
Actor_TestRequest
))]
[
ProtoInclude
(
OuterOpcode
.
Actor_TestResponse
,
typeof
(
Actor_TestResponse
))]
[
ProtoInclude
(
OuterOpcode
.
Actor_TransferRequest
,
typeof
(
Actor_TransferRequest
))]
[
ProtoInclude
(
OuterOpcode
.
Actor_TransferResponse
,
typeof
(
Actor_TransferResponse
))]
[
ProtoInclude
(
OuterOpcode
.
Actor_CreateUnits
,
typeof
(
Actor_CreateUnits
))]
[
ProtoInclude
(
OuterOpcode
.
Frame_ClickMap
,
typeof
(
Frame_ClickMap
))]
public
partial
class
MessageObject
{}
}
Server/Model/Module/Message/OuterOpcode.cs
浏览文件 @
7a7d58b6
...
...
@@ -11,11 +11,10 @@ namespace ETModel
public
const
ushort
G2C_EnterMap
=
107
;
public
const
ushort
UnitInfo
=
108
;
public
const
ushort
Actor_CreateUnits
=
109
;
public
const
ushort
FrameMessageInfo
=
110
;
public
const
ushort
Frame_ClickMap
=
111
;
public
const
ushort
C2M_Reload
=
112
;
public
const
ushort
M2C_Reload
=
113
;
public
const
ushort
C2R_Ping
=
114
;
public
const
ushort
R2C_Ping
=
115
;
public
const
ushort
Frame_ClickMap
=
110
;
public
const
ushort
C2M_Reload
=
111
;
public
const
ushort
M2C_Reload
=
112
;
public
const
ushort
C2R_Ping
=
113
;
public
const
ushort
R2C_Ping
=
114
;
}
}
Unity/Assets/Editor/Proto2CsEditor/Proto2CSEditor.cs
浏览文件 @
7a7d58b6
...
...
@@ -108,8 +108,7 @@ namespace MyEditor
sb
.
Append
(
$"\tpublic partial class
{
msgName
}
"
);
if
(
parentClass
==
"IActorMessage"
||
parentClass
==
"IActorRequest"
||
parentClass
==
"IActorResponse"
||
parentClass
==
"IFrameMessage"
)
{
sb
.
Append
(
$": MessageObject,
{
parentClass
}
\n"
);
parentMsg
.
Add
(
"MessageObject"
,
msgName
);
sb
.
Append
(
$":
{
parentClass
}
\n"
);
}
else
if
(
parentClass
!=
""
)
{
...
...
@@ -174,7 +173,7 @@ namespace MyEditor
//if (!isClient)
//{
GenerateHead
(
sb
,
ns
,
flag
,
opcodeClassName
);
//
GenerateHead(sb, ns, flag, opcodeClassName);
//}
File
.
WriteAllText
(
csPath
,
sb
.
ToString
());
...
...
Unity/Assets/Scripts/Module/FrameSync/ClientFrameComponent.cs
浏览文件 @
7a7d58b6
using
System.Collections.Generic
;
using
System
;
using
System.Collections.Generic
;
namespace
ETModel
{
...
...
@@ -26,7 +27,7 @@ namespace ETModel
public
int
waitTime
;
public
const
int
maxWaitTime
=
4
0
;
public
const
int
maxWaitTime
=
10
0
;
public
void
Start
()
{
...
...
@@ -43,18 +44,6 @@ namespace ETModel
TimerComponent
timerComponent
=
Game
.
Scene
.
GetComponent
<
TimerComponent
>();
while
(
true
)
{
// 如果队列中消息多于4个,则加速跑帧
this
.
waitTime
=
maxWaitTime
;
if
(
this
.
Queue
.
Count
>
4
)
{
this
.
waitTime
=
maxWaitTime
-
(
this
.
Queue
.
Count
-
4
)
*
2
;
}
// 最快加速一倍
if
(
this
.
waitTime
<
20
)
{
this
.
waitTime
=
20
;
}
await
timerComponent
.
WaitAsync
(
waitTime
);
if
(
this
.
IsDisposed
)
...
...
@@ -77,9 +66,14 @@ namespace ETModel
for
(
int
i
=
0
;
i
<
sessionFrameMessage
.
FrameMessage
.
Messages
.
Count
;
++
i
)
{
IFrameMessage
message
=
(
IFrameMessage
)
sessionFrameMessage
.
FrameMessage
.
Messages
[
i
];
ushort
opcode
=
Game
.
Scene
.
GetComponent
<
OpcodeTypeComponent
>().
GetOpcode
(
message
.
GetType
());
Game
.
Scene
.
GetComponent
<
MessageDispatherComponent
>().
Handle
(
sessionFrameMessage
.
Session
,
new
MessageInfo
(
opcode
,
message
));
OneFrameMessage
oneFrameMessage
=
sessionFrameMessage
.
FrameMessage
.
Messages
[
i
];
Session
session
=
sessionFrameMessage
.
Session
;
OpcodeTypeComponent
opcodeTypeComponent
=
session
.
Network
.
Entity
.
GetComponent
<
OpcodeTypeComponent
>();
Type
type
=
opcodeTypeComponent
.
GetType
(
oneFrameMessage
.
Op
);
IMessage
message
=
(
IMessage
)
session
.
Network
.
MessagePacker
.
DeserializeFrom
(
type
,
oneFrameMessage
.
AMessage
);
Game
.
Scene
.
GetComponent
<
MessageDispatherComponent
>().
Handle
(
sessionFrameMessage
.
Session
,
new
MessageInfo
(
oneFrameMessage
.
Op
,
message
));
}
}
}
...
...
Unity/Assets/Scripts/Module/FrameSync/FrameMessage.cs
浏览文件 @
7a7d58b6
...
...
@@ -3,15 +3,25 @@ using ProtoBuf;
namespace
ETModel
{
[
Message
(
Opcode
.
OneFrameMessage
)]
[
ProtoContract
]
public
class
OneFrameMessage
:
IMessage
{
[
ProtoMember
(
1
,
IsRequired
=
true
)]
public
ushort
Op
;
[
ProtoMember
(
2
,
IsRequired
=
true
)]
public
byte
[]
AMessage
;
}
[
Message
(
Opcode
.
FrameMessage
)]
[
ProtoContract
]
public
partial
class
FrameMessage
:
MessageObject
,
IActorMessage
public
partial
class
FrameMessage
:
IActorMessage
{
[
ProtoMember
(
1
,
IsRequired
=
true
)]
public
int
Frame
;
[
ProtoMember
(
2
)]
public
List
<
MessageObject
>
Messages
=
new
List
<
MessageObject
>();
public
List
<
OneFrameMessage
>
Messages
=
new
List
<
OneFrameMessage
>();
}
}
Unity/Assets/Scripts/Module/Message/ClientDispatcher.cs
浏览文件 @
7a7d58b6
...
...
@@ -7,7 +7,7 @@ namespace ETModel
public
void
Dispatch
(
Session
session
,
Packet
packet
)
{
ushort
opcode
=
packet
.
Opcode
();
if
(
OpcodeHelper
.
IsClientHotfixMessage
(
opcode
))
{
session
.
GetComponent
<
SessionCallbackComponent
>().
MessageCallback
.
Invoke
(
session
,
packet
);
...
...
Unity/Assets/Scripts/Module/Message/IMessage.cs
浏览文件 @
7a7d58b6
...
...
@@ -3,11 +3,6 @@
// 不要在这个文件加[ProtoInclude]跟[BsonKnowType]标签,加到InnerMessage.cs或者OuterMessage.cs里面去
namespace
ETModel
{
[
ProtoContract
]
public
partial
class
MessageObject
{
}
public
interface
IMessage
{
}
...
...
Unity/Assets/Scripts/Module/Message/Opcode.cs
浏览文件 @
7a7d58b6
...
...
@@ -5,5 +5,6 @@ namespace ETModel
public
const
ushort
ActorRequest
=
1
;
public
const
ushort
ActorResponse
=
2
;
public
const
ushort
FrameMessage
=
3
;
public
const
ushort
OneFrameMessage
=
4
;
}
}
Unity/Assets/Scripts/Module/Message/OuterMessage.cs
浏览文件 @
7a7d58b6
...
...
@@ -6,7 +6,7 @@ namespace ETModel
{
[
Message
(
OuterOpcode
.
Actor_Test
)]
[
ProtoContract
]
public
partial
class
Actor_Test
:
MessageObject
,
IActorMessage
public
partial
class
Actor_Test
:
IActorMessage
{
[
ProtoMember
(
1
,
IsRequired
=
true
)]
public
string
Info
;
...
...
@@ -15,7 +15,7 @@ namespace ETModel
[
Message
(
OuterOpcode
.
Actor_TestRequest
)]
[
ProtoContract
]
public
partial
class
Actor_TestRequest
:
MessageObject
,
IActorRequest
public
partial
class
Actor_TestRequest
:
IActorRequest
{
[
ProtoMember
(
90
,
IsRequired
=
true
)]
public
int
RpcId
{
get
;
set
;
}
...
...
@@ -26,7 +26,7 @@ namespace ETModel
[
Message
(
OuterOpcode
.
Actor_TestResponse
)]
[
ProtoContract
]
public
partial
class
Actor_TestResponse
:
MessageObject
,
IActorResponse
public
partial
class
Actor_TestResponse
:
IActorResponse
{
[
ProtoMember
(
90
,
IsRequired
=
true
)]
public
int
Error
{
get
;
set
;
}
...
...
@@ -41,7 +41,7 @@ namespace ETModel
[
Message
(
OuterOpcode
.
Actor_TransferRequest
)]
[
ProtoContract
]
public
partial
class
Actor_TransferRequest
:
MessageObject
,
IActorRequest
public
partial
class
Actor_TransferRequest
:
IActorRequest
{
[
ProtoMember
(
90
,
IsRequired
=
true
)]
public
int
RpcId
{
get
;
set
;
}
...
...
@@ -52,7 +52,7 @@ namespace ETModel
[
Message
(
OuterOpcode
.
Actor_TransferResponse
)]
[
ProtoContract
]
public
partial
class
Actor_TransferResponse
:
MessageObject
,
IActorResponse
public
partial
class
Actor_TransferResponse
:
IActorResponse
{
[
ProtoMember
(
90
,
IsRequired
=
true
)]
public
int
Error
{
get
;
set
;
}
...
...
@@ -105,28 +105,16 @@ namespace ETModel
[
Message
(
OuterOpcode
.
Actor_CreateUnits
)]
[
ProtoContract
]
public
partial
class
Actor_CreateUnits
:
MessageObject
,
IActorMessage
public
partial
class
Actor_CreateUnits
:
IActorMessage
{
[
ProtoMember
(
1
,
TypeName
=
"ETModel.UnitInfo"
)]
public
List
<
UnitInfo
>
Units
=
new
List
<
UnitInfo
>();
}
[
Message
(
OuterOpcode
.
FrameMessageInfo
)]
[
ProtoContract
]
public
partial
class
FrameMessageInfo
{
[
ProtoMember
(
1
,
IsRequired
=
true
)]
public
long
Id
;
[
ProtoMember
(
2
,
IsRequired
=
true
)]
public
MessageObject
Message
;
}
[
Message
(
OuterOpcode
.
Frame_ClickMap
)]
[
ProtoContract
]
public
partial
class
Frame_ClickMap
:
MessageObject
,
IFrameMessage
public
partial
class
Frame_ClickMap
:
IFrameMessage
{
[
ProtoMember
(
92
,
IsRequired
=
true
)]
public
long
Id
{
get
;
set
;
}
...
...
@@ -182,15 +170,3 @@ namespace ETModel
}
}
namespace
ETModel
{
[
ProtoInclude
(
OuterOpcode
.
Actor_Test
,
typeof
(
Actor_Test
))]
[
ProtoInclude
(
OuterOpcode
.
Actor_TestRequest
,
typeof
(
Actor_TestRequest
))]
[
ProtoInclude
(
OuterOpcode
.
Actor_TestResponse
,
typeof
(
Actor_TestResponse
))]
[
ProtoInclude
(
OuterOpcode
.
Actor_TransferRequest
,
typeof
(
Actor_TransferRequest
))]
[
ProtoInclude
(
OuterOpcode
.
Actor_TransferResponse
,
typeof
(
Actor_TransferResponse
))]
[
ProtoInclude
(
OuterOpcode
.
Actor_CreateUnits
,
typeof
(
Actor_CreateUnits
))]
[
ProtoInclude
(
OuterOpcode
.
Frame_ClickMap
,
typeof
(
Frame_ClickMap
))]
public
partial
class
MessageObject
{}
}
Unity/Assets/Scripts/Module/Message/OuterOpcode.cs
浏览文件 @
7a7d58b6
...
...
@@ -11,11 +11,10 @@ namespace ETModel
public
const
ushort
G2C_EnterMap
=
107
;
public
const
ushort
UnitInfo
=
108
;
public
const
ushort
Actor_CreateUnits
=
109
;
public
const
ushort
FrameMessageInfo
=
110
;
public
const
ushort
Frame_ClickMap
=
111
;
public
const
ushort
C2M_Reload
=
112
;
public
const
ushort
M2C_Reload
=
113
;
public
const
ushort
C2R_Ping
=
114
;
public
const
ushort
R2C_Ping
=
115
;
public
const
ushort
Frame_ClickMap
=
110
;
public
const
ushort
C2M_Reload
=
111
;
public
const
ushort
M2C_Reload
=
112
;
public
const
ushort
C2R_Ping
=
113
;
public
const
ushort
R2C_Ping
=
114
;
}
}
Unity/Assets/Scripts/Module/Message/Session.cs
浏览文件 @
7a7d58b6
...
...
@@ -240,7 +240,7 @@ namespace ETModel
this
.
Send
(
0x01
,
message
);
}
p
rivate
void
Send
(
byte
flag
,
object
message
)
p
ublic
void
Send
(
byte
flag
,
object
message
)
{
OpcodeTypeComponent
opcodeTypeComponent
=
this
.
Network
.
Entity
.
GetComponent
<
OpcodeTypeComponent
>();
ushort
opcode
=
opcodeTypeComponent
.
GetOpcode
(
message
.
GetType
());
...
...
Unity/Assets/ThirdParty/ILRuntime/Generated/CLRBindings.cs
浏览文件 @
7a7d58b6
...
...
@@ -73,8 +73,8 @@ namespace ILRuntime.Runtime.Generated
System_Collections_Generic_Dictionary_2_Type_Queue_1_ILTypeInstance_Binding
.
Register
(
app
);
ETModel_Packet_Binding
.
Register
(
app
);
ETModel_ProtobufHelper_Binding
.
Register
(
app
);
ETModel_MessageInfo_Binding
.
Register
(
app
);
System_Collections_Generic_Dictionary_2_Int32_Action_1_ILTypeInstance_Binding
.
Register
(
app
);
ETModel_MessageInfo_Binding
.
Register
(
app
);
System_Threading_Tasks_TaskCompletionSource_1_ILTypeInstance_Binding
.
Register
(
app
);
System_Threading_CancellationToken_Binding
.
Register
(
app
);
ETModel_SessionCallbackComponent_Binding
.
Register
(
app
);
...
...
Unity/Assets/ThirdParty/ILRuntime/Generated/System_Collections_Generic_Dictionary_2_Int32_Action_1_ILTypeI_t.cs
浏览文件 @
7a7d58b6
...
...
@@ -31,9 +31,6 @@ namespace ILRuntime.Runtime.Generated
args
=
new
Type
[]{
typeof
(
System
.
Int32
),
typeof
(
System
.
Action
<
ILRuntime
.
Runtime
.
Intepreter
.
ILTypeInstance
>)};
method
=
type
.
GetMethod
(
"set_Item"
,
flag
,
null
,
args
,
null
);
app
.
RegisterCLRMethodRedirection
(
method
,
set_Item_2
);
args
=
new
Type
[]{};
method
=
type
.
GetMethod
(
"get_Values"
,
flag
,
null
,
args
,
null
);
app
.
RegisterCLRMethodRedirection
(
method
,
get_Values_3
);
args
=
new
Type
[]{};
method
=
type
.
GetConstructor
(
flag
,
null
,
args
,
null
);
...
...
@@ -157,21 +154,6 @@ namespace ILRuntime.Runtime.Generated
return
__ret
;
}
static
StackObject
*
get_Values_3
(
ILIntepreter
__intp
,
StackObject
*
__esp
,
IList
<
object
>
__mStack
,
CLRMethod
__method
,
bool
isNewObj
)
{
ILRuntime
.
Runtime
.
Enviorment
.
AppDomain
__domain
=
__intp
.
AppDomain
;
StackObject
*
ptr_of_this_method
;
StackObject
*
__ret
=
ILIntepreter
.
Minus
(
__esp
,
1
);
ptr_of_this_method
=
ILIntepreter
.
Minus
(
__esp
,
1
);
System
.
Collections
.
Generic
.
Dictionary
<
System
.
Int32
,
System
.
Action
<
ILRuntime
.
Runtime
.
Intepreter
.
ILTypeInstance
>>
instance_of_this_method
;
instance_of_this_method
=
(
System
.
Collections
.
Generic
.
Dictionary
<
System
.
Int32
,
System
.
Action
<
ILRuntime
.
Runtime
.
Intepreter
.
ILTypeInstance
>>)
typeof
(
System
.
Collections
.
Generic
.
Dictionary
<
System
.
Int32
,
System
.
Action
<
ILRuntime
.
Runtime
.
Intepreter
.
ILTypeInstance
>>).
CheckCLRTypes
(
StackObject
.
ToObject
(
ptr_of_this_method
,
__domain
,
__mStack
));
__intp
.
Free
(
ptr_of_this_method
);
var
result_of_this_method
=
instance_of_this_method
.
Values
;
return
ILIntepreter
.
PushObject
(
__ret
,
__mStack
,
result_of_this_method
);
}
static
StackObject
*
Ctor_0
(
ILIntepreter
__intp
,
StackObject
*
__esp
,
IList
<
object
>
__mStack
,
CLRMethod
__method
,
bool
isNewObj
)
{
...
...
Unity/Assets/ThirdParty/ILRuntime/Generated/System_Linq_Enumerable_Binding.cs
浏览文件 @
7a7d58b6
...
...
@@ -50,20 +50,6 @@ namespace ILRuntime.Runtime.Generated
}
}
}
args
=
new
Type
[]{
typeof
(
System
.
Action
<
ILRuntime
.
Runtime
.
Intepreter
.
ILTypeInstance
>)};
if
(
genericMethods
.
TryGetValue
(
"ToArray"
,
out
lst
))
{
foreach
(
var
m
in
lst
)
{
if
(
m
.
GetParameters
().
Length
==
1
)
{
method
=
m
.
MakeGenericMethod
(
args
);
app
.
RegisterCLRMethodRedirection
(
method
,
ToArray_1
);
break
;
}
}
}
args
=
new
Type
[]{
typeof
(
System
.
String
)};
if
(
genericMethods
.
TryGetValue
(
"ToArray"
,
out
lst
))
{
...
...
@@ -72,7 +58,7 @@ namespace ILRuntime.Runtime.Generated
if
(
m
.
GetParameters
().
Length
==
1
)
{
method
=
m
.
MakeGenericMethod
(
args
);
app
.
RegisterCLRMethodRedirection
(
method
,
ToArray_
2
);
app
.
RegisterCLRMethodRedirection
(
method
,
ToArray_
1
);
break
;
}
...
...
@@ -86,7 +72,7 @@ namespace ILRuntime.Runtime.Generated
if
(
m
.
GetParameters
().
Length
==
1
)
{
method
=
m
.
MakeGenericMethod
(
args
);
app
.
RegisterCLRMethodRedirection
(
method
,
First_
3
);
app
.
RegisterCLRMethodRedirection
(
method
,
First_
2
);
break
;
}
...
...
@@ -112,20 +98,6 @@ namespace ILRuntime.Runtime.Generated
}
static
StackObject
*
ToArray_1
(
ILIntepreter
__intp
,
StackObject
*
__esp
,
IList
<
object
>
__mStack
,
CLRMethod
__method
,
bool
isNewObj
)
{
ILRuntime
.
Runtime
.
Enviorment
.
AppDomain
__domain
=
__intp
.
AppDomain
;
StackObject
*
ptr_of_this_method
;
StackObject
*
__ret
=
ILIntepreter
.
Minus
(
__esp
,
1
);
ptr_of_this_method
=
ILIntepreter
.
Minus
(
__esp
,
1
);
System
.
Collections
.
Generic
.
IEnumerable
<
System
.
Action
<
ILRuntime
.
Runtime
.
Intepreter
.
ILTypeInstance
>>
source
=
(
System
.
Collections
.
Generic
.
IEnumerable
<
System
.
Action
<
ILRuntime
.
Runtime
.
Intepreter
.
ILTypeInstance
>>)
typeof
(
System
.
Collections
.
Generic
.
IEnumerable
<
System
.
Action
<
ILRuntime
.
Runtime
.
Intepreter
.
ILTypeInstance
>>).
CheckCLRTypes
(
StackObject
.
ToObject
(
ptr_of_this_method
,
__domain
,
__mStack
));
__intp
.
Free
(
ptr_of_this_method
);
var
result_of_this_method
=
System
.
Linq
.
Enumerable
.
ToArray
<
System
.
Action
<
ILRuntime
.
Runtime
.
Intepreter
.
ILTypeInstance
>>(
source
);
return
ILIntepreter
.
PushObject
(
__ret
,
__mStack
,
result_of_this_method
);
}
static
StackObject
*
ToArray_2
(
ILIntepreter
__intp
,
StackObject
*
__esp
,
IList
<
object
>
__mStack
,
CLRMethod
__method
,
bool
isNewObj
)
{
ILRuntime
.
Runtime
.
Enviorment
.
AppDomain
__domain
=
__intp
.
AppDomain
;
StackObject
*
ptr_of_this_method
;
...
...
@@ -139,7 +111,7 @@ namespace ILRuntime.Runtime.Generated
return
ILIntepreter
.
PushObject
(
__ret
,
__mStack
,
result_of_this_method
);
}
static
StackObject
*
First_
3
(
ILIntepreter
__intp
,
StackObject
*
__esp
,
IList
<
object
>
__mStack
,
CLRMethod
__method
,
bool
isNewObj
)
static
StackObject
*
First_
2
(
ILIntepreter
__intp
,
StackObject
*
__esp
,
IList
<
object
>
__mStack
,
CLRMethod
__method
,
bool
isNewObj
)
{
ILRuntime
.
Runtime
.
Enviorment
.
AppDomain
__domain
=
__intp
.
AppDomain
;
StackObject
*
ptr_of_this_method
;
...
...
Unity/Hotfix/Module/FrameSync/OperaComponent.cs
浏览文件 @
7a7d58b6
...
...
@@ -41,7 +41,7 @@ namespace ETHotfix
if
(
Physics
.
Raycast
(
ray
,
out
hit
,
1000
,
this
.
mapMask
))
{
this
.
ClickPoint
=
hit
.
point
;
ETModel
.
SessionComponent
.
Instance
.
Session
.
Send
(
new
Frame_ClickMap
()
{
X
=
(
int
)(
this
.
ClickPoint
.
x
*
1000
),
Z
=
(
int
)(
this
.
ClickPoint
.
z
*
1000
)
});
SessionComponent
.
Instance
.
Session
.
Send
(
new
Frame_ClickMap
()
{
X
=
(
int
)(
this
.
ClickPoint
.
x
*
1000
),
Z
=
(
int
)(
this
.
ClickPoint
.
z
*
1000
)
});
// 测试actor rpc消息
this
.
TestActor
();
...
...
Unity/Hotfix/Module/Message/HotfixMessage.cs
浏览文件 @
7a7d58b6
...
...
@@ -73,7 +73,7 @@ namespace ETHotfix
[
Message
(
HotfixOpcode
.
C2M_TestActorRequest
)]
[
ProtoContract
]
public
partial
class
C2M_TestActorRequest
:
MessageObject
,
IActorRequest
public
partial
class
C2M_TestActorRequest
:
IActorRequest
{
[
ProtoMember
(
90
,
IsRequired
=
true
)]
public
int
RpcId
{
get
;
set
;
}
...
...
@@ -84,7 +84,7 @@ namespace ETHotfix
[
Message
(
HotfixOpcode
.
M2C_TestActorResponse
)]
[
ProtoContract
]
public
partial
class
M2C_TestActorResponse
:
MessageObject
,
IActorResponse
public
partial
class
M2C_TestActorResponse
:
IActorResponse
{
[
ProtoMember
(
90
,
IsRequired
=
true
)]
public
int
Error
{
get
;
set
;
}
...
...
Unity/Hotfix/Module/Message/IMessage.cs
浏览文件 @
7a7d58b6
...
...
@@ -2,11 +2,6 @@
namespace
ETHotfix
{
[
ProtoContract
]
public
partial
class
MessageObject
{
}
public
interface
IMessage
{
}
...
...
Unity/Hotfix/Module/Message/SessionWrap.cs
浏览文件 @
7a7d58b6
...
...
@@ -25,10 +25,11 @@ namespace ETHotfix
{
ushort
opcode
=
p
.
Opcode
();
byte
flag
=
p
.
Flag
();
OpcodeTypeComponent
opcodeTypeComponent
=
Game
.
Scene
.
GetComponent
<
OpcodeTypeComponent
>();
Type
responseType
=
opcodeTypeComponent
.
GetType
(
opcode
);
object
message
=
ProtobufHelper
.
FromBytes
(
responseType
,
p
.
Bytes
,
Packet
.
Index
,
p
.
Length
-
Packet
.
Index
);
if
((
flag
&
0x01
)
>
0
)
{
IResponse
response
=
message
as
IResponse
;
...
...
@@ -36,6 +37,7 @@ namespace ETHotfix
{
throw
new
Exception
(
$"flag is response, but hotfix message is not!
{
opcode
}
"
);
}
Action
<
IResponse
>
action
;
if
(!
this
.
requestCallback
.
TryGetValue
(
response
.
RpcId
,
out
action
))
{
...
...
Unity/Unity.Editor.Plugins.csproj
浏览文件 @
7a7d58b6
...
...
@@ -15,7 +15,7 @@
<TargetFrameworkProfile></TargetFrameworkProfile>
<CompilerResponseFile></CompilerResponseFile>
<UnityProjectType>
EditorPlugins:7
</UnityProjectType>
<UnityBuildTarget>
StandaloneWindows
64:19
</UnityBuildTarget>
<UnityBuildTarget>
StandaloneWindows
:5
</UnityBuildTarget>
<UnityVersion>
2017.1.1p4
</UnityVersion>
<RootNamespace></RootNamespace>
<LangVersion>
6
</LangVersion>
...
...
@@ -32,7 +32,7 @@
<IntermediateOutputPath>
Temp\UnityVS_obj\Debug\
</IntermediateOutputPath>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<DefineConstants>
DEBUG;TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_1_1;UNITY_2017_1;UNITY_2017;
PLATFORM_ARCH_64;UNITY_64;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_RUNTIME_NAVMESH_BUILDING;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;ENABLE_SPRITE_MASKING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_VIDEO;ENABLE_RMGUI;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_STYLE_SHEETS;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_EVENT_QUEUE;ENABLE_CLUSTERINPUT;ENABLE_VR;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU;UNITY_PRO_LICENSE
;NET45;ILRuntime
</DefineConstants>
<DefineConstants>
DEBUG;TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_1_1;UNITY_2017_1;UNITY_2017;
ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_RUNTIME_NAVMESH_BUILDING;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;ENABLE_SPRITE_MASKING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_VIDEO;ENABLE_RMGUI;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_STYLE_SHEETS;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_EVENT_QUEUE;ENABLE_CLUSTERINPUT;ENABLE_VR;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU
;NET45;ILRuntime
</DefineConstants>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
...
...
@@ -42,7 +42,7 @@
<IntermediateOutputPath>
Temp\UnityVS_obj\Release\
</IntermediateOutputPath>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<DefineConstants>
TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_1_1;UNITY_2017_1;UNITY_2017;
PLATFORM_ARCH_64;UNITY_64;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_RUNTIME_NAVMESH_BUILDING;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;ENABLE_SPRITE_MASKING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_VIDEO;ENABLE_RMGUI;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_STYLE_SHEETS;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_EVENT_QUEUE;ENABLE_CLUSTERINPUT;ENABLE_VR;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU;UNITY_PRO_LICENSE
;NET45;ILRuntime
</DefineConstants>
<DefineConstants>
TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_1_1;UNITY_2017_1;UNITY_2017;
ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_RUNTIME_NAVMESH_BUILDING;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;ENABLE_SPRITE_MASKING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_VIDEO;ENABLE_RMGUI;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_STYLE_SHEETS;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_EVENT_QUEUE;ENABLE_CLUSTERINPUT;ENABLE_VR;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU
;NET45;ILRuntime
</DefineConstants>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
...
...
@@ -130,9 +130,15 @@
<Reference
Include=
"UnityEditor.Android.Extensions"
>
<HintPath>
C:/Apps/Unity/Editor/Data/PlaybackEngines/AndroidPlayer/UnityEditor.Android.Extensions.dll
</HintPath>
</Reference>
<Reference
Include=
"UnityEditor.iOS.Extensions"
>
<HintPath>
C:/Apps/Unity/Editor/Data/PlaybackEngines/iOSSupport/UnityEditor.iOS.Extensions.dll
</HintPath>
</Reference>
<Reference
Include=
"UnityEditor.WindowsStandalone.Extensions"
>
<HintPath>
C:/Apps/Unity/Editor/Data/PlaybackEngines/windowsstandalonesupport/UnityEditor.WindowsStandalone.Extensions.dll
</HintPath>
</Reference>
<Reference
Include=
"SyntaxTree.VisualStudio.Unity.Bridge"
>
<HintPath>
C:/Program Files (x86)/Microsoft Visual Studio Tools for Unity/15.0/Editor/SyntaxTree.VisualStudio.Unity.Bridge.dll
</HintPath>
</Reference>
<Reference
Include=
"ICSharpCode.SharpZipLib"
>
<HintPath>
Assets/Plugins/ICSharpCode.SharpZipLib.dll
</HintPath>
</Reference>
...
...
@@ -151,8 +157,11 @@
<Reference
Include=
"NPOI.OpenXmlFormats"
>
<HintPath>
Assets/Plugins/Editor/npoi/NPOI.OpenXmlFormats.dll
</HintPath>
</Reference>
<Reference
Include=
"SyntaxTree.VisualStudio.Unity.Bridge"
>
<HintPath>
C:/Program Files (x86)/Microsoft Visual Studio Tools for Unity/15.0/Editor/SyntaxTree.VisualStudio.Unity.Bridge.dll
</HintPath>
<Reference
Include=
"UnityEditor.iOS.Extensions.Xcode"
>
<HintPath>
C:/Apps/Unity/Editor/Data/PlaybackEngines/iOSSupport\UnityEditor.iOS.Extensions.Xcode.dll
</HintPath>
</Reference>
<Reference
Include=
"UnityEditor.iOS.Extensions.Common"
>
<HintPath>
C:/Apps/Unity/Editor/Data/PlaybackEngines/iOSSupport\UnityEditor.iOS.Extensions.Common.dll
</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
...
...
Unity/Unity.Editor.csproj
浏览文件 @
7a7d58b6
...
...
@@ -15,7 +15,7 @@
<TargetFrameworkProfile></TargetFrameworkProfile>
<CompilerResponseFile></CompilerResponseFile>
<UnityProjectType>
Editor:5
</UnityProjectType>
<UnityBuildTarget>
StandaloneWindows
64:19
</UnityBuildTarget>
<UnityBuildTarget>
StandaloneWindows
:5
</UnityBuildTarget>
<UnityVersion>
2017.1.1p4
</UnityVersion>
<RootNamespace></RootNamespace>
<LangVersion>
6
</LangVersion>
...
...
@@ -32,7 +32,7 @@
<IntermediateOutputPath>
Temp\UnityVS_obj\Debug\
</IntermediateOutputPath>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<DefineConstants>
DEBUG;TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_1_1;UNITY_2017_1;UNITY_2017;
PLATFORM_ARCH_64;UNITY_64;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_RUNTIME_NAVMESH_BUILDING;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;ENABLE_SPRITE_MASKING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_VIDEO;ENABLE_RMGUI;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_STYLE_SHEETS;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_EVENT_QUEUE;ENABLE_CLUSTERINPUT;ENABLE_VR;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU;UNITY_PRO_LICENSE
;NET45;ILRuntime
</DefineConstants>
<DefineConstants>
DEBUG;TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_1_1;UNITY_2017_1;UNITY_2017;
ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_RUNTIME_NAVMESH_BUILDING;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;ENABLE_SPRITE_MASKING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_VIDEO;ENABLE_RMGUI;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_STYLE_SHEETS;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_EVENT_QUEUE;ENABLE_CLUSTERINPUT;ENABLE_VR;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU
;NET45;ILRuntime
</DefineConstants>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
...
...
@@ -42,7 +42,7 @@
<IntermediateOutputPath>
Temp\UnityVS_obj\Release\
</IntermediateOutputPath>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<DefineConstants>
TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_1_1;UNITY_2017_1;UNITY_2017;
PLATFORM_ARCH_64;UNITY_64;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_RUNTIME_NAVMESH_BUILDING;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;ENABLE_SPRITE_MASKING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_VIDEO;ENABLE_RMGUI;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_STYLE_SHEETS;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_EVENT_QUEUE;ENABLE_CLUSTERINPUT;ENABLE_VR;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU;UNITY_PRO_LICENSE
;NET45;ILRuntime
</DefineConstants>
<DefineConstants>
TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_1_1;UNITY_2017_1;UNITY_2017;
ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_RUNTIME_NAVMESH_BUILDING;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;ENABLE_SPRITE_MASKING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_VIDEO;ENABLE_RMGUI;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_STYLE_SHEETS;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_EVENT_QUEUE;ENABLE_CLUSTERINPUT;ENABLE_VR;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU
;NET45;ILRuntime
</DefineConstants>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
...
...
@@ -130,9 +130,15 @@
<Reference
Include=
"UnityEditor.Android.Extensions"
>
<HintPath>
C:/Apps/Unity/Editor/Data/PlaybackEngines/AndroidPlayer/UnityEditor.Android.Extensions.dll
</HintPath>
</Reference>
<Reference
Include=
"UnityEditor.iOS.Extensions"
>
<HintPath>
C:/Apps/Unity/Editor/Data/PlaybackEngines/iOSSupport/UnityEditor.iOS.Extensions.dll
</HintPath>
</Reference>
<Reference
Include=
"UnityEditor.WindowsStandalone.Extensions"
>
<HintPath>
C:/Apps/Unity/Editor/Data/PlaybackEngines/windowsstandalonesupport/UnityEditor.WindowsStandalone.Extensions.dll
</HintPath>
</Reference>
<Reference
Include=
"SyntaxTree.VisualStudio.Unity.Bridge"
>
<HintPath>
C:/Program Files (x86)/Microsoft Visual Studio Tools for Unity/15.0/Editor/SyntaxTree.VisualStudio.Unity.Bridge.dll
</HintPath>
</Reference>
<Reference
Include=
"ICSharpCode.SharpZipLib"
>
<HintPath>
Assets/Plugins/ICSharpCode.SharpZipLib.dll
</HintPath>
</Reference>
...
...
@@ -151,8 +157,11 @@
<Reference
Include=
"NPOI.OpenXmlFormats"
>
<HintPath>
Assets/Plugins/Editor/npoi/NPOI.OpenXmlFormats.dll
</HintPath>
</Reference>
<Reference
Include=
"SyntaxTree.VisualStudio.Unity.Bridge"
>
<HintPath>
C:/Program Files (x86)/Microsoft Visual Studio Tools for Unity/15.0/Editor/SyntaxTree.VisualStudio.Unity.Bridge.dll
</HintPath>
<Reference
Include=
"UnityEditor.iOS.Extensions.Xcode"
>
<HintPath>
C:/Apps/Unity/Editor/Data/PlaybackEngines/iOSSupport\UnityEditor.iOS.Extensions.Xcode.dll
</HintPath>
</Reference>
<Reference
Include=
"UnityEditor.iOS.Extensions.Common"
>
<HintPath>
C:/Apps/Unity/Editor/Data/PlaybackEngines/iOSSupport\UnityEditor.iOS.Extensions.Common.dll
</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
...
...
Unity/Unity.Plugins.csproj
浏览文件 @
7a7d58b6
...
...
@@ -15,7 +15,7 @@
<TargetFrameworkProfile></TargetFrameworkProfile>
<CompilerResponseFile></CompilerResponseFile>
<UnityProjectType>
GamePlugins:3
</UnityProjectType>
<UnityBuildTarget>
StandaloneWindows
64:19
</UnityBuildTarget>
<UnityBuildTarget>
StandaloneWindows
:5
</UnityBuildTarget>
<UnityVersion>
2017.1.1p4
</UnityVersion>
<RootNamespace></RootNamespace>
<LangVersion>
6
</LangVersion>
...
...
@@ -32,7 +32,7 @@
<IntermediateOutputPath>
Temp\UnityVS_obj\Debug\
</IntermediateOutputPath>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<DefineConstants>
DEBUG;TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_1_1;UNITY_2017_1;UNITY_2017;
PLATFORM_ARCH_64;UNITY_64;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_RUNTIME_NAVMESH_BUILDING;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;ENABLE_SPRITE_MASKING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_VIDEO;ENABLE_RMGUI;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_STYLE_SHEETS;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_EVENT_QUEUE;ENABLE_CLUSTERINPUT;ENABLE_VR;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU;UNITY_PRO_LICENSE
;NET45;ILRuntime
</DefineConstants>
<DefineConstants>
DEBUG;TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_1_1;UNITY_2017_1;UNITY_2017;
ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_RUNTIME_NAVMESH_BUILDING;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;ENABLE_SPRITE_MASKING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_VIDEO;ENABLE_RMGUI;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_STYLE_SHEETS;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_EVENT_QUEUE;ENABLE_CLUSTERINPUT;ENABLE_VR;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU
;NET45;ILRuntime
</DefineConstants>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
...
...
@@ -42,7 +42,7 @@
<IntermediateOutputPath>
Temp\UnityVS_obj\Release\
</IntermediateOutputPath>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<DefineConstants>
TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_1_1;UNITY_2017_1;UNITY_2017;
PLATFORM_ARCH_64;UNITY_64;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_RUNTIME_NAVMESH_BUILDING;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;ENABLE_SPRITE_MASKING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_VIDEO;ENABLE_RMGUI;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_STYLE_SHEETS;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_EVENT_QUEUE;ENABLE_CLUSTERINPUT;ENABLE_VR;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU;UNITY_PRO_LICENSE
;NET45;ILRuntime
</DefineConstants>
<DefineConstants>
TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_1_1;UNITY_2017_1;UNITY_2017;
ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_RUNTIME_NAVMESH_BUILDING;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;ENABLE_SPRITE_MASKING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_VIDEO;ENABLE_RMGUI;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_STYLE_SHEETS;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_EVENT_QUEUE;ENABLE_CLUSTERINPUT;ENABLE_VR;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU
;NET45;ILRuntime
</DefineConstants>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
...
...
@@ -100,6 +100,12 @@
<Reference
Include=
"Newtonsoft.Json"
>
<HintPath>
Assets/Plugins/Newtonsoft.Json.dll
</HintPath>
</Reference>
<Reference
Include=
"UnityEditor.iOS.Extensions.Xcode"
>
<HintPath>
C:/Apps/Unity/Editor/Data/PlaybackEngines/iOSSupport\UnityEditor.iOS.Extensions.Xcode.dll
</HintPath>
</Reference>
<Reference
Include=
"UnityEditor.iOS.Extensions.Common"
>
<HintPath>
C:/Apps/Unity/Editor/Data/PlaybackEngines/iOSSupport\UnityEditor.iOS.Extensions.Common.dll
</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile
Include=
"Assets\Plugins\MongoDB\MongoDB.Bson\BsonConstants.cs"
/>
...
...
Unity/Unity.csproj
浏览文件 @
7a7d58b6
...
...
@@ -15,7 +15,7 @@
<TargetFrameworkProfile></TargetFrameworkProfile>
<CompilerResponseFile></CompilerResponseFile>
<UnityProjectType>
Game:1
</UnityProjectType>
<UnityBuildTarget>
StandaloneWindows
64:19
</UnityBuildTarget>
<UnityBuildTarget>
StandaloneWindows
:5
</UnityBuildTarget>
<UnityVersion>
2017.1.1p4
</UnityVersion>
<RootNamespace></RootNamespace>
<LangVersion>
6
</LangVersion>
...
...
@@ -32,7 +32,7 @@
<IntermediateOutputPath>
Temp\UnityVS_obj\Debug\
</IntermediateOutputPath>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<DefineConstants>
DEBUG;TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_1_1;UNITY_2017_1;UNITY_2017;
PLATFORM_ARCH_64;UNITY_64;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_RUNTIME_NAVMESH_BUILDING;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;ENABLE_SPRITE_MASKING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_VIDEO;ENABLE_RMGUI;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_STYLE_SHEETS;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_EVENT_QUEUE;ENABLE_CLUSTERINPUT;ENABLE_VR;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU;UNITY_PRO_LICENSE
;NET45;ILRuntime
</DefineConstants>
<DefineConstants>
DEBUG;TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_1_1;UNITY_2017_1;UNITY_2017;
ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_RUNTIME_NAVMESH_BUILDING;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;ENABLE_SPRITE_MASKING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_VIDEO;ENABLE_RMGUI;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_STYLE_SHEETS;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_EVENT_QUEUE;ENABLE_CLUSTERINPUT;ENABLE_VR;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU
;NET45;ILRuntime
</DefineConstants>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
...
...
@@ -42,7 +42,7 @@
<IntermediateOutputPath>
Temp\UnityVS_obj\Release\
</IntermediateOutputPath>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<DefineConstants>
TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_1_1;UNITY_2017_1;UNITY_2017;
PLATFORM_ARCH_64;UNITY_64;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_RUNTIME_NAVMESH_BUILDING;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;ENABLE_SPRITE_MASKING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_VIDEO;ENABLE_RMGUI;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_STYLE_SHEETS;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_EVENT_QUEUE;ENABLE_CLUSTERINPUT;ENABLE_VR;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU;UNITY_PRO_LICENSE
;NET45;ILRuntime
</DefineConstants>
<DefineConstants>
TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_1_1;UNITY_2017_1;UNITY_2017;
ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_RUNTIME_NAVMESH_BUILDING;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;ENABLE_SPRITE_MASKING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_VIDEO;ENABLE_RMGUI;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_STYLE_SHEETS;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_EVENT_QUEUE;ENABLE_CLUSTERINPUT;ENABLE_VR;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU
;NET45;ILRuntime
</DefineConstants>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
...
...
@@ -100,6 +100,12 @@
<Reference
Include=
"Newtonsoft.Json"
>
<HintPath>
Assets/Plugins/Newtonsoft.Json.dll
</HintPath>
</Reference>
<Reference
Include=
"UnityEditor.iOS.Extensions.Xcode"
>
<HintPath>
C:/Apps/Unity/Editor/Data/PlaybackEngines/iOSSupport\UnityEditor.iOS.Extensions.Xcode.dll
</HintPath>
</Reference>
<Reference
Include=
"UnityEditor.iOS.Extensions.Common"
>
<HintPath>
C:/Apps/Unity/Editor/Data/PlaybackEngines/iOSSupport\UnityEditor.iOS.Extensions.Common.dll
</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<ProjectReference
Include=
"Unity.Plugins.csproj"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录