diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-12-12 10:45:31 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-12-12 10:45:31 -0300 |
commit | ec8f0d7eb9a5d5842e54618a4f4f31952a1d1ede (patch) | |
tree | 8762a3fb928f286bfd0fefd5c12d03c0eb3b3eb0 /scene/2d/tile_map.h | |
parent | e19f176765d8daafa2af9cdf1c8e87441c783e63 (diff) | |
download | redot-engine-ec8f0d7eb9a5d5842e54618a4f4f31952a1d1ede.tar.gz |
ability to set occluder mask in tilemap, fixes #3025
Diffstat (limited to 'scene/2d/tile_map.h')
-rw-r--r-- | scene/2d/tile_map.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/2d/tile_map.h b/scene/2d/tile_map.h index 60534cce15..4676d1ef7a 100644 --- a/scene/2d/tile_map.h +++ b/scene/2d/tile_map.h @@ -150,6 +150,8 @@ private: TileOrigin tile_origin; + int occluder_light_mask; + void _fix_cell_transform(Matrix32& xform, const Cell& p_cell, const Vector2 &p_offset, const Size2 &p_sc); Map<PosKey,Quadrant>::Element *_create_quadrant(const PosKey& p_qk); @@ -187,6 +189,7 @@ public: INVALID_CELL=-1 }; + void set_tileset(const Ref<TileSet>& p_tileset); Ref<TileSet> get_tileset() const; @@ -247,6 +250,9 @@ public: void set_y_sort_mode(bool p_enable); bool is_y_sort_mode_enabled() const; + void set_occluder_light_mask(int p_mask); + int get_occluder_light_mask() const; + void clear(); TileMap(); |