mirror of
https://github.com/Jacobwasbeast/LegacyWeaveLoader.git
synced 2026-05-26 23:54:31 +00:00
feat(modloader): pdb mapping, dynamic invoke, mixins
This commit is contained in:
10
WeaveLoader.API/Native/NativeLevel.cs
Normal file
10
WeaveLoader.API/Native/NativeLevel.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace WeaveLoader.API.Native;
|
||||
|
||||
public static class NativeLevel
|
||||
{
|
||||
public static int GetTile(nint levelPtr, int x, int y, int z)
|
||||
=> NativeInterop.native_level_get_tile(levelPtr, x, y, z);
|
||||
|
||||
public static bool SetTile(nint levelPtr, int x, int y, int z, int blockId, int data = 0, int flags = 2)
|
||||
=> NativeInterop.native_level_set_tile(levelPtr, x, y, z, blockId, data, flags) != 0;
|
||||
}
|
||||
Reference in New Issue
Block a user