10 using namespace pplmn;
15 return bl::serial::json::Serializer<MoveDB>::deserializeStream(input, *
this);
19 return bl::serial::binary::Serializer<MoveDB>::deserialize(input, *
this);
24 return bl::serial::json::Serializer<MoveDB>::serializeStream(output, *
this, 4, 0);
28 bl::resource::bundle::FileHandlerContext&)
const {
29 return bl::serial::binary::Serializer<MoveDB>::serialize(output, *
this);
Core classes and functionality for both the editor and game.
bool loadProd(bl::serial::binary::InputStream &input)
Loads the database from its json format.
bool load()
Loads the moves from the data file.
bool loadDev(std::istream &input)
Loads the database from its json format.
bool save() const
Saves the moves to the data file.
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.
static const std::string & MoveDBFile()