From 78b29920cbe331c23f2ccf327d5373c436710cb3 Mon Sep 17 00:00:00 2001 From: ikpil Date: Wed, 17 Jan 2024 13:54:46 +0900 Subject: [PATCH] add RcDirtyEntry, RcLevelStackEntry --- src/DotRecast.Recast/RcDirtyEntry.cs | 16 ++++++++++++++++ src/DotRecast.Recast/RcLevelStackEntry.cs | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 src/DotRecast.Recast/RcDirtyEntry.cs create mode 100644 src/DotRecast.Recast/RcLevelStackEntry.cs diff --git a/src/DotRecast.Recast/RcDirtyEntry.cs b/src/DotRecast.Recast/RcDirtyEntry.cs new file mode 100644 index 0000000..065be20 --- /dev/null +++ b/src/DotRecast.Recast/RcDirtyEntry.cs @@ -0,0 +1,16 @@ +namespace DotRecast.Recast +{ + public readonly struct RcDirtyEntry + { + public readonly int index; + public readonly int region; + public readonly int distance2; + + public RcDirtyEntry(int tempIndex, int tempRegion, int tempDistance2) + { + index = tempIndex; + region = tempRegion; + distance2 = tempDistance2; + } + } +} \ No newline at end of file diff --git a/src/DotRecast.Recast/RcLevelStackEntry.cs b/src/DotRecast.Recast/RcLevelStackEntry.cs new file mode 100644 index 0000000..6648f20 --- /dev/null +++ b/src/DotRecast.Recast/RcLevelStackEntry.cs @@ -0,0 +1,16 @@ +namespace DotRecast.Recast +{ + public readonly struct RcLevelStackEntry + { + public readonly int x; + public readonly int y; + public readonly int index; + + public RcLevelStackEntry(int tempX, int tempY, int tempIndex) + { + x = tempX; + y = tempY; + index = tempIndex; + } + } +} \ No newline at end of file