16 return bl::serial::json::Serializer<ItemDB>::deserializeStream(input, *
this);
20 return bl::serial::binary::Serializer<ItemDB>::deserialize(input, *
this);
25 return bl::serial::json::Serializer<ItemDB>::serializeStream(output, *
this, 4, 0);
29 bl::resource::bundle::FileHandlerContext&)
const {
30 return bl::serial::binary::Serializer<ItemDB>::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 save() const
Writes the item metadata 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.
bool loadDev(std::istream &input)
Loads the database from its json format.
bool load()
Loads the item metadata from the data file.
static const std::string & ItemMetadataFile()