MCPcopy Create free account
hub / github.com/DomWilliams0/name-needed / add_methods

Method add_methods

game/simulation/src/scripting/lua.rs:43–47  ·  view source on GitHub ↗
(methods: &mut T)

Source from the content-addressed store, hash-verified

41impl UserData for EntityWrapper {}
42impl UserData for SocietyHandle {
43 fn add_methods<'lua, T: UserDataMethods<'lua, Self>>(methods: &mut T) {
44 methods.add_meta_function(MetaMethod::ToString, |_, this: Self| {
45 Ok(format!("{:?}", this))
46 });
47 }
48}
49
50impl Scripting for LuaScripting {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected