diff options
Diffstat (limited to 'scene/2d/tile_map.h')
-rw-r--r-- | scene/2d/tile_map.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scene/2d/tile_map.h b/scene/2d/tile_map.h index ba6de62f8e..c581aa8056 100644 --- a/scene/2d/tile_map.h +++ b/scene/2d/tile_map.h @@ -141,6 +141,8 @@ private: Rect2 rect_cache; bool rect_cache_dirty; + Rect2 used_size_cache; + bool used_size_cache_dirty; bool quadrant_order_dirty; bool y_sort_mode; float fp_adjust; @@ -176,8 +178,6 @@ private: _FORCE_INLINE_ Vector2 _map_to_world(int p_x,int p_y,bool p_ignore_ofs=false) const; - Array get_used_cells() const; - protected: @@ -252,6 +252,9 @@ public: void set_y_sort_mode(bool p_enable); bool is_y_sort_mode_enabled() const; + Array get_used_cells() const; + Rect2 get_used_rect(); // Not const because of cache + void set_occluder_light_mask(int p_mask); int get_occluder_light_mask() const; |