From 6c97161746c4bcd7cd1ebc9d7df1f28c56266d55 Mon Sep 17 00:00:00 2001 From: ikpil Date: Sat, 19 Aug 2023 14:55:15 +0900 Subject: [PATCH] typo --- .../AbstractTileCacheTest.cs | 5 ++++- .../TestTileCacheMeshProcess.cs | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/test/DotRecast.Detour.TileCache.Test/AbstractTileCacheTest.cs b/test/DotRecast.Detour.TileCache.Test/AbstractTileCacheTest.cs index 6ba2fec..eaa280b 100644 --- a/test/DotRecast.Detour.TileCache.Test/AbstractTileCacheTest.cs +++ b/test/DotRecast.Detour.TileCache.Test/AbstractTileCacheTest.cs @@ -33,6 +33,7 @@ namespace DotRecast.Detour.TileCache.Test; public class AbstractTileCacheTest { private const int EXPECTED_LAYERS_PER_TILE = 4; + private readonly float m_cellSize = 0.3f; private readonly float m_cellHeight = 0.2f; private readonly float m_agentHeight = 2.0f; @@ -57,13 +58,15 @@ public class AbstractTileCacheTest option.maxSimplificationError = m_edgeMaxError; option.maxTiles = tw * th * EXPECTED_LAYERS_PER_TILE; option.maxObstacles = 128; + DtNavMeshParams navMeshParams = new DtNavMeshParams(); navMeshParams.orig = geom.GetMeshBoundsMin(); navMeshParams.tileWidth = m_tileSize * m_cellSize; navMeshParams.tileHeight = m_tileSize * m_cellSize; navMeshParams.maxTiles = 256; navMeshParams.maxPolys = 16384; - DtNavMesh navMesh = new DtNavMesh(navMeshParams, 6); + + var navMesh = new DtNavMesh(navMeshParams, 6); var comp = DtTileCacheCompressorForTestFactory.Shared.Get(cCompatibility); var storageParams = new DtTileCacheStorageParams(order, cCompatibility); var process = new TestTileCacheMeshProcess(); diff --git a/test/DotRecast.Detour.TileCache.Test/TestTileCacheMeshProcess.cs b/test/DotRecast.Detour.TileCache.Test/TestTileCacheMeshProcess.cs index e27bab9..affafd5 100644 --- a/test/DotRecast.Detour.TileCache.Test/TestTileCacheMeshProcess.cs +++ b/test/DotRecast.Detour.TileCache.Test/TestTileCacheMeshProcess.cs @@ -1,4 +1,6 @@ -namespace DotRecast.Detour.TileCache.Test; +using DotRecast.Recast.Geom; + +namespace DotRecast.Detour.TileCache.Test; public class TestTileCacheMeshProcess : IDtTileCacheMeshProcess { @@ -9,4 +11,5 @@ public class TestTileCacheMeshProcess : IDtTileCacheMeshProcess option.polyFlags[i] = 1; } } -} \ No newline at end of file +} +