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 StructureStorage;
#[wasm_bindgen(method, getter)]
pub fn store(this: &StructureStorage) -> Store;
}
impl HasStore for StructureStorage {
fn store(&self) -> Store {
Self::store(self)
}
}
impl Attackable for StructureStorage {}
impl Dismantleable for StructureStorage {}
impl Repairable for StructureStorage {}
impl Transferable for StructureStorage {}
impl Withdrawable for StructureStorage {}