[−][src]Struct ldtk::LayerDef
Fields
px_offset_x: i32
X offset of the layer, in pixels (IMPORTANT: this should be added to the LayerInstance
optional offset)
tile_pivot_x: f32
If the tiles are smaller or larger than the layer grid, the pivot value will be used to position the tile relatively its grid cell.
int_grid_values: Vec<IntGridValueDef>
An array (using IntGrid value as array index, starting from 0) that defines extra optional info for each IntGrid value.
auto_rule_groups: Vec<HashMap<String, Value>>
Contains all the auto-layer rule definitions.
identifier: String
Unique String identifier
display_opacity: f32
Opacity of the layer (0 to 1.0)
px_offset_y: i32
Y offset of the layer, in pixels (IMPORTANT: this should be added to the LayerInstance
optional offset)
tile_pivot_y: f32
If the tiles are smaller or larger than the layer grid, the pivot value will be used to position the tile relatively its grid cell.
grid_size: i32
Width and height of the grid in pixels
__type: String
Type of the layer (IntGrid, Entities, Tiles or AutoLayer)
auto_source_layer_def_uid: Option<i32>
uid: i32
Unique Int identifier
tileset_def_uid: Option<i32>
Reference to the Tileset UID being used by this Tile layer
auto_tileset_def_uid: Option<i32>
Reference to the Tileset UID being used by this auto-layer rules
layer_def_type: Option<Value>
Type of the layer as Haxe Enum Possible values: IntGrid
, Entities
, Tiles
, AutoLayer
Trait Implementations
impl Clone for LayerDef
[src]
impl Debug for LayerDef
[src]
impl<'de> Deserialize<'de> for LayerDef
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for LayerDef
[src]
Auto Trait Implementations
impl RefUnwindSafe for LayerDef
[src]
impl Send for LayerDef
[src]
impl Sync for LayerDef
[src]
impl Unpin for LayerDef
[src]
impl UnwindSafe for LayerDef
[src]
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>,