v0.3.1 services reference

This commit is contained in:
Quaternions 2024-10-03 20:23:23 -07:00
parent 00a5d71b2b
commit c12ad7df0f
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View File

@ -318,7 +318,7 @@ dependencies = [
[[package]] [[package]]
name = "roblox_emulator" name = "roblox_emulator"
version = "0.3.0" version = "0.3.1"
dependencies = [ dependencies = [
"glam", "glam",
"mlua", "mlua",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "roblox_emulator" name = "roblox_emulator"
version = "0.3.0" version = "0.3.1"
edition = "2021" edition = "2021"
repository = "https://git.itzana.me/StrafesNET/roblox_emulator" repository = "https://git.itzana.me/StrafesNET/roblox_emulator"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"

View File

@ -45,7 +45,7 @@ impl Runner{
init(&runner.lua).map_err(Error::RustLua)?; init(&runner.lua).map_err(Error::RustLua)?;
Ok(runner) Ok(runner)
} }
pub fn runnable_context<'a>(self,context:&'a mut Context,services:crate::place::Services)->Result<Runnable<'a>,Error>{ pub fn runnable_context<'a>(self,context:&'a mut Context,services:&crate::place::Services)->Result<Runnable<'a>,Error>{
{ {
let globals=self.lua.globals(); let globals=self.lua.globals();
globals.set("game",super::instance::DataModel::new(services.game)).map_err(Error::RustLua)?; globals.set("game",super::instance::DataModel::new(services.game)).map_err(Error::RustLua)?;