MCPcopy Create free account
hub / github.com/17cupsofcoffee/nova / LayerInstance

Class LayerInstance

src/ldtk.rs:115–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113#[derive(Clone, Debug, Deserialize)]
114#[serde(rename_all = "camelCase")]
115pub struct LayerInstance {
116 #[serde(rename = "__cWid")]
117 pub width: i32,
118
119 #[serde(rename = "__cHei")]
120 pub height: i32,
121
122 #[serde(rename = "__gridSize")]
123 pub grid_size: i32,
124
125 #[serde(rename = "__identifier")]
126 pub identifier: String,
127
128 #[serde(rename = "__tilesetDefUid")]
129 pub tileset_def_uid: Option<i32>,
130
131 #[serde(rename = "__tilesetRelPath")]
132 pub tileset_rel_path: Option<String>,
133
134 pub entity_instances: Vec<EntityInstance>,
135
136 pub grid_tiles: Vec<Tile>,
137
138 pub auto_layer_tiles: Vec<Tile>,
139
140 pub int_grid_csv: Vec<i32>,
141}
142
143impl LayerInstance {
144 pub fn get_int_grid(&self) -> impl Iterator<Item = IntGridTile> + '_ {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected