bevy_mod_scripting icon indicating copy to clipboard operation
bevy_mod_scripting copied to clipboard

Better Wrappers - Derive Proxy Macros

Open makspll opened this issue 2 years ago • 1 comments

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)
    }
]]

makspll avatar Aug 24 '23 07:08 makspll

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

makspll avatar Nov 19 '23 21:11 makspll