Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
TileDef Struct Reference

#include <nodedef.h>

+ Collaboration diagram for TileDef:

Public Member Functions

 TileDef ()
 
void serialize (std::ostream &os, u16 protocol_version) const
 
void deSerialize (std::istream &is, NodeDrawType drawtype, u16 protocol_version)
 

Public Attributes

std::string name = ""
 
bool backface_culling = true
 
bool tileable_horizontal = true
 
bool tileable_vertical = true
 
bool has_color = false
 If true, the tile has its own color.
 
video::SColor color = video::SColor(0xFFFFFFFF)
 The color of the tile.
 
AlignStyle align_style = ALIGN_STYLE_NODE
 
u8 scale = 0
 
struct TileAnimationParams animation
 

Constructor & Destructor Documentation

◆ TileDef()

TileDef::TileDef ( )
inline

Member Function Documentation

◆ deSerialize()

void TileDef::deSerialize ( std::istream & is,
NodeDrawType drawtype,
u16 protocol_version )

◆ serialize()

void TileDef::serialize ( std::ostream & os,
u16 protocol_version ) const

Member Data Documentation

◆ align_style

AlignStyle TileDef::align_style = ALIGN_STYLE_NODE

◆ animation

struct TileAnimationParams TileDef::animation

◆ backface_culling

bool TileDef::backface_culling = true

◆ color

video::SColor TileDef::color = video::SColor(0xFFFFFFFF)

◆ has_color

bool TileDef::has_color = false

If true, the tile has its own color.

Referenced by Minimap::blitMinimapPixelsToImageSurface(), deSerialize(), read_tiledef(), and serialize().

◆ name

◆ scale

u8 TileDef::scale = 0

◆ tileable_horizontal

bool TileDef::tileable_horizontal = true

◆ tileable_vertical

bool TileDef::tileable_vertical = true

The documentation for this struct was generated from the following files: