lol idk #1

Open
Quaternions wants to merge 826 commits from StrafesNET/strafe-project:master into master
3 changed files with 8 additions and 6 deletions
Showing only changes of commit d5a3b797da - Show all commits

4
Cargo.lock generated
View File

@ -571,9 +571,9 @@ dependencies = [
[[package]]
name = "roblox_emulator"
version = "0.2.3"
version = "0.3.0"
source = "sparse+https://git.itzana.me/api/packages/strafesnet/cargo/"
checksum = "2fa2c785a17f607aad6bdd19eef6d19f9476f308ce38de139df931a99132bd46"
checksum = "ba81a9134bb07930669340c7aad34719e74690f68771c6ef7b093f00ddba9e65"
dependencies = [
"glam",
"mlua",

View File

@ -18,5 +18,5 @@ rbx_dom_weak = { version = "2.7.0", registry = "strafesnet" }
rbx_mesh = "0.1.2"
rbx_reflection_database = { version = "0.2.10", registry = "strafesnet" }
rbx_xml = { version = "0.13.3", registry = "strafesnet" }
roblox_emulator = { version = "0.2.1", registry = "strafesnet" }
roblox_emulator = { version = "0.3.0", registry = "strafesnet" }
strafesnet_common = { version = "0.5.1", registry = "strafesnet" }

View File

@ -20,9 +20,11 @@ pub struct Dom(rbx_dom_weak::WeakDom);
impl Dom{
pub fn run_scripts(&mut self){
let runner=roblox_emulator::runner::Runner::new().unwrap();
let context=roblox_emulator::context::Context::from_mut(&mut self.0);
for script in context.scripts(){
if let Err(e)=runner.run_script(script,context){
let context=roblox_emulator::context::Context::from_mut(&mut self.dom);
let scripts=context.scripts();
let runnable=runner.runnable_context(context,services).unwrap();
for script in scripts{
if let Err(e)=runnable.run_script(script){
println!("runner error: {e}");
}
}