diff options
author | sfan5 <sfan5@live.de> | 2016-12-23 14:43:56 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2017-01-02 15:28:06 +0100 |
commit | a07b032245bef76a7695e139a9daca7cb646a73d (patch) | |
tree | b1c5117b19f8a00c396b75bef11925927b082995 /src/tileanimation.h | |
parent | 7057c196c442ff3484b53f48d940f4c9e0ffe23a (diff) | |
download | minetest-a07b032245bef76a7695e139a9daca7cb646a73d.tar.gz minetest-a07b032245bef76a7695e139a9daca7cb646a73d.tar.bz2 minetest-a07b032245bef76a7695e139a9daca7cb646a73d.zip |
Add 2D sheet animation for nodes
Diffstat (limited to 'src/tileanimation.h')
-rw-r--r-- | src/tileanimation.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tileanimation.h b/src/tileanimation.h index d5172ed50..289ce515b 100644 --- a/src/tileanimation.h +++ b/src/tileanimation.h @@ -26,6 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc., enum TileAnimationType { TAT_NONE = 0, TAT_VERTICAL_FRAMES = 1, + TAT_SHEET_2D = 2, }; struct TileAnimationParams { @@ -38,6 +39,11 @@ struct TileAnimationParams { int aspect_h; // height for aspect ratio float length; // seconds } vertical_frames; + struct { + int frames_w; // number of frames left-to-right + int frames_h; // number of frames top-to-bottom + float frame_length; // seconds + } sheet_2d; }; void serialize(std::ostream &os, u16 protocol_version) const; |