From 99bda9d53f9ca54d0861340846196bfb63849aa2 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Wed, 30 Nov 2022 19:30:56 +0000 Subject: [PATCH] Suppress CA1814 for revision property revision is a contiguous array in the native SDK, which is best represented with a multidimensional array in C# --- VpSharp/src/Internal/NativeMethods.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VpSharp/src/Internal/NativeMethods.cs b/VpSharp/src/Internal/NativeMethods.cs index 5ced5e9..3bceabb 100644 --- a/VpSharp/src/Internal/NativeMethods.cs +++ b/VpSharp/src/Internal/NativeMethods.cs @@ -210,7 +210,9 @@ internal static class NativeMethods [DllImport(VpSdkLibrary, CallingConvention = CallingConvention.Cdecl)] [DefaultDllImportSearchPaths(SearchPaths)] +#pragma warning disable CA1814 public static extern int vp_terrain_query(nint instance, int tile_x, int tile_z, int[,] revision); +#pragma warning restore CA1814 // [DllImport(VpSdkLibrary, CallingConvention=CallingConvention.Cdecl)] public static extern int vp_terrain_node_set(IntPtr instance, int tile_x, int tile_z, int node_x, int node_z, struct vp_terrain_cell_t* cells); [DllImport(VpSdkLibrary, CallingConvention = CallingConvention.Cdecl)]