소스 검색

Entity的components使用别名"C",以免占用空间过多

tanghai 7 년 전
부모
커밋
9fbed66235
3개의 변경된 파일13개의 추가작업 그리고 2개의 파일을 삭제
  1. 11 0
      Unity/Assets/Editor/Helper/ShellHelper.cs.meta
  2. 1 1
      Unity/Assets/Scripts/Base/Object/Entity.cs
  3. 1 1
      Unity/Hotfix/Base/Object/Entity.cs

+ 11 - 0
Unity/Assets/Editor/Helper/ShellHelper.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 7c53f2d83b6153a47ab75bf18c7a96f1
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 1 - 1
Unity/Assets/Scripts/Base/Object/Entity.cs

@@ -8,7 +8,7 @@ namespace ETModel
 	[BsonIgnoreExtraElements]
 	public class Entity : ComponentWithId
 	{
-		[BsonElement]
+		[BsonElement("C")]
 		[BsonIgnoreIfNull]
 		private HashSet<Component> components;
 

+ 1 - 1
Unity/Hotfix/Base/Object/Entity.cs

@@ -8,7 +8,7 @@ namespace ETHotfix
 	[BsonIgnoreExtraElements]
 	public class Entity : ComponentWithId
 	{
-		[BsonElement]
+		[BsonElement("C")]
 		[BsonIgnoreIfNull]
 		private HashSet<Component> components;