c010ee9194
Prepare for crates.io release
2023-08-21 21:51:01 +02:00
228f31c568
Move resource module to a separate crate
...
The resource module does not depend on any other part of MinedMap.
2023-08-20 17:00:10 +02:00
248a641035
Restructure crates
...
Get rid of the arbitrary bin/lib split and instead move as much as
possible into the bin crate, which becomes the main crate again.
The types and NBT handling are moved into separate crates, so they can
be reused by nbtdump and regiondump.
2023-08-20 17:00:10 +02:00
61fb23b94b
Move main source file to bin subdirectory
2023-04-30 10:46:56 +02:00
d79377ad6b
main: pass biome into block_color()
...
No biome edge smoothing yet.
2023-04-10 20:58:07 +02:00
0d81dfa35b
main: store biome data in processed data files
2023-04-09 23:20:20 +02:00
e912f60ba3
world/layer: add biome data to returned layer
2023-04-09 22:56:02 +02:00
e117c76937
world: pass biome data into chunk/section structures
2023-04-07 09:34:56 +02:00
bcec704d27
main: add height-based color modification
...
Modify terrain color depending on the height to give a sense of
elevation.
2023-03-04 21:45:59 +01:00
46802116d9
resource: change BlockColor into an array
2023-03-04 21:32:15 +01:00
fbf212b55f
main: render light map
2023-03-04 20:36:25 +01:00
4fd316f3fc
world/layer: return None from top_layer() for empty chunks
...
Allow ignoring these chunks for the light map as well.
2023-03-04 20:33:10 +01:00
202364bfca
main: factor out overlay_chunk() function to build region images
2023-03-04 20:30:39 +01:00
fa04e3e94a
main: actually render tiles
2023-03-03 20:41:08 +01:00
d5406851b4
main: load processed regions from render_tile()
2023-03-03 19:45:24 +01:00
89f35024b7
main: introduce ProcessedRegion type alias
2023-03-03 19:45:00 +01:00
e0467de080
main: rename save_region() argument from region to coords
...
For consistency.
2023-03-03 19:22:45 +01:00
dda81546de
main: add map_path() method to Config struct
2023-03-03 19:13:15 +01:00
51a0e178b1
main: do not rebuild region filename from coords
2023-03-03 19:06:54 +01:00
2ccb282f6f
main: rename Paths to Config
2023-03-03 19:02:55 +01:00
ec09afcf15
main: fully print error messages
2023-03-02 01:23:24 +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
f2ab424590
world: store BlockTypes in section types
...
Prepare for sections returning BlockType data directly instead of block IDs.
2023-03-02 00:24:59 +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
0673c89bd8
main: add stub tile renderer struct
...
This only prints messages so far.
2023-03-01 21:45:38 +01:00
73b13c1afb
main: move path handling to separate struct
2023-03-01 21:02:24 +01:00
c5ca1d9821
main: pass region_dir to RegionProcessor::new(), consume when processing
2023-03-01 19:27:09 +01:00
a2ba7e4738
main: build processed_dir path outside of RegionProcessor::new()
2023-03-01 19:17:50 +01:00
ea604b88f2
main: rename regiondir variable to region_dir
...
For consistency with other _dir variables.
2023-03-01 19:17:04 +01:00
ca6afa0cf9
main: return list of region coordinates from process_region_dir()
2023-03-01 19:16:09 +01:00
194715ad09
main: store processed region data
2023-03-01 00:13:06 +01:00
e02a1fc0c9
main: collect processed chunks in array
2023-03-01 00:11:42 +01:00
18cecb947e
main: factor out process_chunk() method
2023-03-01 00:09:11 +01:00
d77dcce778
main: print message when processing region
2023-03-01 00:06:48 +01:00
447a9482fe
main: create output directory for processed data files
2023-03-01 00:02:23 +01:00
04ab8c321f
main: fix formatting
...
rustfmt still doesn't handle let-else...
2023-03-01 00:00:40 +01:00
b68f04496c
main: introduce RegionCoords type alias
2023-02-28 23:57:48 +01:00
768ab13205
main: rename savedir argument to input_dir
2023-02-28 23:54:21 +01:00
fd0c9fbf1b
main: improve process_region() error handling
2023-02-26 01:11:59 +01:00
b2d849081d
io/region: allow stopping foreach_chunk early
...
Errors returned from the callback stop the loop early.
2023-02-26 01:01:37 +01:00
2d0f2fb865
main: iterate over regions of a Minecraft save dir
2023-02-25 17:46:00 +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
6379472282
world/de: new module for deserialization data structures
...
The new structures contain only the fields that MinedMap needs.
2023-02-07 18:32:01 +01:00
40105aaccd
Initial Rust setup
2023-01-25 00:06:27 +01:00