#include "itemstackmetadata.h"#include "util/serialize.h"#include "util/strfnd.h"#include <algorithm>#include <optional>
Include dependency graph for itemstackmetadata.cpp:Macros | |
| #define | DESERIALIZE_START '\x01' |
| #define | DESERIALIZE_KV_DELIM '\x02' |
| #define | DESERIALIZE_PAIR_DELIM '\x03' |
| #define | DESERIALIZE_START_STR "\x01" |
| #define | DESERIALIZE_KV_DELIM_STR "\x02" |
| #define | DESERIALIZE_PAIR_DELIM_STR "\x03" |
| #define | TOOLCAP_KEY "tool_capabilities" |
| #define | WEAR_BAR_KEY "wear_color" |
Functions | |
| static void | sanitize_string (std::string &str) |
| #define DESERIALIZE_KV_DELIM '\x02' |
Referenced by sanitize_string(), and ItemStackMetadata::serialize().
| #define DESERIALIZE_KV_DELIM_STR "\x02" |
Referenced by ItemStackMetadata::deSerialize().
| #define DESERIALIZE_PAIR_DELIM '\x03' |
Referenced by sanitize_string(), and ItemStackMetadata::serialize().
| #define DESERIALIZE_PAIR_DELIM_STR "\x03" |
Referenced by ItemStackMetadata::deSerialize().
| #define DESERIALIZE_START '\x01' |
Referenced by ItemStackMetadata::deSerialize(), sanitize_string(), and ItemStackMetadata::serialize().
| #define DESERIALIZE_START_STR "\x01" |
| #define TOOLCAP_KEY "tool_capabilities" |
| #define WEAR_BAR_KEY "wear_color" |
|
static |
References DESERIALIZE_KV_DELIM, DESERIALIZE_PAIR_DELIM, and DESERIALIZE_START.
Referenced by ItemStackMetadata::setString().
Here is the caller graph for this function: