1
0
mirror of https://github.com/oliverbooth/VpSharp synced 2024-11-22 19:38:47 +00:00

Suppress CA1814 for revision property

revision is a contiguous array in the native SDK, which is best represented with a multidimensional array in C#
This commit is contained in:
Oliver Booth 2022-11-30 19:30:56 +00:00
parent 7d035c2c2b
commit 99bda9d53f
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634

View File

@ -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)]