use wasm_bindgen::prelude::*;
use crate::{
objects::{OwnedStructure, RoomObject, Store, Structure},
prelude::*,
};
#[wasm_bindgen]
extern "C" {
#[wasm_bindgen(extends = RoomObject, extends = Structure, extends = OwnedStructure)]
#[derive(Clone, Debug)]
pub type StructureExtension;
#[wasm_bindgen(method, getter)]
pub fn store(this: &StructureExtension) -> Store;
}
impl HasStore for StructureExtension {
fn store(&self) -> Store {
Self::store(self)
}
}
impl Attackable for StructureExtension {}
impl Dismantleable for StructureExtension {}
impl Repairable for StructureExtension {}
impl Transferable for StructureExtension {}
impl Withdrawable for StructureExtension {}