fix: Fixed the storage server interface to meet the proper types
This commit is contained in:
parent
6d45421601
commit
806eedf3b9
@ -11,14 +11,14 @@ type StorageServer interface {
|
|||||||
SetStorageRoot(path string)
|
SetStorageRoot(path string)
|
||||||
|
|
||||||
// Block-level interactions
|
// Block-level interactions
|
||||||
ChangeBlock(targetState world.BlockID, world_position world.BlockPos) error
|
ChangeBlock(pos world.BlockPos, targetState world.BlockID) error
|
||||||
ReadBlockAt(pos world.BlockPos) (world.BlockID, error)
|
ReadBlockAt(pos world.BlockPos) (world.BlockID, error)
|
||||||
|
|
||||||
// Region-level interactions
|
// Region-level interactions
|
||||||
ChangeBlockRange(targetState world.BlockID, start, end world.BlockPos) error
|
ChangeBlockRange(targetState world.BlockID, start, end world.BlockPos) error
|
||||||
|
|
||||||
// Network-level operations
|
// Network-level operations
|
||||||
ReadChunkAt(pos world.ChunkPos) error
|
ReadChunkAt(pos world.ChunkPos) (world.ChunkData, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
Loading…
Reference in New Issue
Block a user