Skip to content
Snippets Groups Projects
Unverified Commit 3a7b069f authored by David M's avatar David M
Browse files

Add docs for layer id members

parent 1685c4b8
No related branches found
No related tags found
No related merge requests found
...@@ -54,6 +54,8 @@ pub struct Layer { ...@@ -54,6 +54,8 @@ pub struct Layer {
pub tiles: LayerData, pub tiles: LayerData,
pub properties: Properties, pub properties: Properties,
pub layer_index: u32, 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, pub id: u32,
} }
......
...@@ -20,6 +20,8 @@ pub struct ObjectGroup { ...@@ -20,6 +20,8 @@ pub struct ObjectGroup {
*/ */
pub layer_index: Option<u32>, pub layer_index: Option<u32>,
pub properties: Properties, 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, pub id: u32,
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment