提交 8680735f 编写于 作者: T tanghai

继承结构调整要调整BsonKownType标签

上级 f4dd94f7
......@@ -5,7 +5,7 @@ namespace ETModel
[BsonKnownTypes(typeof(AConfigComponent))]
[BsonKnownTypes(typeof(UnitGateComponent))]
[BsonKnownTypes(typeof(NumericComponent))]
[BsonKnownTypes(typeof(Entity))]
[BsonKnownTypes(typeof(ComponentWithId))]
public partial class Component
{
}
......
using MongoDB.Bson.Serialization.Attributes;
namespace ETModel
{
[BsonKnownTypes(typeof(Entity))]
public partial class ComponentWithId
{
}
}
\ No newline at end of file
......@@ -3,7 +3,7 @@
namespace ETModel
{
[BsonKnownTypes(typeof(AConfigComponent))]
[BsonKnownTypes(typeof(Entity))]
[BsonKnownTypes(typeof(ComponentWithId))]
public partial class Component
{
}
......
using MongoDB.Bson.Serialization.Attributes;
namespace ETModel
{
[BsonKnownTypes(typeof(Entity))]
public partial class ComponentWithId
{
}
}
\ No newline at end of file
fileFormatVersion: 2
guid: 580a3c3b48fdd5b438d5e185e407db41
timeCreated: 1521513816
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
......@@ -156,6 +156,7 @@
<Compile Include="Assets\Scripts\Base\Math\VLine.cs" />
<Compile Include="Assets\Scripts\Base\Math\VRect.cs" />
<Compile Include="Assets\Scripts\Base\MultiMap.cs" />
<Compile Include="Assets\Scripts\Base\Object\ComponentWithIdAttribute.cs" />
<Compile Include="Assets\Scripts\Base\Object\ComponentWithId.cs" />
<Compile Include="Assets\Scripts\Base\Object\Component.cs" />
<Compile Include="Assets\Scripts\Base\Object\ComponentAttribute.cs" />
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册