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
Maybe Engine, Lua State, etc can be unified into one "Gmod" state object. I don't know the extent of proc-macros but I hope this can happen.
Example clientside binary module
use rglua::prelude::*;// Either #[rglua::open] or #[rglua::open(interfaces..)]// In this case, it tries to load the engine interface to add functions like is_connected// Additionally maybe it can return a result?#[rglua::open(engine)]fnstart_module(g:Gmod) -> i32{printgm!(g, "{}", g.is_connected());0}#[rglua::close]fnclose_module(g:Gmod) -> i32{0}
The text was updated successfully, but these errors were encountered:
Maybe Engine, Lua State, etc can be unified into one "Gmod" state object. I don't know the extent of proc-macros but I hope this can happen.
Example clientside binary module
The text was updated successfully, but these errors were encountered: