diff options
author | Daniel Schadt <kingdread@gmx.de> | 2021-11-10 01:02:04 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2021-11-10 01:02:04 +0100 |
commit | 1e55d46966f8d2908a7809b306d0a87d88e1bc2d (patch) | |
tree | ad551512dd36824157b83951785195a73e735f2f /src/world.rs | |
parent | 1535ad6e39fcdc38f6476a7d3fe29053231e08eb (diff) | |
download | modderbaas-1e55d46966f8d2908a7809b306d0a87d88e1bc2d.tar.gz modderbaas-1e55d46966f8d2908a7809b306d0a87d88e1bc2d.tar.bz2 modderbaas-1e55d46966f8d2908a7809b306d0a87d88e1bc2d.zip |
implement support for multiline descriptions
Key-Value-Stores are not always as easy as every line containing a
key-value pair, there is also the variant that a value spans multiple
lines and is enclosed in """ (e.g. the description of some mods).
This also changes the API slightly, as we want to separate the parsing
code from the code that reads the file. This makes it easier to do
testing or to re-use the code for data that is already in-memory.
Therefore, kvstore::write now takes a writer and kvstore::save provides
the functionality that the old kvstore::write had.
Diffstat (limited to 'src/world.rs')
0 files changed, 0 insertions, 0 deletions