當前位置: 首頁>>代碼示例>>C#>>正文


C# AstarSerializer.AddValue方法代碼示例

本文整理匯總了C#中Pathfinding.AstarSerializer.AddValue方法的典型用法代碼示例。如果您正苦於以下問題:C# AstarSerializer.AddValue方法的具體用法?C# AstarSerializer.AddValue怎麽用?C# AstarSerializer.AddValue使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Pathfinding.AstarSerializer的用法示例。


在下文中一共展示了AstarSerializer.AddValue方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: SerializeSettings

		public void SerializeSettings (AstarSerializer serializer) {;
		
			serializer.AddUnityReferenceValue ("root",root);
			serializer.AddValue ("maxDistance",maxDistance);
			serializer.AddValue ("limits",limits);
			serializer.AddValue ("mask",mask.value);
			serializer.AddValue ("thickRaycast",thickRaycast);
			serializer.AddValue ("thickRaycastRadius",thickRaycastRadius);
			serializer.AddValue ("searchTag",searchTag);
			serializer.AddValue ("recursive",recursive);
			serializer.AddValue ("raycast",raycast);
		}
開發者ID:JustSAT,項目名稱:Tower-Defence,代碼行數:12,代碼來源:PointGenerator.cs

示例2: SerializeSettings

 public void SerializeSettings(AstarSerializer serializer)
 {
     serializer.AddUnityReferenceValue ("source",source);
     serializer.AddValue ("enabled",enabled);
     for (int i=0;i<factors.Length;i++) {
         serializer.AddValue ("factor"+i,factors[i]);
     }
     for (int i=0;i<channels.Length;i++) {
         serializer.AddValue ("channel"+i,(int)channels[i]);
     }
 }
開發者ID:sonygod,項目名稱:ESPUnity,代碼行數:11,代碼來源:GridGenerator.cs

示例3: SerializeSettings

        public new void SerializeSettings(AstarSerializer serializer)
        {
            (this as GridGraph).SerializeSettings (serializer);

            serializer.AddValue ("mergeSpanRange",mergeSpanRange);
            serializer.AddValue ("characterHeight",characterHeight);
            //serializer.AddValue ("maxClimb",maxClimb);
        }
開發者ID:paillardf,項目名稱:RV01_WALL,代碼行數:8,代碼來源:LayerGridGraphGenerator.cs

示例4: SerializeSettings

		public void SerializeSettings (AstarSerializer serializer) {
			
			System.IO.BinaryWriter stream = serializer.writerStream;
			
			serializer.AddValue ("offset",offset);
			serializer.AddValue ("rotation",rotation);
			serializer.AddValue ("scale",scale);
			
			if (sourceMesh != null) {
				
				Vector3[] verts = sourceMesh.vertices;
				int[] tris = sourceMesh.triangles;
				
				stream.Write (verts.Length);
				stream.Write (tris.Length);
				
				for (int i=0;i<verts.Length;i++) {
					stream.Write (verts[i].x);
					stream.Write (verts[i].y);
					stream.Write (verts[i].z);
				}
				
				for (int i=0;i<tris.Length;i++) {
					stream.Write (tris[i]);
				}
			} else {
				stream.Write (0);
				stream.Write (0);
			}
			
			serializer.AddUnityReferenceValue ("sourceMesh",sourceMesh);
		}
開發者ID:pravusjif,項目名稱:PravusUnityTests,代碼行數:32,代碼來源:NavMeshGenerator.cs

示例5: SerializeSettings

        /** \copydoc Pathfinding::ISerializableObject::SerializeSettings \copybrief Pathfinding::ISerializableObject::SerializeSettings */
        public void SerializeSettings(AstarSerializer serializer)
        {
            serializer.AddValue ("Mask",(int)mask);
            serializer.AddValue ("Diameter",diameter);
            serializer.AddValue ("Height",height);
            serializer.AddValue ("Type",(int)type);
            serializer.AddValue ("RayDirection",(int)rayDirection);

            serializer.AddValue ("heightMask",(int)heightMask);
            serializer.AddValue ("fromHeight",fromHeight);
            serializer.AddValue ("thickRaycastDiameter",thickRaycastDiameter);
            serializer.AddValue ("thickRaycast",thickRaycast);

            serializer.AddValue ("collisionCheck",collisionCheck);
            serializer.AddValue ("heightCheck",heightCheck);

            serializer.AddValue ("unwalkableWhenNoGround",unwalkableWhenNoGround);

            serializer.AddValue ("collisionOffset",collisionOffset);
        }
開發者ID:rmkeezer,項目名稱:fpsgame,代碼行數:21,代碼來源:Base.cs

示例6: SerializeSettings

		public void SerializeSettings (AstarSerializer serializer) {
			//serializer.AddValue ("erosionRadius",erosionRadius);
			serializer.AddValue ("contourMaxError",contourMaxError);
			
			serializer.AddValue ("cellSize",cellSize);
			serializer.AddValue ("cellHeight",cellHeight);
			serializer.AddValue ("walkableHeight",walkableHeight);
			serializer.AddValue ("walkableClimb",walkableClimb);
			serializer.AddValue ("maxSlope",maxSlope);
			serializer.AddValue ("maxEdgeLength",maxEdgeLength);
			
			serializer.AddValue ("forcedBoundsCenter",forcedBoundsCenter);
			serializer.AddValue ("forcedBoundsSize",forcedBoundsSize);
			
			serializer.AddValue ("mask",mask.value);
			
			serializer.AddValue ("showMeshOutline",showMeshOutline);
			
			serializer.AddValue ("includeOutOfBounds",includeOutOfBounds);
			
			serializer.AddValue ("regionMinSize",regionMinSize);
			serializer.AddValue ("characterRadius",characterRadius);
			serializer.AddValue ("useCRecast",useCRecast);
			
		}
開發者ID:sonygod,項目名稱:ESPUnity,代碼行數:25,代碼來源:RecastGenerator.cs

示例7: SerializeSettings

 // you'll get warnings about hiding inherited methods, because base class does not
 // declare these as virtual
 public new void SerializeSettings(AstarSerializer serializer)
 {
     base.SerializeSettings(serializer);
     //Save the current values
     serializer.AddValue("levelLayerMask", levelLayerMask.value);
 }
開發者ID:Trifectgaming,項目名稱:2D-Runner,代碼行數:8,代碼來源:MyGridGraph.cs


注:本文中的Pathfinding.AstarSerializer.AddValue方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。