]> git.lizzy.rs Git - minetest.git/blobdiff - src/nodedef.h
WoW-style Autorun
[minetest.git] / src / nodedef.h
index 68f6c8c378f3b4d41dace78abb1a8f96009fa8f3..7a84b0316c1df4dbaab48fe7a50043935aefc091 100644 (file)
@@ -63,6 +63,8 @@ enum ContentParamType2
        CPT2_WALLMOUNTED,
        // Block level like FLOWINGLIQUID
        CPT2_LEVELED,
+       // 2D rotation for things like plants
+       CPT2_DEGROTATE,
 };
 
 enum LiquidType
@@ -113,6 +115,8 @@ struct TileDef
 {
        std::string name;
        bool backface_culling; // Takes effect only in special cases
+       bool tileable_horizontal;
+       bool tileable_vertical;
        struct{
                enum TileAnimationType type;
                int aspect_w; // width for aspect ratio
@@ -124,6 +128,8 @@ struct TileDef
        {
                name = "";
                backface_culling = true;
+               tileable_horizontal = true;
+               tileable_vertical = true;
                animation.type = TAT_NONE;
                animation.aspect_w = 1;
                animation.aspect_h = 1;
@@ -194,6 +200,7 @@ struct ContentFeatures
        std::string mesh;
 #ifndef SERVER
        scene::IMesh *mesh_ptr[24];
+       video::SColor minimap_color;
 #endif
        float visual_scale; // Misc. scale parameter
        TileDef tiledef[6];
@@ -202,6 +209,7 @@ struct ContentFeatures
 
        // Post effect color, drawn when the camera is inside the node.
        video::SColor post_effect_color;
+
        // Type of MapNode::param1
        ContentParamType param_type;
        // Type of MapNode::param2
@@ -335,6 +343,11 @@ class IWritableNodeDefManager : public INodeDefManager {
        */
        virtual void updateAliases(IItemDefManager *idef)=0;
 
+       /*
+               Override textures from servers with ones specified in texturepack/override.txt
+       */
+       virtual void applyTextureOverrides(const std::string &override_filepath)=0;
+
        /*
                Update tile textures to latest return values of TextueSource.
        */
@@ -378,4 +391,3 @@ class NodeResolver {
 };
 
 #endif
-