summaryrefslogtreecommitdiff
path: root/src/nodedef.h
diff options
context:
space:
mode:
authornumber Zero <silverunicorn2011@yandex.ru>2017-02-13 19:31:43 +0300
committerparamat <mat.gregory@virginmedia.com>2017-03-20 20:28:22 +0000
commitd4e0c0f9b818120286369b33b1bdb5eb6ece7a83 (patch)
tree3ed6ca31234a35f8f445a078a38b7977f759814b /src/nodedef.h
parente7246d3f0deed22f7d81e8988f656c594720d672 (diff)
downloadminetest-d4e0c0f9b818120286369b33b1bdb5eb6ece7a83.tar.gz
minetest-d4e0c0f9b818120286369b33b1bdb5eb6ece7a83.tar.bz2
minetest-d4e0c0f9b818120286369b33b1bdb5eb6ece7a83.zip
Content_mapblock.cpp: Refactor
Diffstat (limited to 'src/nodedef.h')
-rw-r--r--src/nodedef.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/nodedef.h b/src/nodedef.h
index 6275b41ce..4a9908ecc 100644
--- a/src/nodedef.h
+++ b/src/nodedef.h
@@ -166,6 +166,19 @@ enum NodeDrawType
NDT_MESH, // Uses static meshes
};
+// Mesh options for NDT_PLANTLIKE with CPT2_MESHOPTIONS
+static const u8 MO_MASK_STYLE = 0x07;
+static const u8 MO_BIT_RANDOM_OFFSET = 0x08;
+static const u8 MO_BIT_SCALE_SQRT2 = 0x10;
+static const u8 MO_BIT_RANDOM_OFFSET_Y = 0x20;
+enum PlantlikeStyle {
+ PLANT_STYLE_CROSS,
+ PLANT_STYLE_CROSS2,
+ PLANT_STYLE_STAR,
+ PLANT_STYLE_HASH,
+ PLANT_STYLE_HASH2,
+};
+
/*
Stand-alone definition of a TileSpec (basically a server-side TileSpec)
*/
@@ -364,6 +377,11 @@ struct ContentFeatures
return (liquid_alternative_flowing == f.liquid_alternative_flowing);
}
+ int getGroup(const std::string &group) const
+ {
+ return itemgroup_get(groups, group);
+ }
+
#ifndef SERVER
void fillTileAttribs(ITextureSource *tsrc, TileSpec *tile, TileDef *tiledef,
u32 shader_id, bool use_normal_texture, bool backface_culling,