| 188 | #[derive(Clone, Debug, Deserialize)] |
| 189 | #[serde(rename_all = "camelCase")] |
| 190 | pub struct EntityInstance { |
| 191 | #[serde(rename = "__grid")] |
| 192 | #[serde(deserialize_with = "deserialize_ldtk_point")] |
| 193 | pub grid: IVec2, |
| 194 | |
| 195 | pub field_instances: Vec<FieldInstance>, |
| 196 | } |
| 197 | |
| 198 | impl EntityInstance { |
| 199 | pub fn get_field_instance(&self, id: &str) -> Option<&FieldInstance> { |
nothing calls this directly
no outgoing calls
no test coverage detected