YarnSpinnerTool / YarnSpinner-Rust

The friendly tool for writing game dialogue in Rust
https://janhohenheim.itch.io/yarnspinner-rust-demo
Apache License 2.0
173 stars 15 forks source link

Track KnownTypes per file #193

Closed zmbush closed 5 months ago

zmbush commented 5 months ago

Having one global KnownTypes is prone to collision errors, triggering a very hard to debug panic in CodeGenerationVisitor::generate_code_for_operation.

By tracking KnownTypes on a per-file basis, those panics no longer occur.

janhohenheim commented 5 months ago

Wow, good catch! Thanks! I'll make a release including this when Bevy 0.14 lands.