+/*
+ Stand-alone definition of a TileSpec (basically a server-side TileSpec)
+*/
+
+struct TileDef
+{
+ std::string name;
+ bool backface_culling; // Takes effect only in special cases
+ bool tileable_horizontal;
+ bool tileable_vertical;
+ //! If true, the tile has its own color.
+ bool has_color;
+ //! The color of the tile.
+ video::SColor color;
+
+ struct TileAnimationParams animation;
+
+ TileDef()
+ {
+ name = "";
+ backface_culling = true;
+ tileable_horizontal = true;
+ tileable_vertical = true;
+ has_color = false;
+ color = video::SColor(0xFFFFFFFF);
+ animation.type = TAT_NONE;
+ }
+
+ void serialize(std::ostream &os, u16 protocol_version) const;
+ void deSerialize(std::istream &is, const u8 contentfeatures_version, const NodeDrawType drawtype);
+};
+