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

GameObject多余,不需要这一层

上级 24f4cd99
using MongoDB.Bson.Serialization.Attributes;
using Common.Base;
using MongoDB.Bson.Serialization.Attributes;
namespace Model
{
public class Buff: GameObject<Buff>
public class Buff: Entity<Buff>
{
[BsonElement]
private int configId { get; set; }
......
using Common.Base;
namespace Model
{
public abstract class GameObject<K>: Entity<K> where K : Entity<K>
{
}
}
\ No newline at end of file
......@@ -63,7 +63,6 @@
<Compile Include="IFactory.cs" />
<Compile Include="Component\UnitComponent.cs" />
<Compile Include="BuffType.cs" />
<Compile Include="GameObject.cs" />
<Compile Include="Config\GlobalConfig.cs" />
<Compile Include="Config\NodeConfig.cs" />
<Compile Include="Unit.cs" />
......
using MongoDB.Bson.Serialization.Attributes;
using Common.Base;
using MongoDB.Bson.Serialization.Attributes;
namespace Model
{
public class Unit : GameObject<Unit>
public class Unit : Entity<Unit>
{
[BsonElement]
public int configId { get; set; }
......
......@@ -4,7 +4,7 @@ using Common.Base;
namespace Model
{
public class World : GameObject<World>
public class World : Entity<World>
{
private static readonly World instance = new World();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册