Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
guo450212436
et
提交
15b049d1
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 搜索 >>
提交
15b049d1
编写于
11月 03, 2016
作者:
T
tanghai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
去除了BsonClassMap注册方式,使用BsonKnownTypes标签注册,更简单方便
上级
d4a1ee58
变更
42
隐藏空白更改
内联
并排
Showing
42 changed file
with
98 addition
and
110 deletion
+98
-110
Config/StartConfig/LocalAllServer.txt
Config/StartConfig/LocalAllServer.txt
+1
-1
Server/App/Program.cs
Server/App/Program.cs
+1
-3
Server/Base/Server.Base.csproj
Server/Base/Server.Base.csproj
+0
-27
Server/Controller/Message/C2R_LoginHandler.cs
Server/Controller/Message/C2R_LoginHandler.cs
+1
-1
Server/Controller/Message/M2A_ReloadHandler.cs
Server/Controller/Message/M2A_ReloadHandler.cs
+1
-1
Server/Model/Component/RealmGateAddressComponent.cs
Server/Model/Component/RealmGateAddressComponent.cs
+1
-1
Server/Model/Server.Model.csproj
Server/Model/Server.Model.csproj
+29
-2
Unity/Assets/Editor/EditorInit.cs
Unity/Assets/Editor/EditorInit.cs
+1
-2
Unity/Assets/Editor/ObjectManagerToolsEditor/ObjectManagerToolsWindow.cs
...itor/ObjectManagerToolsEditor/ObjectManagerToolsWindow.cs
+1
-0
Unity/Assets/Scripts/Component/Config/ClientConfig.cs
Unity/Assets/Scripts/Component/Config/ClientConfig.cs
+2
-3
Unity/Assets/Scripts/Component/Config/InnerConfig.cs
Unity/Assets/Scripts/Component/Config/InnerConfig.cs
+2
-3
Unity/Assets/Scripts/Component/Config/OuterConfig.cs
Unity/Assets/Scripts/Component/Config/OuterConfig.cs
+2
-3
Unity/Assets/Scripts/Component/ConfigComponent.cs
Unity/Assets/Scripts/Component/ConfigComponent.cs
+1
-1
Unity/Assets/Scripts/Component/EventComponent.cs
Unity/Assets/Scripts/Component/EventComponent.cs
+1
-1
Unity/Assets/Scripts/Component/MessageDispatherComponent.cs
Unity/Assets/Scripts/Component/MessageDispatherComponent.cs
+1
-1
Unity/Assets/Scripts/Config/AConfigComponent.cs
Unity/Assets/Scripts/Config/AConfigComponent.cs
+15
-0
Unity/Assets/Scripts/Config/AConfigComponent.cs.meta
Unity/Assets/Scripts/Config/AConfigComponent.cs.meta
+12
-0
Unity/Assets/Scripts/Entity/UI.cs
Unity/Assets/Scripts/Entity/UI.cs
+1
-3
Unity/Assets/Scripts/Init.cs
Unity/Assets/Scripts/Init.cs
+0
-2
Unity/Assets/Scripts/Object.meta
Unity/Assets/Scripts/Object.meta
+2
-2
Unity/Assets/Scripts/Object/Component.cs
Unity/Assets/Scripts/Object/Component.cs
+2
-1
Unity/Assets/Scripts/Object/Component.cs.meta
Unity/Assets/Scripts/Object/Component.cs.meta
+0
-0
Unity/Assets/Scripts/Object/Entity.cs
Unity/Assets/Scripts/Object/Entity.cs
+2
-1
Unity/Assets/Scripts/Object/Entity.cs.meta
Unity/Assets/Scripts/Object/Entity.cs.meta
+0
-0
Unity/Assets/Scripts/Object/IAwake.cs
Unity/Assets/Scripts/Object/IAwake.cs
+1
-1
Unity/Assets/Scripts/Object/IAwake.cs.meta
Unity/Assets/Scripts/Object/IAwake.cs.meta
+0
-0
Unity/Assets/Scripts/Object/ILoader.cs
Unity/Assets/Scripts/Object/ILoader.cs
+1
-1
Unity/Assets/Scripts/Object/ILoader.cs.meta
Unity/Assets/Scripts/Object/ILoader.cs.meta
+0
-0
Unity/Assets/Scripts/Object/IStart.cs
Unity/Assets/Scripts/Object/IStart.cs
+1
-1
Unity/Assets/Scripts/Object/IStart.cs.meta
Unity/Assets/Scripts/Object/IStart.cs.meta
+0
-0
Unity/Assets/Scripts/Object/IUpdate.cs
Unity/Assets/Scripts/Object/IUpdate.cs
+1
-1
Unity/Assets/Scripts/Object/IUpdate.cs.meta
Unity/Assets/Scripts/Object/IUpdate.cs.meta
+0
-0
Unity/Assets/Scripts/Object/Object.cs
Unity/Assets/Scripts/Object/Object.cs
+2
-1
Unity/Assets/Scripts/Object/Object.cs.meta
Unity/Assets/Scripts/Object/Object.cs.meta
+0
-0
Unity/Assets/Scripts/Object/ObjectEventAttribute.cs
Unity/Assets/Scripts/Object/ObjectEventAttribute.cs
+1
-1
Unity/Assets/Scripts/Object/ObjectEventAttribute.cs.meta
Unity/Assets/Scripts/Object/ObjectEventAttribute.cs.meta
+0
-0
Unity/Assets/Scripts/Object/ObjectManager.cs
Unity/Assets/Scripts/Object/ObjectManager.cs
+2
-1
Unity/Assets/Scripts/Object/ObjectManager.cs.meta
Unity/Assets/Scripts/Object/ObjectManager.cs.meta
+0
-0
Unity/Assets/Scripts/Other/BsonClassMapRegister.cs
Unity/Assets/Scripts/Other/BsonClassMapRegister.cs
+0
-22
Unity/Assets/Scripts/Other/BsonClassMapRegister.cs.meta
Unity/Assets/Scripts/Other/BsonClassMapRegister.cs.meta
+0
-12
Unity/Unity.CSharp.Plugins.csproj
Unity/Unity.CSharp.Plugins.csproj
+0
-9
Unity/Unity.CSharp.csproj
Unity/Unity.CSharp.csproj
+10
-1
未找到文件。
Config/StartConfig/LocalAllServer.txt
浏览文件 @
15b049d1
{ "_t" : "StartConfig", "_id" : NumberLong("968
32337674244"), "Type" : "Config", "components" : [{ "_t" : "InnerConfig", "_id" : NumberLong("96832337674245"), "Host" : "127.0.0.1", "Port" : 20000 }, { "_t" : "OuterConfig", "_id" : NumberLong("96832337674246
"), "Host" : "127.0.0.1", "Port" : 10000 }], "AppId" : 1, "AppType" : "AllServer", "ServerIP" : "*" }
{ "_t" : "StartConfig", "_id" : NumberLong("968
71765901315"), "Type" : "Config", "components" : [{ "_t" : "InnerConfig", "_id" : NumberLong("96871765901316"), "Host" : "127.0.0.1", "Port" : 20000 }, { "_t" : "OuterConfig", "_id" : NumberLong("96871765901317
"), "Host" : "127.0.0.1", "Port" : 10000 }], "AppId" : 1, "AppType" : "AllServer", "ServerIP" : "*" }
Server/App/Program.cs
浏览文件 @
15b049d1
...
...
@@ -2,7 +2,7 @@
using
Base
;
using
Model
;
using
NLog
;
using
Object
=
Base
.
Object
;
using
Object
=
Model
.
Object
;
namespace
App
{
...
...
@@ -12,8 +12,6 @@ namespace App
{
try
{
BsonClassMapRegister
.
Register
();
Object
.
ObjectManager
.
Register
(
"Model"
,
typeof
(
Game
).
Assembly
);
Object
.
ObjectManager
.
Register
(
"Controller"
,
DllHelper
.
GetController
());
...
...
Server/Base/Server.Base.csproj
浏览文件 @
15b049d1
...
...
@@ -149,33 +149,6 @@
<Compile
Include=
"..\..\Unity\Assets\Plugins\Base\Network\UNet\USocketManager.cs"
>
<Link>
Network\UNet\USocketManager.cs
</Link>
</Compile>
<Compile
Include=
"..\..\Unity\Assets\Plugins\Base\Object\Component.cs"
>
<Link>
Object\Component.cs
</Link>
</Compile>
<Compile
Include=
"..\..\Unity\Assets\Plugins\Base\Object\Entity.cs"
>
<Link>
Object\Entity.cs
</Link>
</Compile>
<Compile
Include=
"..\..\Unity\Assets\Plugins\Base\Object\IAwake.cs"
>
<Link>
Object\IAwake.cs
</Link>
</Compile>
<Compile
Include=
"..\..\Unity\Assets\Plugins\Base\Object\ILoader.cs"
>
<Link>
Object\ILoader.cs
</Link>
</Compile>
<Compile
Include=
"..\..\Unity\Assets\Plugins\Base\Object\IStart.cs"
>
<Link>
Object\IStart.cs
</Link>
</Compile>
<Compile
Include=
"..\..\Unity\Assets\Plugins\Base\Object\IUpdate.cs"
>
<Link>
Object\IUpdate.cs
</Link>
</Compile>
<Compile
Include=
"..\..\Unity\Assets\Plugins\Base\Object\Object.cs"
>
<Link>
Object\Object.cs
</Link>
</Compile>
<Compile
Include=
"..\..\Unity\Assets\Plugins\Base\Object\ObjectEventAttribute.cs"
>
<Link>
Object\ObjectEventAttribute.cs
</Link>
</Compile>
<Compile
Include=
"..\..\Unity\Assets\Plugins\Base\Object\ObjectManager.cs"
>
<Link>
Object\ObjectManager.cs
</Link>
</Compile>
<Compile
Include=
"..\..\Unity\Assets\Plugins\Base\QueueDictionary.cs"
>
<Link>
QueueDictionary.cs
</Link>
</Compile>
...
...
Server/Controller/Message/C2R_LoginHandler.cs
浏览文件 @
15b049d1
...
...
@@ -18,7 +18,7 @@ namespace Controller
}
// 随机分配一个Gate
Entity
config
=
Game
.
Scene
.
GetComponent
<
RealmGateAddressComponent
>().
GetAddress
();
StartConfig
config
=
Game
.
Scene
.
GetComponent
<
RealmGateAddressComponent
>().
GetAddress
();
//Log.Debug($"gate address: {MongoHelper.ToJson(config)}");
string
innerAddress
=
$"
{
config
.
GetComponent
<
InnerConfig
>().
Host
}
:
{
config
.
GetComponent
<
InnerConfig
>().
Port
}
"
;
Session
gateSession
=
Game
.
Scene
.
GetComponent
<
NetInnerComponent
>().
Get
(
innerAddress
);
...
...
Server/Controller/Message/M2A_ReloadHandler.cs
浏览文件 @
15b049d1
using
System
;
using
Base
;
using
Model
;
using
Object
=
Base
.
Object
;
using
Object
=
Model
.
Object
;
namespace
Controller
{
...
...
Server/Model/Component/RealmGateAddressComponent.cs
浏览文件 @
15b049d1
...
...
@@ -29,7 +29,7 @@ namespace Model
}
}
public
Entity
GetAddress
()
public
StartConfig
GetAddress
()
{
int
n
=
RandomHelper
.
RandomNumber
(
0
,
this
.
GateAddress
.
Count
);
return
this
.
GateAddress
[
n
];
...
...
Server/Model/Server.Model.csproj
浏览文件 @
15b049d1
...
...
@@ -86,6 +86,9 @@
<Compile
Include=
"..\..\Unity\Assets\Scripts\Config\AConfig.cs"
>
<Link>
Config\AConfig.cs
</Link>
</Compile>
<Compile
Include=
"..\..\Unity\Assets\Scripts\Config\AConfigComponent.cs"
>
<Link>
Config\AConfigComponent.cs
</Link>
</Compile>
<Compile
Include=
"..\..\Unity\Assets\Scripts\Config\ConfigAttribute.cs"
>
<Link>
Config\ConfigAttribute.cs
</Link>
</Compile>
...
...
@@ -155,8 +158,32 @@
<Compile
Include=
"..\..\Unity\Assets\Scripts\Message\RpcException.cs"
>
<Link>
Message\RpcException.cs
</Link>
</Compile>
<Compile
Include=
"..\..\Unity\Assets\Scripts\Other\BsonClassMapRegister.cs"
>
<Link>
Other\BsonClassMapRegister.cs
</Link>
<Compile
Include=
"..\..\Unity\Assets\Scripts\Object\Component.cs"
>
<Link>
Object\Component.cs
</Link>
</Compile>
<Compile
Include=
"..\..\Unity\Assets\Scripts\Object\Entity.cs"
>
<Link>
Object\Entity.cs
</Link>
</Compile>
<Compile
Include=
"..\..\Unity\Assets\Scripts\Object\IAwake.cs"
>
<Link>
Object\IAwake.cs
</Link>
</Compile>
<Compile
Include=
"..\..\Unity\Assets\Scripts\Object\ILoader.cs"
>
<Link>
Object\ILoader.cs
</Link>
</Compile>
<Compile
Include=
"..\..\Unity\Assets\Scripts\Object\IStart.cs"
>
<Link>
Object\IStart.cs
</Link>
</Compile>
<Compile
Include=
"..\..\Unity\Assets\Scripts\Object\IUpdate.cs"
>
<Link>
Object\IUpdate.cs
</Link>
</Compile>
<Compile
Include=
"..\..\Unity\Assets\Scripts\Object\Object.cs"
>
<Link>
Object\Object.cs
</Link>
</Compile>
<Compile
Include=
"..\..\Unity\Assets\Scripts\Object\ObjectEventAttribute.cs"
>
<Link>
Object\ObjectEventAttribute.cs
</Link>
</Compile>
<Compile
Include=
"..\..\Unity\Assets\Scripts\Object\ObjectManager.cs"
>
<Link>
Object\ObjectManager.cs
</Link>
</Compile>
<Compile
Include=
"..\..\Unity\Assets\Scripts\Other\EntityType.cs"
>
<Link>
Other\EntityType.cs
</Link>
...
...
Unity/Assets/Editor/EditorInit.cs
浏览文件 @
15b049d1
...
...
@@ -2,8 +2,8 @@
using
Base
;
using
UnityEditor
;
using
UnityEngine
;
using
Object
=
Base
.
Object
;
using
Model
;
using
Object
=
Model
.
Object
;
namespace
MyEditor
{
...
...
@@ -12,7 +12,6 @@ namespace MyEditor
{
static
EditorInit
()
{
BsonClassMapRegister
.
Register
();
EditorApplication
.
update
+=
Update
;
}
...
...
Unity/Assets/Editor/ObjectManagerToolsEditor/ObjectManagerToolsWindow.cs
浏览文件 @
15b049d1
using
Base
;
using
Model
;
using
UnityEditor
;
public
class
ObjectManagerToolsWindow
:
EditorWindow
...
...
Unity/Assets/Scripts/Component/Config/ClientConfig.cs
浏览文件 @
15b049d1
using
Base
;
using
MongoDB.Bson.Serialization.Attributes
;
using
MongoDB.Bson.Serialization.Attributes
;
namespace
Model
{
[
BsonIgnoreExtraElements
]
public
class
ClientConfig
:
Component
public
class
ClientConfig
:
AConfig
Component
{
public
string
Host
=
""
;
public
int
Port
;
...
...
Unity/Assets/Scripts/Component/Config/InnerConfig.cs
浏览文件 @
15b049d1
using
Base
;
using
MongoDB.Bson.Serialization.Attributes
;
using
MongoDB.Bson.Serialization.Attributes
;
namespace
Model
{
[
BsonIgnoreExtraElements
]
public
class
InnerConfig
:
Component
public
class
InnerConfig
:
AConfig
Component
{
public
string
Host
{
get
;
set
;
}
public
int
Port
{
get
;
set
;
}
...
...
Unity/Assets/Scripts/Component/Config/OuterConfig.cs
浏览文件 @
15b049d1
using
Base
;
using
MongoDB.Bson.Serialization.Attributes
;
using
MongoDB.Bson.Serialization.Attributes
;
namespace
Model
{
[
BsonIgnoreExtraElements
]
public
class
OuterConfig
:
Component
public
class
OuterConfig
:
AConfig
Component
{
public
string
Host
{
get
;
set
;
}
public
int
Port
{
get
;
set
;
}
...
...
Unity/Assets/Scripts/Component/ConfigComponent.cs
浏览文件 @
15b049d1
...
...
@@ -2,7 +2,7 @@
using
System.Collections.Generic
;
using
System.Reflection
;
using
Base
;
using
Object
=
Base
.
Object
;
using
Object
=
Model
.
Object
;
namespace
Model
{
...
...
Unity/Assets/Scripts/Component/EventComponent.cs
浏览文件 @
15b049d1
...
...
@@ -2,7 +2,7 @@
using
System.Collections.Generic
;
using
System.Reflection
;
using
Base
;
using
Object
=
Base
.
Object
;
using
Object
=
Model
.
Object
;
namespace
Model
{
...
...
Unity/Assets/Scripts/Component/MessageDispatherComponent.cs
浏览文件 @
15b049d1
...
...
@@ -2,7 +2,7 @@
using
System.Collections.Generic
;
using
System.Reflection
;
using
Base
;
using
Object
=
Base
.
Object
;
using
Object
=
Model
.
Object
;
namespace
Model
{
...
...
Unity/Assets/Scripts/Config/AConfigComponent.cs
0 → 100644
浏览文件 @
15b049d1
using
Base
;
using
MongoDB.Bson.Serialization.Attributes
;
namespace
Model
{
/// <summary>
/// 每个Config的基类
/// </summary>
[
BsonKnownTypes
(
typeof
(
ClientConfig
))]
[
BsonKnownTypes
(
typeof
(
InnerConfig
))]
[
BsonKnownTypes
(
typeof
(
OuterConfig
))]
public
abstract
class
AConfigComponent
:
Component
{
}
}
\ No newline at end of file
Unity/Assets/Scripts/Config/AConfigComponent.cs.meta
0 → 100644
浏览文件 @
15b049d1
fileFormatVersion: 2
guid: 3a286d83056068f4ba8dfcf7a37b926d
timeCreated: 1478145676
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Unity/Assets/Scripts/Entity/UI.cs
浏览文件 @
15b049d1
using
Base
;
using
UnityEngine
;
using
Component
=
Base
.
Component
;
using
UnityEngine
;
namespace
Model
{
...
...
Unity/Assets/Scripts/Init.cs
浏览文件 @
15b049d1
using
System
;
using
Base
;
using
UnityEngine
;
using
Object
=
Base
.
Object
;
namespace
Model
{
...
...
@@ -9,7 +8,6 @@ namespace Model
{
private
void
Start
()
{
BsonClassMapRegister
.
Register
();
Object
.
ObjectManager
.
Register
(
"Model"
,
typeof
(
Game
).
Assembly
);
Object
.
ObjectManager
.
Register
(
"Controller"
,
DllHelper
.
GetController
());
...
...
Unity/Assets/
Plugins/Base
/Object.meta
→
Unity/Assets/
Scripts
/Object.meta
浏览文件 @
15b049d1
fileFormatVersion: 2
guid:
bfb63bc23132cfe47aaac731331ca16e
guid:
600c9bb417aba1641897df52e4ea0eeb
folderAsset: yes
timeCreated: 147
4942922
timeCreated: 147
8146107
licenseType: Pro
DefaultImporter:
userData:
...
...
Unity/Assets/
Plugins/Base
/Object/Component.cs
→
Unity/Assets/
Scripts
/Object/Component.cs
浏览文件 @
15b049d1
using
MongoDB.Bson.Serialization.Attributes
;
namespace
Base
namespace
Model
{
/// <summary>
/// Component的Id与Owner Entity Id一样
/// </summary>
[
BsonKnownTypes
(
typeof
(
AConfigComponent
))]
public
abstract
class
Component
:
Object
{
[
BsonIgnore
]
...
...
Unity/Assets/
Plugins/Base
/Object/Component.cs.meta
→
Unity/Assets/
Scripts
/Object/Component.cs.meta
浏览文件 @
15b049d1
文件已移动
Unity/Assets/
Plugins/Base
/Object/Entity.cs
→
Unity/Assets/
Scripts
/Object/Entity.cs
浏览文件 @
15b049d1
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
Base
;
using
MongoDB.Bson.Serialization.Attributes
;
namespace
Base
namespace
Model
{
public
class
Entity
:
Object
{
...
...
Unity/Assets/
Plugins/Base
/Object/Entity.cs.meta
→
Unity/Assets/
Scripts
/Object/Entity.cs.meta
浏览文件 @
15b049d1
文件已移动
Unity/Assets/
Plugins/Base
/Object/IAwake.cs
→
Unity/Assets/
Scripts
/Object/IAwake.cs
浏览文件 @
15b049d1
namespace
Base
namespace
Model
{
/// <summary>
/// World的Componet实现该接口后,会在World.Start时调用该Start方法
...
...
Unity/Assets/
Plugins/Base
/Object/IAwake.cs.meta
→
Unity/Assets/
Scripts
/Object/IAwake.cs.meta
浏览文件 @
15b049d1
文件已移动
Unity/Assets/
Plugins/Base
/Object/ILoader.cs
→
Unity/Assets/
Scripts
/Object/ILoader.cs
浏览文件 @
15b049d1
namespace
Base
namespace
Model
{
/// <summary>
/// World的Componet实现该接口,World.Load会调用Load方法
...
...
Unity/Assets/
Plugins/Base
/Object/ILoader.cs.meta
→
Unity/Assets/
Scripts
/Object/ILoader.cs.meta
浏览文件 @
15b049d1
文件已移动
Unity/Assets/
Plugins/Base
/Object/IStart.cs
→
Unity/Assets/
Scripts
/Object/IStart.cs
浏览文件 @
15b049d1
namespace
Base
namespace
Model
{
/// <summary>
/// World的Componet实现该接口后,会在World.Start时调用该Start方法
...
...
Unity/Assets/
Plugins/Base
/Object/IStart.cs.meta
→
Unity/Assets/
Scripts
/Object/IStart.cs.meta
浏览文件 @
15b049d1
文件已移动
Unity/Assets/
Plugins/Base
/Object/IUpdate.cs
→
Unity/Assets/
Scripts
/Object/IUpdate.cs
浏览文件 @
15b049d1
namespace
Base
namespace
Model
{
/// <summary>
/// 实现了该接口的World Componet会每帧刷新
...
...
Unity/Assets/
Plugins/Base
/Object/IUpdate.cs.meta
→
Unity/Assets/
Scripts
/Object/IUpdate.cs.meta
浏览文件 @
15b049d1
文件已移动
Unity/Assets/
Plugins/Base
/Object/Object.cs
→
Unity/Assets/
Scripts
/Object/Object.cs
浏览文件 @
15b049d1
using
System
;
using
System.ComponentModel
;
using
Base
;
using
MongoDB.Bson.Serialization.Attributes
;
namespace
Base
namespace
Model
{
public
abstract
class
Object
:
IDisposable
,
ISupportInitialize
{
...
...
Unity/Assets/
Plugins/Base
/Object/Object.cs.meta
→
Unity/Assets/
Scripts
/Object/Object.cs.meta
浏览文件 @
15b049d1
文件已移动
Unity/Assets/
Plugins/Base
/Object/ObjectEventAttribute.cs
→
Unity/Assets/
Scripts
/Object/ObjectEventAttribute.cs
浏览文件 @
15b049d1
using
System
;
namespace
Base
namespace
Model
{
[
AttributeUsage
(
AttributeTargets
.
Class
,
AllowMultiple
=
true
)]
public
class
ObjectEventAttribute
:
Attribute
...
...
Unity/Assets/
Plugins/Base
/Object/ObjectEventAttribute.cs.meta
→
Unity/Assets/
Scripts
/Object/ObjectEventAttribute.cs.meta
浏览文件 @
15b049d1
文件已移动
Unity/Assets/
Plugins/Base
/Object/ObjectManager.cs
→
Unity/Assets/
Scripts
/Object/ObjectManager.cs
浏览文件 @
15b049d1
...
...
@@ -3,8 +3,9 @@ using System.Collections.Generic;
using
System.Linq
;
using
System.Reflection
;
using
System.Text
;
using
Base
;
namespace
Base
namespace
Model
{
public
interface
IObjectEvent
{
...
...
Unity/Assets/
Plugins/Base
/Object/ObjectManager.cs.meta
→
Unity/Assets/
Scripts
/Object/ObjectManager.cs.meta
浏览文件 @
15b049d1
文件已移动
Unity/Assets/Scripts/Other/BsonClassMapRegister.cs
已删除
100644 → 0
浏览文件 @
d4a1ee58
using
MongoDB.Bson.Serialization
;
namespace
Model
{
public
static
class
BsonClassMapRegister
{
private
static
bool
isRegister
;
public
static
void
Register
()
{
if
(
isRegister
)
{
return
;
}
isRegister
=
true
;
BsonClassMap
.
RegisterClassMap
<
InnerConfig
>();
BsonClassMap
.
RegisterClassMap
<
OuterConfig
>();
BsonClassMap
.
RegisterClassMap
<
ClientConfig
>();
}
}
}
\ No newline at end of file
Unity/Assets/Scripts/Other/BsonClassMapRegister.cs.meta
已删除
100644 → 0
浏览文件 @
d4a1ee58
fileFormatVersion: 2
guid: 134d0d7bf9f397e48849fe72d43bee76
timeCreated: 1477036759
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Unity/Unity.CSharp.Plugins.csproj
浏览文件 @
15b049d1
...
...
@@ -108,15 +108,6 @@
<Compile
Include=
"Assets\Plugins\Base\Network\UNet\UService.cs"
/>
<Compile
Include=
"Assets\Plugins\Base\Network\UNet\USocket.cs"
/>
<Compile
Include=
"Assets\Plugins\Base\Network\UNet\USocketManager.cs"
/>
<Compile
Include=
"Assets\Plugins\Base\Object\Component.cs"
/>
<Compile
Include=
"Assets\Plugins\Base\Object\Entity.cs"
/>
<Compile
Include=
"Assets\Plugins\Base\Object\IAwake.cs"
/>
<Compile
Include=
"Assets\Plugins\Base\Object\ILoader.cs"
/>
<Compile
Include=
"Assets\Plugins\Base\Object\IStart.cs"
/>
<Compile
Include=
"Assets\Plugins\Base\Object\IUpdate.cs"
/>
<Compile
Include=
"Assets\Plugins\Base\Object\Object.cs"
/>
<Compile
Include=
"Assets\Plugins\Base\Object\ObjectEventAttribute.cs"
/>
<Compile
Include=
"Assets\Plugins\Base\Object\ObjectManager.cs"
/>
<Compile
Include=
"Assets\Plugins\Base\QueueDictionary.cs"
/>
<Compile
Include=
"Assets\Plugins\Base\TryLocker.cs"
/>
<Compile
Include=
"Assets\Plugins\MongoDB\MongoDB.Bson\BsonConstants.cs"
/>
...
...
Unity/Unity.CSharp.csproj
浏览文件 @
15b049d1
...
...
@@ -97,6 +97,7 @@
<Compile
Include=
"Assets\Scripts\Component\TimeComponent.cs"
/>
<Compile
Include=
"Assets\Scripts\Component\TimerComponent.cs"
/>
<Compile
Include=
"Assets\Scripts\Config\ACategory.cs"
/>
<Compile
Include=
"Assets\Scripts\Config\AConfigComponent.cs"
/>
<Compile
Include=
"Assets\Scripts\Config\AConfig.cs"
/>
<Compile
Include=
"Assets\Scripts\Config\ConfigAttribute.cs"
/>
<Compile
Include=
"Assets\Scripts\Config\ConfigHelper.cs"
/>
...
...
@@ -125,7 +126,15 @@
<Compile
Include=
"Assets\Scripts\Message\RpcException.cs"
/>
<Compile
Include=
"Assets\Scripts\Entity\Config\BuffConfig.cs"
/>
<Compile
Include=
"Assets\Scripts\Entity\Message\Message.cs"
/>
<Compile
Include=
"Assets\Scripts\Other\BsonClassMapRegister.cs"
/>
<Compile
Include=
"Assets\Scripts\Object\Component.cs"
/>
<Compile
Include=
"Assets\Scripts\Object\Entity.cs"
/>
<Compile
Include=
"Assets\Scripts\Object\IAwake.cs"
/>
<Compile
Include=
"Assets\Scripts\Object\ILoader.cs"
/>
<Compile
Include=
"Assets\Scripts\Object\IStart.cs"
/>
<Compile
Include=
"Assets\Scripts\Object\IUpdate.cs"
/>
<Compile
Include=
"Assets\Scripts\Object\Object.cs"
/>
<Compile
Include=
"Assets\Scripts\Object\ObjectEventAttribute.cs"
/>
<Compile
Include=
"Assets\Scripts\Object\ObjectManager.cs"
/>
<Compile
Include=
"Assets\Scripts\Other\EntityType.cs"
/>
<Compile
Include=
"Assets\Scripts\Other\GameException.cs"
/>
<Compile
Include=
"Assets\Scripts\Other\Options.cs"
/>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录