| 113 | #[derive(Clone, Debug, Deserialize)] |
| 114 | #[serde(rename_all = "camelCase")] |
| 115 | pub 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 | |
| 143 | impl LayerInstance { |
| 144 | pub fn get_int_grid(&self) -> impl Iterator<Item = IntGridTile> + '_ { |
nothing calls this directly
no outgoing calls
no test coverage detected