![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Data structure that holds the underlaying data for all the peoplemon. More...
#include <PeoplemonDB.hpp>
Public Member Functions | |
bool | save () const |
Saves the database data to the save file. More... | |
bool | load () |
Loads the database data from the save file. More... | |
bool | loadDev (std::istream &input) |
Loads the database from its json format. More... | |
bool | loadProd (bl::serial::binary::InputStream &input) |
Loads the database from its json format. More... | |
bool | saveBundle (bl::serial::binary::OutputStream &output, bl::resource::bundle::FileHandlerContext &ctx) const |
Saves the data from this object to the given bundle and registers depency files if any. More... | |
Public Attributes | |
std::unordered_map< pplmn::Id, std::string > | names |
std::unordered_map< pplmn::Id, std::string > | descriptions |
std::unordered_map< pplmn::Id, pplmn::Type > | types |
std::unordered_map< pplmn::Id, pplmn::SpecialAbility > | abilities |
std::unordered_map< pplmn::Id, pplmn::Stats > | stats |
std::unordered_map< pplmn::Id, std::unordered_set< pplmn::MoveId > > | validMoves |
std::unordered_map< pplmn::Id, std::unordered_map< unsigned int, pplmn::MoveId > > | learnedMoves |
std::unordered_map< pplmn::Id, unsigned int > | evolveLevels |
std::unordered_map< pplmn::Id, pplmn::Id > | evolveIds |
std::unordered_map< pplmn::Id, pplmn::Stats > | evAwards |
std::unordered_map< pplmn::Id, unsigned int > | xpGroups |
std::unordered_map< pplmn::Id, int > | xpMults |
std::unordered_map< pplmn::Id, int > | catchRates |
Data structure that holds the underlaying data for all the peoplemon.
Definition at line 26 of file PeoplemonDB.hpp.
bool core::file::PeoplemonDB::load | ( | ) |
Loads the database data from the save file.
Definition at line 12 of file PeoplemonDB.cpp.
bool core::file::PeoplemonDB::loadDev | ( | std::istream & | input | ) |
Loads the database from its json format.
input | The input stream to load from |
Definition at line 16 of file PeoplemonDB.cpp.
bool core::file::PeoplemonDB::loadProd | ( | bl::serial::binary::InputStream & | input | ) |
Loads the database from its json format.
input | The input stream to load from |
Definition at line 20 of file PeoplemonDB.cpp.
bool core::file::PeoplemonDB::save | ( | ) | const |
Saves the database data to the save file.
Definition at line 24 of file PeoplemonDB.cpp.
bool core::file::PeoplemonDB::saveBundle | ( | bl::serial::binary::OutputStream & | output, |
bl::resource::bundle::FileHandlerContext & | ctx | ||
) | const |
Saves the data from this object to the given bundle and registers depency files if any.
output | Stream to output to |
ctx | Context to register dependencies with |
Definition at line 29 of file PeoplemonDB.cpp.
std::unordered_map<pplmn::Id, pplmn::SpecialAbility> core::file::PeoplemonDB::abilities |
Definition at line 68 of file PeoplemonDB.hpp.
std::unordered_map<pplmn::Id, int> core::file::PeoplemonDB::catchRates |
Definition at line 77 of file PeoplemonDB.hpp.
std::unordered_map<pplmn::Id, std::string> core::file::PeoplemonDB::descriptions |
Definition at line 66 of file PeoplemonDB.hpp.
std::unordered_map<pplmn::Id, pplmn::Stats> core::file::PeoplemonDB::evAwards |
Definition at line 74 of file PeoplemonDB.hpp.
Definition at line 73 of file PeoplemonDB.hpp.
std::unordered_map<pplmn::Id, unsigned int> core::file::PeoplemonDB::evolveLevels |
Definition at line 72 of file PeoplemonDB.hpp.
std::unordered_map<pplmn::Id, std::unordered_map<unsigned int, pplmn::MoveId> > core::file::PeoplemonDB::learnedMoves |
Definition at line 71 of file PeoplemonDB.hpp.
std::unordered_map<pplmn::Id, std::string> core::file::PeoplemonDB::names |
Definition at line 65 of file PeoplemonDB.hpp.
std::unordered_map<pplmn::Id, pplmn::Stats> core::file::PeoplemonDB::stats |
Definition at line 69 of file PeoplemonDB.hpp.
std::unordered_map<pplmn::Id, pplmn::Type> core::file::PeoplemonDB::types |
Definition at line 67 of file PeoplemonDB.hpp.
std::unordered_map<pplmn::Id, std::unordered_set<pplmn::MoveId> > core::file::PeoplemonDB::validMoves |
Definition at line 70 of file PeoplemonDB.hpp.
std::unordered_map<pplmn::Id, unsigned int> core::file::PeoplemonDB::xpGroups |
Definition at line 75 of file PeoplemonDB.hpp.
std::unordered_map<pplmn::Id, int> core::file::PeoplemonDB::xpMults |
Definition at line 76 of file PeoplemonDB.hpp.