From 8d3a1d2d68e78d44f26d0fe1d3325c198ceaec9f Mon Sep 17 00:00:00 2001 From: ikpil Date: Wed, 11 Oct 2023 23:55:37 +0900 Subject: [PATCH] refactor: typo --- src/DotRecast.Detour.TileCache/DtCompressedTile.cs | 4 +--- src/DotRecast.Detour.TileCache/DtCompressedTileFlags.cs | 8 ++++++++ src/DotRecast.Detour.TileCache/DtTileCacheObstacle.cs | 1 + 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 src/DotRecast.Detour.TileCache/DtCompressedTileFlags.cs diff --git a/src/DotRecast.Detour.TileCache/DtCompressedTile.cs b/src/DotRecast.Detour.TileCache/DtCompressedTile.cs index fed69e0..4b059d3 100644 --- a/src/DotRecast.Detour.TileCache/DtCompressedTile.cs +++ b/src/DotRecast.Detour.TileCache/DtCompressedTile.cs @@ -23,9 +23,7 @@ namespace DotRecast.Detour.TileCache public class DtCompressedTile { public readonly int index; - public int salt; - - /// < Counter describing modifications to the tile. + public int salt; // Counter describing modifications to the tile. public DtTileCacheLayerHeader header; public byte[] data; diff --git a/src/DotRecast.Detour.TileCache/DtCompressedTileFlags.cs b/src/DotRecast.Detour.TileCache/DtCompressedTileFlags.cs new file mode 100644 index 0000000..a51dc6a --- /dev/null +++ b/src/DotRecast.Detour.TileCache/DtCompressedTileFlags.cs @@ -0,0 +1,8 @@ +namespace DotRecast.Detour.TileCache +{ + /// Flags for addTile + public class DtCompressedTileFlags + { + public const int DT_COMPRESSEDTILE_FREE_DATA = 0x01; //< Navmesh owns the tile memory and should free it. In C#, it is not used. + } +} \ No newline at end of file diff --git a/src/DotRecast.Detour.TileCache/DtTileCacheObstacle.cs b/src/DotRecast.Detour.TileCache/DtTileCacheObstacle.cs index b236c8b..3942086 100644 --- a/src/DotRecast.Detour.TileCache/DtTileCacheObstacle.cs +++ b/src/DotRecast.Detour.TileCache/DtTileCacheObstacle.cs @@ -34,6 +34,7 @@ namespace DotRecast.Detour.TileCache public RcVec3f center = new RcVec3f(); public RcVec3f extents = new RcVec3f(); public readonly float[] rotAux = new float[2]; // { Cos(0.5f*angle)*Sin(-0.5f*angle); Cos(0.5f*angle)*Cos(0.5f*angle) - 0.5 } + public List touched = new List(); public readonly List pending = new List(); public int salt;