当前位置: 首页>>代码示例>>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;未经允许,请勿转载。