Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
nodedef.h File Reference
#include "irrlichttypes_bloated.h"
#include <string>
#include <iostream>
#include <map>
#include "mapnode.h"
#include "nameidmapping.h"
#include "itemgroup.h"
#include "sound.h"
#include "constants.h"
#include "texture_override.h"
#include "tileanimation.h"
#include "util/pointabilities.h"
+ Include dependency graph for nodedef.h:

Go to the source code of this file.

Classes

struct  NodeBoxConnected
 
struct  NodeBox
 
class  TextureSettings
 
struct  TileDef
 
struct  ContentFeatures
 
class  NodeDefManager
 This class is for getting the actual properties of nodes from their content ID. More...
 
class  NodeResolver
 

Macros

#define CF_SPECIAL_COUNT   6
 

Enumerations

enum  ContentParamType : u8 { CPT_NONE , CPT_LIGHT , ContentParamType_END }
 
enum  ContentParamType2 : u8 {
  CPT2_NONE , CPT2_FULL , CPT2_FLOWINGLIQUID , CPT2_FACEDIR ,
  CPT2_WALLMOUNTED , CPT2_LEVELED , CPT2_DEGROTATE , CPT2_MESHOPTIONS ,
  CPT2_COLOR , CPT2_COLORED_FACEDIR , CPT2_COLORED_WALLMOUNTED , CPT2_GLASSLIKE_LIQUID_LEVEL ,
  CPT2_COLORED_DEGROTATE , CPT2_4DIR , CPT2_COLORED_4DIR , ContentParamType2_END
}
 
enum  LiquidType : u8 { LIQUID_NONE , LIQUID_FLOWING , LIQUID_SOURCE , LiquidType_END }
 
enum  NodeBoxType : u8 {
  NODEBOX_REGULAR , NODEBOX_FIXED , NODEBOX_WALLMOUNTED , NODEBOX_LEVELED ,
  NODEBOX_CONNECTED
}
 
enum  LeavesStyle { LEAVES_FANCY , LEAVES_SIMPLE , LEAVES_OPAQUE }
 
enum  AutoScale : u8 { AUTOSCALE_DISABLE , AUTOSCALE_ENABLE , AUTOSCALE_FORCE }
 
enum  WorldAlignMode : u8 { WORLDALIGN_DISABLE , WORLDALIGN_ENABLE , WORLDALIGN_FORCE , WORLDALIGN_FORCE_NODEBOX }
 
enum  NodeDrawType : u8 {
  NDT_NORMAL , NDT_AIRLIKE , NDT_LIQUID , NDT_FLOWINGLIQUID ,
  NDT_GLASSLIKE , NDT_ALLFACES , NDT_ALLFACES_OPTIONAL , NDT_TORCHLIKE ,
  NDT_SIGNLIKE , NDT_PLANTLIKE , NDT_FENCELIKE , NDT_RAILLIKE ,
  NDT_NODEBOX , NDT_GLASSLIKE_FRAMED , NDT_FIRELIKE , NDT_GLASSLIKE_FRAMED_OPTIONAL ,
  NDT_MESH , NDT_PLANTLIKE_ROOTED , NodeDrawType_END
}
 
enum  PlantlikeStyle {
  PLANT_STYLE_CROSS , PLANT_STYLE_CROSS2 , PLANT_STYLE_STAR , PLANT_STYLE_HASH ,
  PLANT_STYLE_HASH2
}
 
enum  AlignStyle : u8 { ALIGN_STYLE_NODE , ALIGN_STYLE_WORLD , ALIGN_STYLE_USER_DEFINED , AlignStyle_END }
 
enum  AlphaMode : u8 {
  ALPHAMODE_BLEND , ALPHAMODE_CLIP , ALPHAMODE_OPAQUE , ALPHAMODE_LEGACY_COMPAT ,
  AlphaMode_END
}
 

Functions

NodeDefManagercreateNodeDefManager ()
 

Variables

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
 

Macro Definition Documentation

◆ CF_SPECIAL_COUNT

Enumeration Type Documentation

◆ AlignStyle

