diff --git a/src/layers.rs b/src/layers.rs index 955c715cfc78bba7ce223b71340b2540e015e0b4..19bb2ce266f4a97f2f57f9a093eba13eabb8bbbd 100644 --- a/src/layers.rs +++ b/src/layers.rs @@ -54,6 +54,8 @@ pub struct Layer { pub tiles: LayerData, pub properties: Properties, pub layer_index: u32, + /// The ID of the layer, as shown in the editor. + /// Layer ID stays the same even if layers are reordered or modified in the editor. pub id: u32, } diff --git a/src/objects.rs b/src/objects.rs index 05219236d635c0610b01066e55f12bbfb984ef20..1329cc9fa3fbf90309e42c02d9c518867caa7811 100644 --- a/src/objects.rs +++ b/src/objects.rs @@ -20,6 +20,8 @@ pub struct ObjectGroup { */ pub layer_index: Option<u32>, pub properties: Properties, + /// The ID of the layer, as shown in the editor. + /// Layer ID stays the same even if layers are reordered or modified in the editor. pub id: u32, }