aboutsummaryrefslogtreecommitdiff
path: root/scene/resources/tile_set.h
diff options
context:
space:
mode:
authorPieter-Jan Briers2018-02-17 11:58:07 +0100
committerPJB30052018-05-01 17:24:57 +0200
commit20dd2204db11339dfcadacbee32675ca7f6490e5 (patch)
tree8b7f375739e1e592f6adc8f457e7323a1c234248 /scene/resources/tile_set.h
parentb6a7c5693f13c40b381e5e6efa255fe723742311 (diff)
downloadgodot-20dd2204db11339dfcadacbee32675ca7f6490e5.tar.gz
godot-20dd2204db11339dfcadacbee32675ca7f6490e5.tar.zst
godot-20dd2204db11339dfcadacbee32675ca7f6490e5.zip
Adds z-index properties to TileSets.
Diffstat (limited to 'scene/resources/tile_set.h')
-rw-r--r--scene/resources/tile_set.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/scene/resources/tile_set.h b/scene/resources/tile_set.h
index 706d04998..d5704ac9a 100644
--- a/scene/resources/tile_set.h
+++ b/scene/resources/tile_set.h
@@ -113,11 +113,13 @@ private:
Color modulate;
TileMode tile_mode;
AutotileData autotile_data;
+ int z_index;
// Default modulate for back-compat
explicit TileData() :
tile_mode(SINGLE_TILE),
- modulate(1, 1, 1) {}
+ modulate(1, 1, 1),
+ z_index(0) {}
};
Map<int, TileData> tile_map;
@@ -220,6 +222,9 @@ public:
Ref<NavigationPolygon> autotile_get_navigation_polygon(int p_id, const Vector2 &p_coord) const;
const Map<Vector2, Ref<NavigationPolygon> > &autotile_get_navigation_map(int p_id) const;
+ void tile_set_z_index(int p_id, int p_z_index);
+ int tile_get_z_index(int p_id) const;
+
void remove_tile(int p_id);
bool has_tile(int p_id) const;