diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-21 19:37:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-21 19:37:01 +0300 |
commit | 8800940bb4b94f6dab7dcf80bf0abc3e3b09e35f (patch) | |
tree | cac057743c1b48db050dbfdad37809afa728b054 /src/resources/db/statuseffectdb.h | |
parent | 542d2ba78d84e0fa051e0620ccab5fb3a0c711e3 (diff) | |
download | plus-8800940bb4b94f6dab7dcf80bf0abc3e3b09e35f.tar.gz plus-8800940bb4b94f6dab7dcf80bf0abc3e3b09e35f.tar.bz2 plus-8800940bb4b94f6dab7dcf80bf0abc3e3b09e35f.tar.xz plus-8800940bb4b94f6dab7dcf80bf0abc3e3b09e35f.zip |
Add support for using fields from status effects: option, opt1, opt2, opt3.
Diffstat (limited to 'src/resources/db/statuseffectdb.h')
-rw-r--r-- | src/resources/db/statuseffectdb.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/resources/db/statuseffectdb.h b/src/resources/db/statuseffectdb.h index 6e39c9053..64dca44b2 100644 --- a/src/resources/db/statuseffectdb.h +++ b/src/resources/db/statuseffectdb.h @@ -25,12 +25,16 @@ #include "enums/simpletypes/enable.h" +#include <map> #include <string> #include "localconsts.h" class StatusEffect; +typedef std::map<int, int> OptionsMap; +typedef OptionsMap::const_iterator OptionsMapCIter; + namespace StatusEffectDB { /** @@ -57,6 +61,14 @@ namespace StatusEffectDB void loadXmlFile(const std::string &fileName); void unload(); + + const OptionsMap& getOptionMap(); + + const OptionsMap& getOpt1Map(); + + const OptionsMap& getOpt2Map(); + + const OptionsMap& getOpt3Map(); } // namespace StatusEffectDB #endif // RESOURCES_DB_STATUSEFFECTDB_H |