Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
content_nodemeta.cpp File Reference
#include "content_nodemeta.h"
#include "nodemetadata.h"
#include "nodetimer.h"
#include "inventory.h"
#include "log.h"
#include "debug.h"
#include "serialization.h"
#include "util/serialize.h"
#include "util/string.h"
#include "constants.h"
#include <sstream>
+ Include dependency graph for content_nodemeta.cpp:

Macros

#define NODEMETA_GENERIC   1
 
#define NODEMETA_SIGN   14
 
#define NODEMETA_CHEST   15
 
#define NODEMETA_FURNACE   16
 
#define NODEMETA_LOCKABLE_CHEST   17
 

Functions

static bool content_nodemeta_deserialize_legacy_body (std::istream &is, s16 id, NodeMetadata *meta)
 
static bool content_nodemeta_deserialize_legacy_meta (std::istream &is, NodeMetadata *meta)
 
void content_nodemeta_deserialize_legacy (std::istream &is, NodeMetadataList *meta, NodeTimerList *timers, IItemDefManager *item_def_mgr)
 

Macro Definition Documentation

◆ NODEMETA_CHEST

#define NODEMETA_CHEST   15

◆ NODEMETA_FURNACE

#define NODEMETA_FURNACE   16

◆ NODEMETA_GENERIC

#define NODEMETA_GENERIC   1

◆ NODEMETA_LOCKABLE_CHEST

#define NODEMETA_LOCKABLE_CHEST   17

◆ NODEMETA_SIGN

#define NODEMETA_SIGN   14

Function Documentation

◆ content_nodemeta_deserialize_legacy()

void content_nodemeta_deserialize_legacy ( std::istream & is,
NodeMetadataList * meta,
NodeTimerList * timers,
IItemDefManager * item_def_mgr )

References NodeMetadataList::clear(), NodeTimerList::clear(), content_nodemeta_deserialize_legacy_meta(), FUNCTION_NAME, NodeMetadataList::get(), infostream, MAP_BLOCKSIZE, p(), readU16(), NodeMetadataList::set(), NodeTimerList::set(), and warningstream.

Referenced by MapBlock::deSerialize(), and MapBlock::deSerialize_pre22().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ content_nodemeta_deserialize_legacy_body()

static bool content_nodemeta_deserialize_legacy_body ( std::istream & is,
s16 id,
NodeMetadata * meta )
static

References NodeMetadata::clear(), Inventory::deSerialize(), deSerializeString16(), deSerializeString32(), ftos(), NodeMetadata::getInventory(), Inventory::getList(), SimpleMetadata::getString(), NODEMETA_CHEST, NODEMETA_FURNACE, NODEMETA_GENERIC, NODEMETA_LOCKABLE_CHEST, NODEMETA_SIGN, readU32(), readU8(), InventoryList::setName(), and SimpleMetadata::setString().

Referenced by content_nodemeta_deserialize_legacy_meta().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ content_nodemeta_deserialize_legacy_meta()

static bool content_nodemeta_deserialize_legacy_meta ( std::istream & is,
NodeMetadata * meta )
static

References content_nodemeta_deserialize_legacy_body(), deSerializeString16(), and readS16().

Referenced by content_nodemeta_deserialize_legacy().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: