From f6b3b43442a798721d2da0569bbf108a21437498 Mon Sep 17 00:00:00 2001 From: ikpil Date: Tue, 28 Mar 2023 00:46:22 +0900 Subject: [PATCH] move vector3f to core --- .../Vector3f.cs | 8 ++------ .../DotRecast.Detour.Extras.csproj | 4 ++-- src/DotRecast.Detour.Extras/Unity/Astar/GraphMeta.cs | 2 ++ src/DotRecast.Detour.Extras/Unity/Astar/NodeLink2.cs | 2 ++ 4 files changed, 8 insertions(+), 8 deletions(-) rename src/{DotRecast.Detour.Extras => DotRecast.Core}/Vector3f.cs (91%) diff --git a/src/DotRecast.Detour.Extras/Vector3f.cs b/src/DotRecast.Core/Vector3f.cs similarity index 91% rename from src/DotRecast.Detour.Extras/Vector3f.cs rename to src/DotRecast.Core/Vector3f.cs index 1f65d8e..fb1eab5 100644 --- a/src/DotRecast.Detour.Extras/Vector3f.cs +++ b/src/DotRecast.Core/Vector3f.cs @@ -16,18 +16,14 @@ freely, subject to the following restrictions: 3. This notice may not be removed or altered from any source distribution. */ -namespace DotRecast.Detour.Extras +namespace DotRecast.Core { - public class Vector3f + public struct Vector3f { public float x { get; set; } public float y { get; set; } public float z { get; set; } - public Vector3f() - { - } - public Vector3f(float x, float y, float z) { this.x = x; diff --git a/src/DotRecast.Detour.Extras/DotRecast.Detour.Extras.csproj b/src/DotRecast.Detour.Extras/DotRecast.Detour.Extras.csproj index b0da5a1..2a71f47 100644 --- a/src/DotRecast.Detour.Extras/DotRecast.Detour.Extras.csproj +++ b/src/DotRecast.Detour.Extras/DotRecast.Detour.Extras.csproj @@ -5,8 +5,8 @@ - - + + diff --git a/src/DotRecast.Detour.Extras/Unity/Astar/GraphMeta.cs b/src/DotRecast.Detour.Extras/Unity/Astar/GraphMeta.cs index f6c62c9..8fbdd19 100644 --- a/src/DotRecast.Detour.Extras/Unity/Astar/GraphMeta.cs +++ b/src/DotRecast.Detour.Extras/Unity/Astar/GraphMeta.cs @@ -16,6 +16,8 @@ freely, subject to the following restrictions: 3. This notice may not be removed or altered from any source distribution. */ +using DotRecast.Core; + namespace DotRecast.Detour.Extras.Unity.Astar { public class GraphMeta diff --git a/src/DotRecast.Detour.Extras/Unity/Astar/NodeLink2.cs b/src/DotRecast.Detour.Extras/Unity/Astar/NodeLink2.cs index 45c06a1..479dd24 100644 --- a/src/DotRecast.Detour.Extras/Unity/Astar/NodeLink2.cs +++ b/src/DotRecast.Detour.Extras/Unity/Astar/NodeLink2.cs @@ -16,6 +16,8 @@ freely, subject to the following restrictions: 3. This notice may not be removed or altered from any source distribution. */ +using DotRecast.Core; + namespace DotRecast.Detour.Extras.Unity.Astar { public class NodeLink2