diff options
author | Carl Olsson <carl.olsson@gmail.com> | 2015-02-22 07:38:06 +1000 |
---|---|---|
committer | Carl Olsson <carl.olsson@gmail.com> | 2015-02-22 07:38:06 +1000 |
commit | 41686d5fdd0d72f167894f976d19b177789f1f63 (patch) | |
tree | b8ebdbd9846f54241d23f99304df29dcc6ac4dcf /scene/2d/tile_map.h | |
parent | 402db5bd79bf889fca33b89cb083feb24effc614 (diff) | |
parent | 1d7337ba10ad593f0786d3e356cf0b05aa9be2b4 (diff) |
Merge branch 'master' of https://github.com/okamstudio/godot into snapping2
Diffstat (limited to 'scene/2d/tile_map.h')
-rw-r--r-- | scene/2d/tile_map.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/2d/tile_map.h b/scene/2d/tile_map.h index c8708e1bed..fe1067fc1d 100644 --- a/scene/2d/tile_map.h +++ b/scene/2d/tile_map.h @@ -86,6 +86,7 @@ private: int32_t id:24; bool flip_h:1; bool flip_v:1; + bool transpose:1; }; uint32_t _u32t; @@ -168,10 +169,11 @@ public: void set_center_y(bool p_enable); bool get_center_y() const; - void set_cell(int p_x,int p_y,int p_tile,bool p_flip_x=false,bool p_flip_y=false); + void set_cell(int p_x,int p_y,int p_tile,bool p_flip_x=false,bool p_flip_y=false,bool p_transpose=false); int get_cell(int p_x,int p_y) const; bool is_cell_x_flipped(int p_x,int p_y) const; bool is_cell_y_flipped(int p_x,int p_y) const; + bool is_cell_transposed(int p_x,int p_y) const; Rect2 get_item_rect() const; |