mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-12 16:58:39 +00:00
Content_mapblock.cpp: Refactor
This commit is contained in:
parent
e7246d3f0d
commit
d4e0c0f9b8
5 changed files with 1358 additions and 2003 deletions
|
@ -166,6 +166,19 @@ enum NodeDrawType
|
|||
NDT_MESH, // Uses static meshes
|
||||
};
|
||||
|
||||
// Mesh options for NDT_PLANTLIKE with CPT2_MESHOPTIONS
|
||||
static const u8 MO_MASK_STYLE = 0x07;
|
||||
static const u8 MO_BIT_RANDOM_OFFSET = 0x08;
|
||||
static const u8 MO_BIT_SCALE_SQRT2 = 0x10;
|
||||
static const u8 MO_BIT_RANDOM_OFFSET_Y = 0x20;
|
||||
enum PlantlikeStyle {
|
||||
PLANT_STYLE_CROSS,
|
||||
PLANT_STYLE_CROSS2,
|
||||
PLANT_STYLE_STAR,
|
||||
PLANT_STYLE_HASH,
|
||||
PLANT_STYLE_HASH2,
|
||||
};
|
||||
|
||||
/*
|
||||
Stand-alone definition of a TileSpec (basically a server-side TileSpec)
|
||||
*/
|
||||
|
@ -364,6 +377,11 @@ struct ContentFeatures
|
|||
return (liquid_alternative_flowing == f.liquid_alternative_flowing);
|
||||
}
|
||||
|
||||
int getGroup(const std::string &group) const
|
||||
{
|
||||
return itemgroup_get(groups, group);
|
||||
}
|
||||
|
||||
#ifndef SERVER
|
||||
void fillTileAttribs(ITextureSource *tsrc, TileSpec *tile, TileDef *tiledef,
|
||||
u32 shader_id, bool use_normal_texture, bool backface_culling,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue