You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was attending the 7DRL Jam last week and it really hit me how much I had to write pub fn plugin(app: &mut App)... so I was thinking that maybe there should be a command to generate these for me like angulars cli does
so I propose that bevy generate plugin ./path/to/plugin
generates that boilerplate for me
likewise you could use bevy generate component ./path/to/component
to generate a component with the given name and if path/to/already exists and has a mod.rs in it, could add mod component; to the file, so that I don't have to manually.
this could then of course be extended for resources and the likes.
The text was updated successfully, but these errors were encountered:
This is almost exactly what I was looking for, thank you! Although I would argue that not everyone uses vs code, so there still might be some benefit in my proposal ;D
I was attending the 7DRL Jam last week and it really hit me how much I had to write
pub fn plugin(app: &mut App)...
so I was thinking that maybe there should be a command to generate these for me like angulars cli doesso I propose that
bevy generate plugin ./path/to/plugin
generates that boilerplate for me
likewise you could use
bevy generate component ./path/to/component
to generate a component with the given name and if
path/to/
already exists and has amod.rs
in it, could addmod component;
to the file, so that I don't have to manually.this could then of course be extended for resources and the likes.
The text was updated successfully, but these errors were encountered: