当前位置: 首页>>代码示例>>C#>>正文


C# GraphSerializationContext.SerializeVector3方法代码示例

本文整理汇总了C#中Pathfinding.Serialization.GraphSerializationContext.SerializeVector3方法的典型用法代码示例。如果您正苦于以下问题:C# GraphSerializationContext.SerializeVector3方法的具体用法?C# GraphSerializationContext.SerializeVector3怎么用?C# GraphSerializationContext.SerializeVector3使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Pathfinding.Serialization.GraphSerializationContext的用法示例。


在下文中一共展示了GraphSerializationContext.SerializeVector3方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SerializeSettings

		public override void SerializeSettings ( GraphSerializationContext ctx ) {

			base.SerializeSettings (ctx);
			ctx.writer.Write (characterRadius);
			ctx.writer.Write (contourMaxError);
			ctx.writer.Write (cellSize);
			ctx.writer.Write (cellHeight);
			ctx.writer.Write (walkableHeight);
			ctx.writer.Write (maxSlope);
			ctx.writer.Write (maxEdgeLength);
			ctx.writer.Write (editorTileSize);
			ctx.writer.Write (tileSizeX);
			ctx.writer.Write (nearestSearchOnlyXZ);
			ctx.writer.Write (useTiles);
			ctx.writer.Write ((int)relevantGraphSurfaceMode);
			ctx.writer.Write (rasterizeColliders);
			ctx.writer.Write (rasterizeMeshes);
			ctx.writer.Write (rasterizeTerrain);
			ctx.writer.Write (rasterizeTrees);
			ctx.writer.Write (colliderRasterizeDetail);
			ctx.SerializeVector3 (forcedBoundsCenter);
			ctx.SerializeVector3 (forcedBoundsSize);
			ctx.writer.Write (mask);
			ctx.writer.Write (tagMask.Count);
			for (int i = 0; i < tagMask.Count; i++) {
				ctx.writer.Write (tagMask[i]);
			}
			ctx.writer.Write (showMeshOutline);
			ctx.writer.Write (showNodeConnections);
			ctx.writer.Write (terrainSampleSize);

			ctx.writer.Write (walkableClimb);
			ctx.writer.Write (minRegionSize);
			ctx.writer.Write (tileSizeZ);
		}
开发者ID:mBeierl,项目名称:GGJ16,代码行数:35,代码来源:RecastGenerator.cs

示例2: SerializeSettings

		public override void SerializeSettings (GraphSerializationContext ctx) {
			base.SerializeSettings(ctx);
			ctx.writer.Write(aspectRatio);
			ctx.SerializeVector3(rotation);
			ctx.SerializeVector3(center);
			ctx.SerializeVector3((Vector3)unclampedSize);
			ctx.writer.Write(nodeSize);
			// collision
			collision.SerializeSettings(ctx);

			ctx.writer.Write(maxClimb);
			ctx.writer.Write(maxClimbAxis);
			ctx.writer.Write(maxSlope);
			ctx.writer.Write(erodeIterations);
			ctx.writer.Write(erosionUseTags);
			ctx.writer.Write(erosionFirstTag);
			ctx.writer.Write(autoLinkGrids);
			ctx.writer.Write((int)neighbours);
			ctx.writer.Write(cutCorners);
			ctx.writer.Write(penaltyPosition);
			ctx.writer.Write(penaltyPositionFactor);
			ctx.writer.Write(penaltyAngle);
			ctx.writer.Write(penaltyAngleFactor);
			ctx.writer.Write(penaltyAnglePower);
			ctx.writer.Write(isometricAngle);
			ctx.writer.Write(uniformEdgeCosts);
		}
开发者ID:Xylord,项目名称:Project-Feels,代码行数:27,代码来源:GridGenerator.cs

示例3: SerializeSettings

		public override void SerializeSettings ( GraphSerializationContext ctx ) {
			base.SerializeSettings (ctx);

			ctx.SerializeUnityObject ( sourceMesh );

			ctx.SerializeVector3 (offset);
			ctx.SerializeVector3 (rotation);

			ctx.writer.Write(scale);
			ctx.writer.Write(accurateNearestNode);
		}
开发者ID:Marchys,项目名称:fanalet,代码行数:11,代码来源:NavMeshGenerator.cs


注:本文中的Pathfinding.Serialization.GraphSerializationContext.SerializeVector3方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。