![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Stores the metadata of all peoplemon moves. More...
#include <MoveDB.hpp>
Public Member Functions | |
bool | load () |
Loads the moves from the data 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 | save () const |
Saves the moves to the data file. 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::MoveId, std::string > | names |
std::unordered_map< pplmn::MoveId, std::string > | descriptions |
std::unordered_map< pplmn::MoveId, pplmn::Type > | types |
std::unordered_map< pplmn::MoveId, std::int32_t > | damages |
std::unordered_map< pplmn::MoveId, std::int32_t > | accuracies |
std::unordered_map< pplmn::MoveId, std::int32_t > | priorities |
std::unordered_map< pplmn::MoveId, std::uint32_t > | pps |
std::unordered_map< pplmn::MoveId, bool > | contactors |
std::unordered_map< pplmn::MoveId, bool > | specials |
std::unordered_map< pplmn::MoveId, pplmn::MoveEffect > | effects |
std::unordered_map< pplmn::MoveId, std::int32_t > | effectChances |
std::unordered_map< pplmn::MoveId, std::int32_t > | effectIntensities |
std::unordered_map< pplmn::MoveId, bool > | effectSelves |
Stores the metadata of all peoplemon moves.
Definition at line 22 of file MoveDB.hpp.
bool core::file::MoveDB::load | ( | ) |
Loads the moves from the data file.
Definition at line 12 of file MoveDB.cpp.
bool core::file::MoveDB::loadDev | ( | std::istream & | input | ) |
Loads the database from its json format.
input | The input stream to load from |
Definition at line 14 of file MoveDB.cpp.
bool core::file::MoveDB::loadProd | ( | bl::serial::binary::InputStream & | input | ) |
Loads the database from its json format.
input | The input stream to load from |
Definition at line 18 of file MoveDB.cpp.
bool core::file::MoveDB::save | ( | ) | const |
Saves the moves to the data file.
Definition at line 22 of file MoveDB.cpp.
bool core::file::MoveDB::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 27 of file MoveDB.cpp.
std::unordered_map<pplmn::MoveId, std::int32_t> core::file::MoveDB::accuracies |
Definition at line 67 of file MoveDB.hpp.
std::unordered_map<pplmn::MoveId, bool> core::file::MoveDB::contactors |
Definition at line 70 of file MoveDB.hpp.
std::unordered_map<pplmn::MoveId, std::int32_t> core::file::MoveDB::damages |
Definition at line 66 of file MoveDB.hpp.
std::unordered_map<pplmn::MoveId, std::string> core::file::MoveDB::descriptions |
Definition at line 64 of file MoveDB.hpp.
std::unordered_map<pplmn::MoveId, std::int32_t> core::file::MoveDB::effectChances |
Definition at line 73 of file MoveDB.hpp.
std::unordered_map<pplmn::MoveId, std::int32_t> core::file::MoveDB::effectIntensities |
Definition at line 74 of file MoveDB.hpp.
std::unordered_map<pplmn::MoveId, pplmn::MoveEffect> core::file::MoveDB::effects |
Definition at line 72 of file MoveDB.hpp.
std::unordered_map<pplmn::MoveId, bool> core::file::MoveDB::effectSelves |
Definition at line 75 of file MoveDB.hpp.
std::unordered_map<pplmn::MoveId, std::string> core::file::MoveDB::names |
Definition at line 63 of file MoveDB.hpp.
std::unordered_map<pplmn::MoveId, std::uint32_t> core::file::MoveDB::pps |
Definition at line 69 of file MoveDB.hpp.
std::unordered_map<pplmn::MoveId, std::int32_t> core::file::MoveDB::priorities |
Definition at line 68 of file MoveDB.hpp.
std::unordered_map<pplmn::MoveId, bool> core::file::MoveDB::specials |
Definition at line 71 of file MoveDB.hpp.
std::unordered_map<pplmn::MoveId, pplmn::Type> core::file::MoveDB::types |
Definition at line 65 of file MoveDB.hpp.