summaryrefslogtreecommitdiff
path: root/src/nodedef.h
diff options
context:
space:
mode:
authorFoghrye4 <foghrye4@gmail.com>2016-11-14 18:09:59 +0400
committerZeno- <kde.psych@gmail.com>2016-11-15 00:09:59 +1000
commit93e3555eae2deaeca69ee252cfa9cc9c3e0e49ef (patch)
tree9b9b665b97c01f0b281652a85088b336cc4cefde /src/nodedef.h
parent649448a2a91fbf3e944b2f2e739f4e2292af1df0 (diff)
downloadminetest-93e3555eae2deaeca69ee252cfa9cc9c3e0e49ef.tar.gz
minetest-93e3555eae2deaeca69ee252cfa9cc9c3e0e49ef.tar.bz2
minetest-93e3555eae2deaeca69ee252cfa9cc9c3e0e49ef.zip
Adding particle blend, glow and animation (#4705)
Diffstat (limited to 'src/nodedef.h')
-rw-r--r--src/nodedef.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nodedef.h b/src/nodedef.h
index 80396f992..f47517c4a 100644
--- a/src/nodedef.h
+++ b/src/nodedef.h
@@ -161,9 +161,10 @@ enum NodeDrawType
/*
Stand-alone definition of a TileSpec (basically a server-side TileSpec)
*/
-enum TileAnimationType{
- TAT_NONE=0,
- TAT_VERTICAL_FRAMES=1,
+enum AnimationType{
+ AT_NONE = 0,
+ AT_VERTICAL_FRAMES = 1,
+ AT_2D_ANIMATION_SHEET = 2,
};
struct TileDef
{
@@ -172,7 +173,7 @@ struct TileDef
bool tileable_horizontal;
bool tileable_vertical;
struct{
- enum TileAnimationType type;
+ enum AnimationType type;
int aspect_w; // width for aspect ratio
int aspect_h; // height for aspect ratio
float length; // seconds
@@ -184,7 +185,7 @@ struct TileDef
backface_culling = true;
tileable_horizontal = true;
tileable_vertical = true;
- animation.type = TAT_NONE;
+ animation.type = AT_NONE;
animation.aspect_w = 1;
animation.aspect_h = 1;
animation.length = 1.0;