提交 6faf9080 编写于 作者: T tanghai

所有Config类移动到Config目录下

上级 450550d4
......@@ -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>
......
using System;
using Common.Factory;
using Common.Helper;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Model;
......
......@@ -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>();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册