Disable Rhai time to keep WASM loadable
This commit is contained in:
1 parent
6175a383a8
commit
cc50ed04be
2 files changed
+2
-1
No files matched your search
@@ -68,6 +68,7 @@ But before committing a completed change, the full local checks should pass unle
|
||||
## Campaign scripting conventions
|
||||
|
||||
- Mission script language: Rhai.
|
||||
- The Rust Rhai dependency must keep `no_time` enabled in `Cargo.toml` so the WASM output stays loadable by the macroquad JS bundle.
|
||||
- Current implemented runtime hook: `on_start(m)`.
|
||||
- Current implemented script actions:
|
||||
- `m.log(text)`
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ license = "MIT"
|
||||
|
||||
[dependencies]
|
||||
macroquad = { version = "0.4" }
|
||||
rhai = { version = "1.27.0", default-features = false, features = ["std"] }
|
||||
rhai = { version = "1.27.0", default-features = false, features = ["std", "no_time"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
|
||||
|
||||
Reference in new issue
Block a user