summaryrefslogtreecommitdiff
path: root/examples
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 /examples
parente8f85e4a723b772c099a3c03a6cb721c48561e4b (diff)
Patch GameManifest through ScriptContext
Diffstat (limited to 'examples')
-rw-r--r--examples/snake.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/snake.rs b/examples/snake.rs
index 49ea212..d62e3ba 100644
--- a/examples/snake.rs
+++ b/examples/snake.rs
@@ -139,12 +139,12 @@ fn main() {
let mut time = TimeContext::new();
let mut context = ScriptContext {
+ manifest: &manifest,
buffer: &mut buffer,
input: &input,
time: &time,
};
switch_scenes(
- &manifest.scenes,
&mut scripts,
&mut context,
&mut files,
@@ -161,6 +161,7 @@ fn main() {
}
Event::Render => {
let mut context = ScriptContext {
+ manifest: &manifest,
buffer,
input: &input,
time: &time,