From 3a7b069f643eb8660668774dcd1fb2ddd1e0c048 Mon Sep 17 00:00:00 2001 From: David M <PieKing1215@users.noreply.github.com> Date: Sun, 26 Dec 2021 18:24:28 -0500 Subject: [PATCH] Add docs for layer id members --- src/layers.rs | 2 ++ src/objects.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/layers.rs b/src/layers.rs index 955c715..19bb2ce 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 0521923..1329cc9 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, } -- GitLab