This commit is contained in:
Quaternions 2024-09-17 18:27:56 -07:00
parent b9f9b2ba7e
commit bdda966497

View File

@ -54,4 +54,12 @@ where
AcquireMeshId:FnMut(&str)->strafesnet_common::model::MeshId,
{
rbx::convert(&dom.0,acquire_render_config_id,acquire_mesh_id)
}
}
pub fn run_scripts(dom:Dom)->roblox_emulator::Result<Dom>{
let mut context=roblox_emulator::context::Context::new(dom.0);
for script in context.scripts(){
script.run(&mut context)?;
}
Ok(Dom(context.into_inner()))
}