#include <nodedef.h>
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 |
|
inline |
References animation, TAT_NONE, and TileAnimationParams::type.
void TileDef::deSerialize | ( | std::istream & | is, |
NodeDrawType | drawtype, | ||
u16 | protocol_version ) |
References align_style, ALIGN_STYLE_NODE, AlignStyle_END, animation, backface_culling, color, TileAnimationParams::deSerialize(), deSerializeString16(), has_color, name, readU16(), readU8(), scale, TILE_FLAG_BACKFACE_CULLING, TILE_FLAG_HAS_ALIGN_STYLE, TILE_FLAG_HAS_COLOR, TILE_FLAG_HAS_SCALE, TILE_FLAG_TILEABLE_HORIZONTAL, TILE_FLAG_TILEABLE_VERTICAL, tileable_horizontal, and tileable_vertical.
void TileDef::serialize | ( | std::ostream & | os, |
u16 | protocol_version ) const |
References align_style, ALIGN_STYLE_NODE, animation, backface_culling, color, has_color, name, scale, TileAnimationParams::serialize(), serializeString16(), str_starts_with(), TILE_FLAG_BACKFACE_CULLING, TILE_FLAG_HAS_ALIGN_STYLE, TILE_FLAG_HAS_COLOR, TILE_FLAG_HAS_SCALE, TILE_FLAG_TILEABLE_HORIZONTAL, TILE_FLAG_TILEABLE_VERTICAL, tileable_horizontal, tileable_vertical, writeU16(), and writeU8().
AlignStyle TileDef::align_style = ALIGN_STYLE_NODE |
Referenced by deSerialize(), read_tiledef(), and serialize().
struct TileAnimationParams TileDef::animation |
Referenced by TileDef(), deSerialize(), read_tiledef(), and serialize().
bool TileDef::backface_culling = true |
Referenced by deSerialize(), read_tiledef(), and serialize().
video::SColor TileDef::color = video::SColor(0xFFFFFFFF) |
The color of the tile.
Referenced by Minimap::blitMinimapPixelsToImageSurface(), deSerialize(), read_tiledef(), and serialize().
bool TileDef::has_color = false |
If true, the tile has its own color.
Referenced by Minimap::blitMinimapPixelsToImageSurface(), deSerialize(), read_tiledef(), and serialize().
std::string TileDef::name = "" |
Referenced by NodeDefManager::clear(), TestGameDef::defineSomeNodes(), deSerialize(), read_tiledef(), and serialize().
u8 TileDef::scale = 0 |
Referenced by deSerialize(), read_tiledef(), and serialize().
bool TileDef::tileable_horizontal = true |
Referenced by deSerialize(), read_tiledef(), and serialize().
bool TileDef::tileable_vertical = true |
Referenced by deSerialize(), read_tiledef(), and serialize().