forked from StrafesNET/strafe-project
roblox_emulator: implement Instance.GetFullName
This commit is contained in:
@@ -177,6 +177,12 @@ impl mlua::UserData for Instance{
|
|||||||
}
|
}
|
||||||
methods.add_method("children",get_children);
|
methods.add_method("children",get_children);
|
||||||
methods.add_method("GetChildren",get_children);
|
methods.add_method("GetChildren",get_children);
|
||||||
|
methods.add_method("GetFullName",|lua,this,()|
|
||||||
|
dom_mut(lua,|dom|{
|
||||||
|
let instance=this.get(dom)?;
|
||||||
|
Ok(get_full_name(dom,instance))
|
||||||
|
})
|
||||||
|
);
|
||||||
fn ffc(lua:&mlua::Lua,this:&Instance,(name,search_descendants):(mlua::String,Option<bool>))->mlua::Result<Option<Instance>>{
|
fn ffc(lua:&mlua::Lua,this:&Instance,(name,search_descendants):(mlua::String,Option<bool>))->mlua::Result<Option<Instance>>{
|
||||||
let name_str=&*name.to_str()?;
|
let name_str=&*name.to_str()?;
|
||||||
dom_mut(lua,|dom|{
|
dom_mut(lua,|dom|{
|
||||||
|
|||||||
Reference in New Issue
Block a user