Skip to content

Commit

Permalink
feat: partially-undocumented spawning attribute on Creep prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfrank committed Apr 28, 2024
1 parent afc11ca commit ec9146d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/objects/impls/creep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ec9146d

Please sign in to comment.