Commit Graph

19 Commits

Author SHA1 Message Date
d4f8c99c19 chore: Resolve clippy warnings and add a bounds check.
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-31 17:24:11 -06:00
1fa4ba6b26 refactor: map.at now returns Option<&Tile> rather than a wall tile when requested coordinates are out-of-bounds. 2022-05-19 13:17:28 -05:00
1c29eb71cd Rename. 2022-03-18 11:56:34 -05:00
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
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
569d751031 Added maze Fixed #28 2020-11-03 09:04:33 +01:00
klangner
21fa869081 Refactoring 2020-10-19 20:08:40 +02:00
klangner
ce34d237fa Drunkard can use up to col and row 0 2020-10-17 21:51:43 +02:00
klangner
df1e52ad26 Fixed bsp-interior corridors 2020-10-17 18:02:50 +02:00
klangner
4434a35022 Added examples and tests 2020-10-17 17:31:32 +02:00
klangner
dc66f7e11b removed mutable variable 2020-10-17 12:08:33 +02:00
klangner
4b8bb89110 refactored MapBuilder 2020-09-25 15:09:08 +02:00
klangner
be1d9e95bb Added NoiseGenerator 2020-09-23 10:31:13 +02:00
klangner
f661da36ce refactoring 2020-09-22 20:44:54 +02:00
klangner
278b549094 refactoring API 2020-09-22 20:38:37 +02:00