Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
mapnode.h File Reference
#include "irrlichttypes_bloated.h"
#include "light.h"
#include "util/pointer.h"
#include <string>
#include <vector>
+ Include dependency graph for mapnode.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ContentLightingFlags
 
struct  MapNode
 

Macros

#define CONTENT_MAX   UINT16_MAX
 
#define MAX_REGISTERED_CONTENT   0x7fffU
 
#define CONTENT_UNKNOWN   125
 
#define CONTENT_AIR   126
 
#define CONTENT_IGNORE   127
 
#define LIQUID_LEVEL_MASK   0x07
 
#define LIQUID_FLOW_DOWN_MASK   0x08
 
#define LIQUID_LEVEL_MAX   LIQUID_LEVEL_MASK
 
#define LIQUID_LEVEL_SOURCE   (LIQUID_LEVEL_MAX+1)
 
#define LIQUID_INFINITY_MASK   0x80
 
#define LEVELED_MASK   0x7F
 
#define LEVELED_MAX   LEVELED_MASK
 

Typedefs

typedef u16 content_t
 

Enumerations

enum  LightBank { LIGHTBANK_DAY , LIGHTBANK_NIGHT }
 
enum  Rotation {
  ROTATE_0 , ROTATE_90 , ROTATE_180 , ROTATE_270 ,
  ROTATE_RAND
}
 

Macro Definition Documentation

◆ CONTENT_AIR

#define CONTENT_AIR   126

Referenced by CavernsNoise::CavernsNoise(), CavesRandomWalk::CavesRandomWalk(), CavesV6::CavesV6(), MapgenSinglenode::MapgenSinglenode(), MapgenV6::MapgenV6(), MapBlock::actuallyUpdateIsAir(), Map::addNodeAndUpdate(), ServerMap::addNodeAndUpdate(), analyze_block(), Schematic::applyProbabilities(), Schematic::blitToVManip(), CavesRandomWalk::carveRoute(), CavesV6::carveRoute(), NodeDefManager::clear(), content_mapnode_get_name_id_mapping(), NodeDefManager::deSerialize(), MapNode::deSerialize_pre22(), MapblockMeshGenerator::drawFirelikeNode(), MapblockMeshGenerator::drawSolidNode(), MapgenBasic::dustTopNodes(), ModApiEnvBase::findNodesInAreaUnderAir(), DungeonGen::findPlaceForDoor(), DecoSimple::generate(), MapgenV5::generateBaseTerrain(), MapgenBasic::generateBiomes(), CavernsNoise::generateCaverns(), CavesNoiseIntersection::generateCaves(), MapgenV6::generateGround(), MapgenCarpathian::generateTerrain(), MapgenFlat::generateTerrain(), MapgenFractal::generateTerrain(), MapgenV7::generateTerrain(), MapgenValleys::generateTerrain(), MapblockMeshGenerator::getCornerLevel(), MinimapUpdateThread::getMap(), MinimapMapblock::getMinimapNodes(), Server::handleCommand_Interact(), Environment::line_of_sight(), treegen::make_jungletree(), treegen::make_pine_tree(), treegen::make_tree(), CavesRandomWalk::makeCave(), DungeonGen::makeCorridor(), DungeonGen::makeHole(), DungeonGen::makeRoom(), MapgenV6::moveMud(), MapgenV6::placeTreesAndJungleGrass(), VoxelManipulator::print(), Map::removeNodeAndUpdate(), Biome::resolveNodeNames(), Foobar::resolveNodeNames(), Ore::resolveNodeNames(), Schematic::resolveNodeNames(), NodeDefManager::serialize(), MapNode::setLevel(), ClientEnvironment::step(), TEST_CASE(), TestSchematic::testFileSerializeDeserialize(), TestMap::testForEachNodeInArea(), TestVoxelAlgorithms::testLighting(), TestMapNode::testNodeProperties(), TestNodeResolver::testNodeResolving(), TestMapBlock::testSave29(), ServerMap::transformLiquids(), treegen::tree_fruit_placement(), treegen::tree_leaves_placement(), treegen::tree_single_leaves_placement(), treegen::tree_trunk_placement(), and workOnNodes().

◆ CONTENT_IGNORE

#define CONTENT_IGNORE   127

