feat: add IChunkModificationStore and in-memory implementation
This commit is contained in:
11
World/Persistence/IChunkModificationStore.cs
Normal file
11
World/Persistence/IChunkModificationStore.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using OpenTK.Mathematics;
|
||||
|
||||
namespace VoxelEngine.World.Persistence;
|
||||
|
||||
public interface IChunkModificationStore
|
||||
{
|
||||
bool TryGetDiff(Vector3i chunkPos, out IReadOnlyDictionary<int, ushort>? diff);
|
||||
void RecordEdit(Vector3i chunkPos, int localIndex, ushort blockId);
|
||||
void ClearDiff(Vector3i chunkPos);
|
||||
bool HasDiff(Vector3i chunkPos);
|
||||
}
|
||||
Reference in New Issue
Block a user