bevy_mod_scripting
bevy_mod_scripting copied to clipboard
Better Wrappers - Derive Proxy Macros
Macros of the form:
#[reflect(Resource, LuaProxyable)]
#[proxy(languages("on_feature(lua)"), derive(Clone))]
#[functions[
#[lua(MutatingMethod)]
fn set_my_string(&mut self, another_string: Option<String>);
#[lua(Method)]
fn get_my_string(&self) -> String;
#[lua(MetaMethod)]
fn ToString(&self) -> String {
format!("{:#?}", _self)
}
]]
This is almost finished, I just have codegen for binary and unary operators left over and that should be it, will also write some solid UI tests and others and voila