enum AlignStyle : u8
Enumerator
ALIGN_STYLE_NODE 
ALIGN_STYLE_WORLD 
ALIGN_STYLE_USER_DEFINED 
AlignStyle_END 

◆ AlphaMode

enum AlphaMode : u8
Enumerator
ALPHAMODE_BLEND 
ALPHAMODE_CLIP 
ALPHAMODE_OPAQUE 
ALPHAMODE_LEGACY_COMPAT 
AlphaMode_END 

◆ AutoScale

enum AutoScale : u8
Enumerator
AUTOSCALE_DISABLE 
AUTOSCALE_ENABLE 
AUTOSCALE_FORCE 

◆ ContentParamType

enum ContentParamType : u8
Enumerator
CPT_NONE 
CPT_LIGHT 
ContentParamType_END 

◆ ContentParamType2

enum ContentParamType2 : u8
Enumerator
CPT2_NONE 
CPT2_FULL 
CPT2_FLOWINGLIQUID 
CPT2_FACEDIR 
CPT2_WALLMOUNTED 
CPT2_LEVELED 
CPT2_DEGROTATE 
CPT2_MESHOPTIONS 
CPT2_COLOR 
CPT2_COLORED_FACEDIR 
CPT2_COLORED_WALLMOUNTED 
CPT2_GLASSLIKE_LIQUID_LEVEL 
CPT2_COLORED_DEGROTATE 
CPT2_4DIR 
CPT2_COLORED_4DIR 
ContentParamType2_END 

◆ LeavesStyle

Enumerator
LEAVES_FANCY 
LEAVES_SIMPLE 
LEAVES_OPAQUE 

◆ LiquidType

enum LiquidType : u8
Enumerator
LIQUID_NONE 
LIQUID_FLOWING 
LIQUID_SOURCE 
LiquidType_END 

◆ NodeBoxType

enum NodeBoxType : u8
Enumerator
NODEBOX_REGULAR 
NODEBOX_FIXED 
NODEBOX_WALLMOUNTED 
NODEBOX_LEVELED 
NODEBOX_CONNECTED 

◆ NodeDrawType

enum NodeDrawType : u8
Enumerator
NDT_NORMAL 
NDT_AIRLIKE 
NDT_LIQUID 
NDT_FLOWINGLIQUID 
NDT_GLASSLIKE 
NDT_ALLFACES 
NDT_ALLFACES_OPTIONAL 
NDT_TORCHLIKE 
NDT_SIGNLIKE 
NDT_PLANTLIKE 
NDT_FENCELIKE 
NDT_RAILLIKE 
NDT_NODEBOX 
NDT_GLASSLIKE_FRAMED 
NDT_FIRELIKE 
NDT_GLASSLIKE_FRAMED_OPTIONAL 
NDT_MESH 
NDT_PLANTLIKE_ROOTED 
NodeDrawType_END 

◆ PlantlikeStyle

Enumerator
PLANT_STYLE_CROSS 
PLANT_STYLE_CROSS2 
PLANT_STYLE_STAR 
PLANT_STYLE_HASH 
PLANT_STYLE_HASH2 

◆ WorldAlignMode

enum WorldAlignMode : u8
Enumerator
WORLDALIGN_DISABLE 
WORLDALIGN_ENABLE 
WORLDALIGN_FORCE 
WORLDALIGN_FORCE_NODEBOX 

Function Documentation

◆ createNodeDefManager()

NodeDefManager * createNodeDefManager ( )

Referenced by Game::init().

+ Here is the caller graph for this function:

Variable Documentation

◆ MO_BIT_RANDOM_OFFSET

const u8 MO_BIT_RANDOM_OFFSET = 0x08
static

◆ MO_BIT_RANDOM_OFFSET_Y

const u8 MO_BIT_RANDOM_OFFSET_Y = 0x20
static

◆ MO_BIT_SCALE_SQRT2

const u8 MO_BIT_SCALE_SQRT2 = 0x10
static

◆ MO_MASK_STYLE

const u8 MO_MASK_STYLE = 0x07
static