Struct ldtk::LayerDef [−][src]
pub struct LayerDef {}Show fields
pub grid_size: i32, pub display_opacity: f32, pub auto_rule_groups: Vec<AutoLayerRuleGroup>, pub px_offset_y: i32, pub __type: String, pub tile_pivot_x: f32, pub auto_tileset_def_uid: Option<i32>, pub px_offset_x: i32, pub uid: i32, pub int_grid_values: Vec<IntGridValueDef>, pub layer_def_type: Value, pub identifier: String, pub auto_source_layer_def_uid: Option<i32>, pub required_tags: Vec<String>, pub tile_pivot_y: f32, pub tileset_def_uid: Option<i32>, pub excluded_tags: Vec<String>,
Fields
grid_size: i32
Width and height of the grid in pixels
display_opacity: f32
Opacity of the layer (0 to 1.0)
auto_rule_groups: Vec<AutoLayerRuleGroup>
Contains all the auto-layer rule definitions.
px_offset_y: i32
Y offset of the layer, in pixels (IMPORTANT: this should be added to the LayerInstance
optional offset)
__type: String
Type of the layer (IntGrid, Entities, Tiles or AutoLayer)
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.
auto_tileset_def_uid: Option<i32>
Reference to the Tileset UID being used by this auto-layer rules. WARNING: some layer instances might use a different tileset. So most of the time, you should probably use the __tilesetDefUid
value from layer instances.
px_offset_x: i32
X offset of the layer, in pixels (IMPORTANT: this should be added to the LayerInstance
optional offset)
uid: i32
Unique Int identifier
int_grid_values: Vec<IntGridValueDef>
An array that defines extra optional info for each IntGrid value. The array is sorted using value (ascending).
layer_def_type: Value
Type of the layer as Haxe Enum Possible values: IntGrid
, Entities
, Tiles
, AutoLayer
identifier: String
Unique String identifier
auto_source_layer_def_uid: Option<i32>
An array of tags to filter Entities that can be added to this layer
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.
tileset_def_uid: Option<i32>
Reference to the Tileset UID being used by this Tile layer. WARNING: some layer instances might use a different tileset. So most of the time, you should probably use the __tilesetDefUid
value from layer instances.
An array of tags to forbid some Entities in this layer
Trait Implementations
impl<'de> Deserialize<'de> 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>,
Auto Trait Implementations
impl RefUnwindSafe for LayerDef
impl RefUnwindSafe for LayerDef
impl UnwindSafe for LayerDef
impl UnwindSafe for LayerDef
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]