spatial-db/storage/storage_server.go
2023-10-28 21:40:29 -07:00

14 lines
408 B
Go

package storage
import "git.nicholasnovak.io/nnovak/spatial-db/world"
type StorageServer interface {
// Individual block-level interactions
ChangeBlock(targetState world.BlockID, world_position world.BlockPos) error
ChangeBlockRange(targetState world.BlockID, start, end world.BlockPos) error
ReadBlockAt(pos world.BlockPos) error
// Network-level operations
ReadChunkAt(pos world.ChunkPos) error
}