Struct ldtk_rust::LayerDefinition [−][src]
Fields
layer_definition_type: StringType of the layer (IntGrid, Entities, Tiles or AutoLayer)
auto_rule_groups: Vec<HashMap<String, Option<Value>>>Contains all the auto-layer rule definitions.
auto_source_layer_def_uid: Option<i64>auto_tileset_def_uid: Option<i64>Reference to the Tileset UID being used by this auto-layer rules
display_opacity: f64Opacity of the layer (0 to 1.0)
An array of tags to forbid some Entities in this layer
grid_size: i64Width and height of the grid in pixels
identifier: StringUnique String identifier
int_grid_values: Vec<IntGridValueDefinition>An array that defines extra optional info for each IntGrid value. The array is sorted using value (ascending).
px_offset_x: i64X offset of the layer, in pixels (IMPORTANT: this should be added to the LayerInstance
optional offset)
px_offset_y: i64Y offset of the layer, in pixels (IMPORTANT: this should be added to the LayerInstance
optional offset)
An array of tags to filter Entities that can be added to this layer
tile_pivot_x: f64If the tiles are smaller or larger than the layer grid, the pivot value will be used to position the tile relatively its grid cell.
tile_pivot_y: f64If the tiles are smaller or larger than the layer grid, the pivot value will be used to position the tile relatively its grid cell.
tileset_def_uid: Option<i64>Reference to the Tileset UID being used by this Tile layer
purple_type: TypeType of the layer as Haxe Enum Possible values: IntGrid, Entities, Tiles,
AutoLayer
uid: i64Unique Int identifier
Trait Implementations
impl<'de> Deserialize<'de> for LayerDefinition[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Serialize for LayerDefinition[src]
Auto Trait Implementations
impl RefUnwindSafe for LayerDefinition
impl Send for LayerDefinition
impl Sync for LayerDefinition
impl Unpin for LayerDefinition
impl UnwindSafe for LayerDefinition
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, 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>,