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:
parent
7d035c2c2b
commit
99bda9d53f
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user