Introduce ChunkArray type

A generic array for per-chunk data, indexed by ChunkCoords.
This commit is contained in:
Matthias Schiffer 2023-01-27 21:51:54 +01:00
parent 48e03aa266
commit 28b22ce423
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
4 changed files with 71 additions and 26 deletions

16
Cargo.lock generated
View file

@ -90,6 +90,12 @@ dependencies = [
"cfg-if",
]
[[package]]
name = "either"
version = "1.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91"
[[package]]
name = "errno"
version = "0.2.8"
@ -170,6 +176,15 @@ dependencies = [
"windows-sys",
]
[[package]]
name = "itertools"
version = "0.10.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473"
dependencies = [
"either",
]
[[package]]
name = "libc"
version = "0.2.139"
@ -190,6 +205,7 @@ dependencies = [
"clap",
"fastnbt",
"flate2",
"itertools",
"serde",
]