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

Go to the source code of this file.

Classes

class  ObjDef
 
class  ObjDefManager
 

Macros

#define OBJDEF_INVALID_INDEX   ((u32)(-1))
 
#define OBJDEF_INVALID_HANDLE   0
 
#define OBJDEF_HANDLE_SALT   0x00585e6fu
 
#define OBJDEF_MAX_ITEMS   (1 << 18)
 
#define OBJDEF_UID_MASK   ((1 << 7) - 1)
 

Typedefs

typedef u32 ObjDefHandle
 

Enumerations

enum  ObjDefType {
  OBJDEF_GENERIC , OBJDEF_BIOME , OBJDEF_ORE , OBJDEF_DECORATION ,
  OBJDEF_SCHEMATIC
}
 

Macro Definition Documentation

◆ OBJDEF_HANDLE_SALT

#define OBJDEF_HANDLE_SALT   0x00585e6fu

◆ OBJDEF_INVALID_HANDLE

◆ OBJDEF_INVALID_INDEX

◆ OBJDEF_MAX_ITEMS

#define OBJDEF_MAX_ITEMS   (1 << 18)

Referenced by ObjDefManager::addRaw().

◆ OBJDEF_UID_MASK

#define OBJDEF_UID_MASK   ((1 << 7) - 1)

Referenced by ObjDefManager::addRaw().

Typedef Documentation

◆ ObjDefHandle

typedef u32 ObjDefHandle

Enumeration Type Documentation

◆ ObjDefType

enum ObjDefType
Enumerator
OBJDEF_GENERIC 
OBJDEF_BIOME 
OBJDEF_ORE 
OBJDEF_DECORATION 
OBJDEF_SCHEMATIC