ManaPlus
|
#include "utils/itemxmlutils.h"
#include "utils/checkutils.h"
#include "utils/foreach.h"
#include "utils/stringutils.h"
#include "utils/translation/podict.h"
#include "resources/item/itemfieldtype.h"
#include "debug.h"
Go to the source code of this file.
Functions | |
static void | convertSignedValue (std::string &outStr, const std::string &srcStr) |
static bool | readField (ItemFieldInfos::const_iterator it, const xmlNodePtr node, std::string &combined) |
void | readItemStatsString (std::string &effect, const xmlNodePtr node, const ItemFieldInfos &fields) |
void | readItemStatsVector (std::vector< std::string > &effect, const xmlNodePtr node, const ItemFieldInfos &fields) |
|
static |
|
static |
Definition at line 42 of file itemxmlutils.cpp.
References convertSignedValue(), ItemFieldType::description, XML::getProperty(), PoDict::getStr(), ItemFieldType::sign, splitToStringVector(), strprintf(), and translator.
Referenced by readItemStatsString(), and readItemStatsVector().
void readItemStatsString | ( | std::string & | effect, |
const xmlNodePtr | node, | ||
const ItemFieldInfos & | fields | ||
) |
Definition at line 88 of file itemxmlutils.cpp.
References FOR_EACH, readField(), reportAlways, and translator.
Referenced by ItemDB::loadXmlFile().
void readItemStatsVector | ( | std::vector< std::string > & | effect, |
const xmlNodePtr | node, | ||
const ItemFieldInfos & | fields | ||
) |
Definition at line 109 of file itemxmlutils.cpp.
References FOR_EACH, readField(), reportAlways, and translator.
Referenced by ClanDb::loadXmlFile().