From ec9146d6d5bb1f3d039621a7c3ab1ae295911e45 Mon Sep 17 00:00:00 2001 From: Frankie Fisher Date: Sun, 28 Apr 2024 14:22:34 +0100 Subject: [PATCH] feat: partially-undocumented spawning attribute on Creep prototype --- src/objects/impls/creep.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/objects/impls/creep.rs b/src/objects/impls/creep.rs index 7ce6295..184a37b 100644 --- a/src/objects/impls/creep.rs +++ b/src/objects/impls/creep.rs @@ -104,6 +104,10 @@ extern "C" { #[wasm_bindgen(final, method, js_name = rangedMassAttack)] pub fn ranged_mass_attack(this: &Creep) -> ReturnCode; + /// This Creep attribute is only documented in the typescript typings. + #[wasm_bindgen(method, getter)] + pub fn spawning(this: &Creep) -> bool; + // todo not yet in game but should be like this // #[wasm_bindgen(final, method)] // pub fn repair(this: &Creep, target: &GameObject) -> ReturnCode;