Skip to content

Commit b44ce88

Browse files
committed
回滚JsonHelper的更改,因为Unity端暂时不支持System.Text.Json。
1 parent 7d5164f commit b44ce88

File tree

11 files changed

+29
-882
lines changed

11 files changed

+29
-882
lines changed

‎Fantasy.Packages/Fantasy.Net/Runtime/Core/Entitas/Entity.cs‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public abstract partial class Entity : IEntity
4646
/// </summary>
4747
[BsonIgnore]
4848
[JsonIgnore]
49-
[System.Text.Json.Serialization.JsonIgnore]
5049
[IgnoreDataMember]
5150
[ProtoIgnore]
5251
public long RuntimeId { get; protected set; }
@@ -55,7 +54,6 @@ public abstract partial class Entity : IEntity
5554
/// </summary>
5655
[BsonIgnore]
5756
[JsonIgnore]
58-
[System.Text.Json.Serialization.JsonIgnore]
5957
[IgnoreDataMember]
6058
[ProtoIgnore]
6159
public bool IsDisposed => RuntimeId == 0;
@@ -64,7 +62,6 @@ public abstract partial class Entity : IEntity
6462
/// </summary>
6563
[BsonIgnore]
6664
[JsonIgnore]
67-
[System.Text.Json.Serialization.JsonIgnore]
6865
[IgnoreDataMember]
6966
[ProtoIgnore]
7067
public Scene Scene { get; protected set; }
@@ -73,7 +70,6 @@ public abstract partial class Entity : IEntity
7370
/// </summary>
7471
[BsonIgnore]
7572
[JsonIgnore]
76-
[System.Text.Json.Serialization.JsonIgnore]
7773
[IgnoreDataMember]
7874
[ProtoIgnore]
7975
public Entity Parent { get; protected set; }
@@ -82,7 +78,6 @@ public abstract partial class Entity : IEntity
8278
/// </summary>
8379
[BsonIgnore]
8480
[JsonIgnore]
85-
[System.Text.Json.Serialization.JsonIgnore]
8681
[IgnoreDataMember]
8782
[ProtoIgnore]
8883
public Type Type { get; protected set; }
@@ -91,7 +86,6 @@ public abstract partial class Entity : IEntity
9186
/// </summary>
9287
[BsonIgnore]
9388
[JsonIgnore]
94-
[System.Text.Json.Serialization.JsonIgnore]
9589
[IgnoreDataMember]
9690
[ProtoIgnore]
9791
public long TypeHashCode { get; private set; }
@@ -849,7 +843,6 @@ public void Deserialize(Scene scene, bool resetId = false)
849843
/// </summary>
850844
[BsonIgnore]
851845
[JsonIgnore]
852-
[System.Text.Json.Serialization.JsonIgnore]
853846
[IgnoreDataMember]
854847
[ProtoIgnore]
855848
public IEnumerable<Entity> ForEachMultiEntity
@@ -872,7 +865,6 @@ public IEnumerable<Entity> ForEachMultiEntity
872865
/// </summary>
873866
[BsonIgnore]
874867
[JsonIgnore]
875-
[System.Text.Json.Serialization.JsonIgnore]
876868
[IgnoreDataMember]
877869
[ProtoIgnore]
878870
public IEnumerable<Entity> ForEachEntity

0 commit comments

Comments
 (0)