Просмотр исходного кода

所有Config类移动到Config目录下

tanghai 11 лет назад
Родитель
Сommit
6faf908053

+ 0 - 0
CSharp/Game/Model/BuffConfig.cs → CSharp/Game/Model/Config/BuffConfig.cs


+ 0 - 0
CSharp/Game/Model/GlobalConfig.cs → CSharp/Game/Model/Config/GlobalConfig.cs


+ 0 - 0
CSharp/Game/Model/NodeConfig.cs → CSharp/Game/Model/Config/NodeConfig.cs


+ 0 - 0
CSharp/Game/Model/UnitConfig.cs → CSharp/Game/Model/Config/UnitConfig.cs


+ 4 - 4
CSharp/Game/Model/Model.csproj

@@ -47,15 +47,15 @@
   <ItemGroup>
     <Compile Include="Buff.cs" />
     <Compile Include="BuffComponent.cs" />
-    <Compile Include="UnitConfig.cs" />
-    <Compile Include="BuffConfig.cs" />
+    <Compile Include="Config\UnitConfig.cs" />
+    <Compile Include="Config\BuffConfig.cs" />
     <Compile Include="UnitFactory.cs" />
     <Compile Include="UnitType.cs" />
     <Compile Include="BuffType.cs" />
     <Compile Include="GameObject.cs" />
     <Compile Include="UnitComponent.cs" />
-    <Compile Include="GlobalConfig.cs" />
-    <Compile Include="NodeConfig.cs" />
+    <Compile Include="Config\GlobalConfig.cs" />
+    <Compile Include="Config\NodeConfig.cs" />
     <Compile Include="Unit.cs" />
     <Compile Include="World.cs" />
   </ItemGroup>

+ 0 - 1
CSharp/Game/MongoDBTest/MongoDBTest.cs

@@ -1,5 +1,4 @@
 using System;
-using Common.Factory;
 using Common.Helper;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 using Model;

+ 2 - 1
CSharp/Platform/Common/Base/Entity.cs

@@ -7,7 +7,8 @@ namespace Common.Base
 {
     public abstract class Entity : Object
     {
-        [BsonElement, BsonIgnoreIfNull]
+        [BsonElement] 
+        [BsonIgnoreIfNull]
         private HashSet<Component> components;
 
         private Dictionary<Type, Component> componentDict = new Dictionary<Type, Component>();