summaryrefslogtreecommitdiff
path: root/src/script.rs
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2026-07-06 14:59:20 -0400
committerMica White <botahamec@outlook.com>2026-07-06 14:59:20 -0400
commit07018cb37b278dbd73c864a662454f1cf9d33457 (patch)
tree5796096d60f6e09d35498b567c596d42b9c32baf /src/script.rs
parente8f85e4a723b772c099a3c03a6cb721c48561e4b (diff)
Patch GameManifest through ScriptContext
Diffstat (limited to 'src/script.rs')
-rw-r--r--src/script.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/script.rs b/src/script.rs
index 2de50f5..4429b9c 100644
--- a/src/script.rs
+++ b/src/script.rs
@@ -2,7 +2,12 @@ use std::path::Path;
use rustc_hash::FxHashMap;
-use crate::{buffer::Buffer, file::FileManager, input::InputManager, time::TimeContext};
+use crate::{
+ buffer::Buffer,
+ file::{FileManager, GameManifest},
+ input::InputManager,
+ time::TimeContext,
+};
mod wasm;
@@ -18,6 +23,7 @@ pub struct WasmRunner {
}
pub struct ScriptContext<'a> {
+ pub manifest: &'a GameManifest,
pub buffer: &'a mut Buffer,
pub input: &'a InputManager,
pub time: &'a TimeContext,