pub struct WasmLayer { /* private fields */ }
Implementations§
Source§impl WasmLayer
impl WasmLayer
pub fn new(name: String, masks: Vec<WasmMask>, z: u32) -> WasmLayer
pub fn name(&self) -> String
pub fn z(&self) -> u32
pub fn masks(&self) -> Vec<WasmMask>
Sourcepub fn is_blocking_at(&self, coord: &WasmCoordinates) -> bool
pub fn is_blocking_at(&self, coord: &WasmCoordinates) -> bool
Returns true if any tile blocks movement at the coordinate.
Trait Implementations§
Source§impl FromWasmAbi for WasmLayer
impl FromWasmAbi for WasmLayer
Source§impl IntoWasmAbi for WasmLayer
impl IntoWasmAbi for WasmLayer
Source§impl LongRefFromWasmAbi for WasmLayer
impl LongRefFromWasmAbi for WasmLayer
Source§impl OptionFromWasmAbi for WasmLayer
impl OptionFromWasmAbi for WasmLayer
Source§impl OptionIntoWasmAbi for WasmLayer
impl OptionIntoWasmAbi for WasmLayer
Source§impl RefFromWasmAbi for WasmLayer
impl RefFromWasmAbi for WasmLayer
Source§impl RefMutFromWasmAbi for WasmLayer
impl RefMutFromWasmAbi for WasmLayer
Source§impl TryFromJsValue for WasmLayer
impl TryFromJsValue for WasmLayer
Source§impl VectorFromWasmAbi for WasmLayer
impl VectorFromWasmAbi for WasmLayer
Source§impl VectorIntoWasmAbi for WasmLayer
impl VectorIntoWasmAbi for WasmLayer
Source§impl WasmWrapper<Layer> for WasmLayer
impl WasmWrapper<Layer> for WasmLayer
impl SupportsConstructor for WasmLayer
impl SupportsInstanceProperty for WasmLayer
impl SupportsStaticProperty for WasmLayer
Auto Trait Implementations§
impl Freeze for WasmLayer
impl RefUnwindSafe for WasmLayer
impl Send for WasmLayer
impl Sync for WasmLayer
impl Unpin for WasmLayer
impl UnwindSafe for WasmLayer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.