YarnSpinner-Rust icon indicating copy to clipboard operation
YarnSpinner-Rust copied to clipboard

Support exporting `.ysls` files

Open janhohenheim opened this issue 2 years ago • 1 comments

janhohenheim avatar May 30 '23 02:05 janhohenheim

I have this working in a project I'm working on. It works fine for functions as they implement this: https://github.com/YarnSpinnerTool/YarnSpinner-Rust/blob/8918900c9ec0470203ac4ad9bbb19e5f9acb07ea/crates/core/src/yarn_fn/function_wrapping.rs#L57-L60

But commands don't so so I have to implement my commands in quite a hacky way: https://github.com/YarnSpinnerTool/YarnSpinner-Rust/blob/8918900c9ec0470203ac4ad9bbb19e5f9acb07ea/crates/bevy_plugin/src/commands/command_wrapping.rs#L158-L164

I had a look at trying to make this change but I haven't quite figured out how to update the macro correctly.

simonhdickson avatar Sep 15 '24 06:09 simonhdickson