#ifndef SERVER
#include "client/tile.h"
#include "shader.h"
+#include <IMeshManipulator.h>
class Client;
#endif
#include "itemgroup.h"
NDT_GLASSLIKE_FRAMED_OPTIONAL,
// Uses static meshes
NDT_MESH,
+ // Combined plantlike-on-solid
+ NDT_PLANTLIKE_ROOTED,
};
// Mesh options for NDT_PLANTLIKE with CPT2_MESHOPTIONS
struct TileDef
{
- std::string name;
- bool backface_culling; // Takes effect only in special cases
- bool tileable_horizontal;
- bool tileable_vertical;
+ std::string name = "";
+ bool backface_culling = true; // Takes effect only in special cases
+ bool tileable_horizontal = true;
+ bool tileable_vertical = true;
//! If true, the tile has its own color.
- bool has_color;
+ bool has_color = false;
//! The color of the tile.
- video::SColor color;
+ video::SColor color = video::SColor(0xFFFFFFFF);
struct TileAnimationParams animation;
- TileDef() :
- name(""),
- backface_culling(true),
- tileable_horizontal(true),
- tileable_vertical(true),
- has_color(false),
- color(video::SColor(0xFFFFFFFF))
+ TileDef()
{
animation.type = TAT_NONE;
}
virtual void serialize(std::ostream &os, u16 protocol_version) const=0;
- virtual bool getNodeRegistrationStatus() const=0;
-
virtual void pendNodeResolve(NodeResolver *nr)=0;
virtual bool cancelNodeResolveCallback(NodeResolver *nr)=0;
virtual bool nodeboxConnects(const MapNode from, const MapNode to, u8 connect_face)=0;
virtual void serialize(std::ostream &os, u16 protocol_version) const=0;
virtual void deSerialize(std::istream &is)=0;
- virtual bool getNodeRegistrationStatus() const=0;
virtual void setNodeRegistrationStatus(bool completed)=0;
virtual void pendNodeResolve(NodeResolver *nr)=0;
void nodeResolveInternal();
- u32 m_nodenames_idx;
- u32 m_nnlistsizes_idx;
+ u32 m_nodenames_idx = 0;
+ u32 m_nnlistsizes_idx = 0;
std::vector<std::string> m_nodenames;
std::vector<size_t> m_nnlistsizes;
- INodeDefManager *m_ndef;
- bool m_resolve_done;
+ INodeDefManager *m_ndef = nullptr;
+ bool m_resolve_done = false;
};
#endif