[−][src]Struct ogmo3::level::TileCoordsLayer
A tile co-ords layer.
Fields
name: String
The name of the layer.
export_id: String
The unique export ID of the entity.
offset_x: f32
The layer's offset on the X axis.
offset_y: f32
The layer's offset on the Y axis.
grid_cell_width: i32
The width of the layer's grid cells.
grid_cell_height: i32
The height of the layer's grid cells.
grid_cells_x: i32
The number of grid cells on the X axis.
grid_cells_y: i32
The number of grid cells on the Y axis.
tileset: String
The name of the tileset used for this layer.
data: TileCoordsLayerStorage
The tile data.
You may want to use the unpack
method rather than accessing this directly.
Implementations
impl TileCoordsLayer
[src]
pub fn unpack(&self) -> impl Iterator<Item = TileCoords> + '_
[src]
Unpack the tile data from the layer.
Trait Implementations
impl Clone for TileCoordsLayer
[src]
fn clone(&self) -> TileCoordsLayer
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TileCoordsLayer
[src]
impl<'de> Deserialize<'de> for TileCoordsLayer
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for TileCoordsLayer
[src]
Auto Trait Implementations
impl RefUnwindSafe for TileCoordsLayer
impl Send for TileCoordsLayer
impl Sync for TileCoordsLayer
impl Unpin for TileCoordsLayer
impl UnwindSafe for TileCoordsLayer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,