|
26555f1745
|
src/world/layer: make BlockInfo fields public
There were left private by accident.
|
2023-03-03 20:36:09 +01:00 |
|
|
1d4c7a86ff
|
world/layer: replace iproduct!() with nested loops
iproduct!() is slow for more than 2 parameters.
|
2023-03-02 01:00:55 +01:00 |
|
|
5c82b80924
|
world/section: replace block_id_at() method with block_at()
Directly return a BlockType, preparing for early lookup of palettes.
|
2023-03-02 00:31:34 +01:00 |
|
|
4c2fd6c1a9
|
resource: rename BlockTypeMap to BlockTypes
The block_types() function it turned into a Default implementation.
|
2023-03-01 23:59:27 +01:00 |
|
|
cbbc6d8f35
|
resource: make BlockTypeMap return BlockType without reference
|
2023-03-01 21:58:29 +01:00 |
|
|
f47b38b2ca
|
world/layer: return boxed BlockInfoArray from top_layer()
Avoid copying around large structures, and allow creating
arrays of BlockInfoArrays without overflowing the stack.
|
2023-02-27 19:17:17 +01:00 |
|
|
551056803d
|
Add Serialize/Deserialize impls to various types
We want to be able to store this data to disk temporarily.
|
2023-02-26 00:46:50 +01:00 |
|
|
f48aa877d2
|
world: implement top_layer function
Implement one of the core functions of MinedMap: finding the topmost
visible block at each coordinate.
|
2023-02-18 11:51:24 +01:00 |
|