v0.3.1 services reference
This commit is contained in:
parent
00a5d71b2b
commit
c12ad7df0f
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -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",
|
||||||
|
@ -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"
|
||||||
|
@ -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)?;
|
||||||
|
Loading…
Reference in New Issue
Block a user