Referenced by BlockPlaceholder::BlockPlaceholder(), CavernsNoise::CavernsNoise(), CavesRandomWalk::CavesRandomWalk(), CavesV6::CavesV6(), CommonParticleParams::CommonParticleParams(), MapBlockMesh::MapBlockMesh(), MapgenBasic::MapgenBasic(), MapgenSinglenode::MapgenSinglenode(), MapgenV6::MapgenV6(), add_area_node_boxes(), LBMContentMapping::addLBM(), NodeDefManager::allocateId(), Client::allocateUnknownNodeId(), analyze_block(), LBMManager::applyLBMs(), RollbackAction::applyRevert(), Schematic::blitToVManip(), Pathfinder::calcCost(), CavesRandomWalk::carveRoute(), NodeDefManager::clear(), content_mapnode_get_name_id_mapping(), VoxelManipulator::copyTo(), correctBlockNodeIds(), NodeDefManager::deSerialize(), MapNode::deSerialize_pre22(), Schematic::deserializeFromMts(), MapblockMeshGenerator::drawFirelikeNode(), MapblockMeshGenerator::drawSolidNode(), MapgenBasic::dustTopNodes(), voxalgo::fill_with_sunlight(), voxalgo::fill_with_sunlight(), MapgenV6::find_stone_level(), Server::findSpawnPos(), MapgenV6::flowMud(), Map::forEachNodeInArea(), DecoSimple::generate(), DungeonGen::generate(), MapgenV5::generateBaseTerrain(), MapgenBasic::generateDungeons(), MapgenV6::generateGround(), MapgenCarpathian::generateTerrain(), MapgenFlat::generateTerrain(), MapgenFractal::generateTerrain(), MapgenV7::generateTerrain(), MapgenValleys::generateTerrain(), getBlockNodeIdMapping(), NodeDefManager::getId(), NodeDefManager::getIds(), MapblockMeshGenerator::getLiquidNeighborhood(), Map::getNode(), MapBlock::getNode(), VoxelManipulator::getNodeNoEx(), VoxelManipulator::getNodeNoExNoEmerge(), getSmoothLightCombined(), getVisibleBrightness(), LocalPlayer::handleAutojump(), Server::handleCommand_Interact(), ParticleManager::handleParticleEvent(), GridNodeContainer::initNode(), voxalgo::is_sunlight_above(), ReflowScan::isLiquidFlowableTo(), Mapgen::isLiquidHorizontallyFlowable(), ModApiEnv::l_dig_node(), LuaVoxelManip::l_get_data(), ModApiEnv::l_place_node(), ModApiEnv::l_punch_node(), treegen::make_jungletree(), treegen::make_pine_tree(), treegen::make_tree(), CavesRandomWalk::makeCave(), MapgenSinglenode::makeChunk(), MapgenV6::makeChunk(), DungeonGen::makeDungeon(), MapgenV6::moveMud(), ScriptApiNode::node_on_receive_fields(), ScriptApiNodemeta::nodemeta_inventory_AllowMove(), ScriptApiNodemeta::nodemeta_inventory_AllowPut(), ScriptApiNodemeta::nodemeta_inventory_AllowTake(), ScriptApiNodemeta::nodemeta_inventory_OnMove(), ScriptApiNodemeta::nodemeta_inventory_OnPut(), ScriptApiNodemeta::nodemeta_inventory_OnTake(), MapgenV6::placeTreesAndJungleGrass(), Mapgen::propagateSunlight(), MapBlock::reallocate(), NodeDefManager::removeNode(), ContentFeatures::reset(), Biome::resolveNodeNames(), Foobar::resolveNodeNames(), Foobaz::resolveNodeNames(), treegen::TreeDef::resolveNodeNames(), ReflowScan::scanColumn(), NodeDefManager::serialize(), NodeDefManager::set(), set_node_in_block(), ParticleSpawner::spawnParticle(), Mapgen::spreadLight(), PlayerSAO::step(), TestMap::testForEachNodeInArea(), TestMapBlock::testLoad20(), TestMapBlock::testLoad29(), TestNodeResolver::testNodeResolving(), TestNodeResolver::testPendingResolveCancellation(), ServerMap::transformLiquids(), treegen::tree_fruit_placement(), treegen::tree_leaves_placement(), treegen::tree_single_leaves_placement(), treegen::tree_trunk_placement(), GameUI::update(), ClientMap::updateDrawList(), Mapgen::updateLiquid(), and Pathfinder::walkDownwards().

◆ CONTENT_MAX

#define CONTENT_MAX   UINT16_MAX

◆ CONTENT_UNKNOWN

◆ LEVELED_MASK

#define LEVELED_MASK   0x7F

◆ LEVELED_MAX

#define LEVELED_MAX   LEVELED_MASK

Referenced by ContentFeatures::reset().

◆ LIQUID_FLOW_DOWN_MASK

#define LIQUID_FLOW_DOWN_MASK   0x08

◆ LIQUID_INFINITY_MASK

#define LIQUID_INFINITY_MASK   0x80

◆ LIQUID_LEVEL_MASK

◆ LIQUID_LEVEL_MAX

◆ LIQUID_LEVEL_SOURCE

#define LIQUID_LEVEL_SOURCE   (LIQUID_LEVEL_MAX+1)

◆ MAX_REGISTERED_CONTENT

#define MAX_REGISTERED_CONTENT   0x7fffU

Typedef Documentation

◆ content_t

typedef u16 content_t

Enumeration Type Documentation

◆ LightBank

enum LightBank
Enumerator
LIGHTBANK_DAY 
LIGHTBANK_NIGHT 

◆ Rotation

enum Rotation
Enumerator
ROTATE_0 
ROTATE_90 
ROTATE_180 
ROTATE_270 
ROTATE_RAND