Commit Graph

10 Commits

Author SHA1 Message Date
a49e9d019b Use correct types so builder_data example works. 2022-03-14 11:39:23 -05:00
66a470d669 Remove type parameter. 2022-03-14 11:03:00 -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
efad0132ff Add (currently non-functional) example of using custom data in a filter. 2022-03-12 14:10:29 -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
89e9bf072e smaller example1 2020-10-19 21:35:24 +02:00
klangner
a228846d35 Fixed README example 2020-10-17 18:25:16 +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