Skip to content

Commit

Permalink
move palette to core folder instead of world
Browse files Browse the repository at this point in the history
  • Loading branch information
JieningYu committed Mar 9, 2024
1 parent 415b2a6 commit 52bdaa1
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
resolver = "2"
members = [
"crates/util/*",

"crates/client/*",

"crates/client/*",
"crates/core/*",
"crates/core/world/palette",

"crates/flare3d",
"crates/flare3d/example",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ categories = []
maintenance = { status = "passively-maintained" }

[dependencies]
rimecraft-packed-int-array = { path = "../../../util/packed-int-array" }
rimecraft-maybe = { path = "../../../util/maybe" }
rimecraft-edcode = { path = "../../../util/edcode", optional = true }
rimecraft-packed-int-array = { path = "../../util/packed-int-array" }
rimecraft-maybe = { path = "../../util/maybe" }
rimecraft-edcode = { path = "../../util/edcode", optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }
rimecraft-serde-update = { path = "../../../util/serde-update", optional = true }
rimecraft-serde-update = { path = "../../util/serde-update", optional = true }
ahash = "0.8"

[features]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,11 +510,13 @@ mod _serde {
let is = is;

let j = Cx::bits(&self.list, pal.len());

#[derive(Serialize)]
struct Serialized<'a, T> {
palette: &'a [T], // forward field in BiMapPalette
data: Option<&'a [u64]>,
}

let entries = {
let PaletteImpl::BiMap { forward, .. } = &pal.internal else {
unreachable!()
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion crates/core/world/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ maintenance = { status = "passively-maintained" }

[dependencies]
rimecraft-global-cx = { path = "../global-cx" }
rimecraft-chunk-palette = { path = "./palette" }
rimecraft-chunk-palette = { path = "../palette" }
rimecraft-registry = { path = "../../util/registry", features = ["serde"] }
rimecraft-state = { path = "../state" }
rimecraft-block = { path = "../block" }
Expand Down

0 comments on commit 52bdaa1

Please sign in to comment.