54 if (opt0 != 0 && opt0 <= UINT16_MAX)
56 if (opt1 != 0 && opt1 <= UINT16_MAX)
58 if (opt2 != 0 && opt2 <= UINT16_MAX)
60 if (opt3 != 0 && opt3 <= UINT16_MAX)
67 node.
attribute(
"start-message", effect.start.message);
68 node.
attribute(
"start-audio", effect.start.sfx);
69 node.
attribute(
"start-particle", effect.start.particleEffect);
73 if (effect.start.particleEffect.empty())
74 node.
attribute(
"particle", effect.start.particleEffect);
76 node.
attribute(
"end-message", effect.end.message);
77 node.
attribute(
"end-audio", effect.end.sfx);
78 node.
attribute(
"end-particle", effect.end.particleEffect);
81 node.
attribute(
"persistent-particle-effect", effect.persistentParticleEffect);
static OptionsMap mOpt3ToIdMap
static OptionsMap mOpt1ToIdMap
static std::map< int, StatusEffect > mStatusEffects
std::map< uint16_t, int > OptionsMap
static OptionsMap mOpt0ToIdMap
static void checkStatus()
static OptionsMap mOpt2ToIdMap
static const StatusEffect * getStatusEffect(int id)
Retrieves a status effect.
static void readStatusEffectNode(XML::Node node, const std::string &filename)
int getProperty(const char *name, int def) const
bool attribute(const char *name, T &value) const