mirror of
https://github.com/Jacobwasbeast/LegacyWeaveLoader.git
synced 2026-05-22 05:34:36 +00:00
11 lines
408 B
C#
11 lines
408 B
C#
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;
|
|
}
|