Commit Graph

14 Commits

Author SHA1 Message Date
0d5624fe4c Bump edition and appease Clippy. 2022-03-14 11:46:48 -05:00
2202540a43 Drop BuilderData trait. 2022-03-13 21:14:59 -05:00
ffaad6cf48 cargo fmt 2022-03-12 14:31:30 -06:00
957dcca447 Add ability to associate arbitrary BuilderData with maps.
I'm finding that, for best results, I need to integrate everything into my map generation process. So for instance, object/monster spawns need to run as a filter so they can influence future steps.

This associates a `Clone + Default` type with maps and makes it available to filters. `NoData` exists for the current behavior.

All examples/tests/demos have been updated accordingly.
2022-03-12 09:45:42 -06:00
klangner
315f460274 fixed test 2021-08-26 17:12:03 +02:00
klangner
f6d1f2ac75 Merge branch 'master' of https://github.com/klangner/mapgen.rs 2021-08-26 17:11:18 +02:00
klangner
f65a5f3c6e Test for overflow 2021-08-26 17:11:14 +02:00
9095605092 Guard against overflows. 2021-08-25 12:48:00 -05:00
96720c5662 Add getter for index. 2021-07-13 12:17:51 -05:00
klangner
e50c26356e Added index to the Tile 2021-06-28 17:11:51 +02:00
klangner
d513dcda8f changed TileType to struct 2021-06-28 17:06:47 +02:00
klangner
2e4fba61e4 implemented Voronoi Hive. Fixed: 30 2020-11-19 20:53:34 +01:00
klangner
a75f565cbb drunkard implemented 2020-09-16 11:42:59 +02:00
klangner
764233c7cf Package refactoring 2020-09-16 09:57:59 +02:00