From eb077a4e6d2ae7dae19b8666b2c018d19d68aba3 Mon Sep 17 00:00:00 2001 From: ikpil Date: Sat, 5 Aug 2023 08:31:43 +0900 Subject: [PATCH] rename for unity3d --- .../{CompareItemX.cs => BVItemXComparer.cs} | 2 +- .../{CompareItemY.cs => BVItemYComparer.cs} | 2 +- .../{CompareItemZ.cs => BVItemZComparer.cs} | 2 +- src/DotRecast.Detour/DtNavMeshBuilder.cs | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) rename src/DotRecast.Detour/{CompareItemX.cs => BVItemXComparer.cs} (78%) rename src/DotRecast.Detour/{CompareItemY.cs => BVItemYComparer.cs} (78%) rename src/DotRecast.Detour/{CompareItemZ.cs => BVItemZComparer.cs} (78%) diff --git a/src/DotRecast.Detour/CompareItemX.cs b/src/DotRecast.Detour/BVItemXComparer.cs similarity index 78% rename from src/DotRecast.Detour/CompareItemX.cs rename to src/DotRecast.Detour/BVItemXComparer.cs index 4118686..ab0eb7f 100644 --- a/src/DotRecast.Detour/CompareItemX.cs +++ b/src/DotRecast.Detour/BVItemXComparer.cs @@ -2,7 +2,7 @@ namespace DotRecast.Detour { - public class CompareItemX : IComparer + public class BVItemXComparer : IComparer { public int Compare(BVItem a, BVItem b) { diff --git a/src/DotRecast.Detour/CompareItemY.cs b/src/DotRecast.Detour/BVItemYComparer.cs similarity index 78% rename from src/DotRecast.Detour/CompareItemY.cs rename to src/DotRecast.Detour/BVItemYComparer.cs index 97986f4..c481dac 100644 --- a/src/DotRecast.Detour/CompareItemY.cs +++ b/src/DotRecast.Detour/BVItemYComparer.cs @@ -2,7 +2,7 @@ namespace DotRecast.Detour { - public class CompareItemY : IComparer + public class BVItemYComparer : IComparer { public int Compare(BVItem a, BVItem b) { diff --git a/src/DotRecast.Detour/CompareItemZ.cs b/src/DotRecast.Detour/BVItemZComparer.cs similarity index 78% rename from src/DotRecast.Detour/CompareItemZ.cs rename to src/DotRecast.Detour/BVItemZComparer.cs index 8225705..8c9bf84 100644 --- a/src/DotRecast.Detour/CompareItemZ.cs +++ b/src/DotRecast.Detour/BVItemZComparer.cs @@ -2,7 +2,7 @@ namespace DotRecast.Detour { - public class CompareItemZ : IComparer + public class BVItemZComparer : IComparer { public int Compare(BVItem a, BVItem b) { diff --git a/src/DotRecast.Detour/DtNavMeshBuilder.cs b/src/DotRecast.Detour/DtNavMeshBuilder.cs index cd7ee62..9ac7609 100644 --- a/src/DotRecast.Detour/DtNavMeshBuilder.cs +++ b/src/DotRecast.Detour/DtNavMeshBuilder.cs @@ -116,17 +116,17 @@ namespace DotRecast.Detour if (axis == 0) { // Sort along x-axis - Array.Sort(items, imin, inum, new CompareItemX()); + Array.Sort(items, imin, inum, new BVItemXComparer()); } else if (axis == 1) { // Sort along y-axis - Array.Sort(items, imin, inum, new CompareItemY()); + Array.Sort(items, imin, inum, new BVItemYComparer()); } else { // Sort along z-axis - Array.Sort(items, imin, inum, new CompareItemZ()); + Array.Sort(items, imin, inum, new BVItemZComparer()); } int isplit = imin + inum / 2;