mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Some work-in-progress in hp and mobs and a frightening amount of random fixes.
This commit is contained in:
parent
3c61d57f6d
commit
c638442e78
40 changed files with 1837 additions and 920 deletions
|
@ -48,17 +48,23 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
13: (dev) Mapgen v2
|
||||
14: (dev) NodeMetadata
|
||||
15: (dev) StaticObjects
|
||||
16: (dev) larger maximum size of node metadata, and compression
|
||||
*/
|
||||
// This represents an uninitialized or invalid format
|
||||
#define SER_FMT_VER_INVALID 255
|
||||
// Highest supported serialization version
|
||||
#define SER_FMT_VER_HIGHEST 15
|
||||
#define SER_FMT_VER_HIGHEST 16
|
||||
// Lowest supported serialization version
|
||||
#define SER_FMT_VER_LOWEST 0
|
||||
|
||||
#define ser_ver_supported(v) (v >= SER_FMT_VER_LOWEST && v <= SER_FMT_VER_HIGHEST)
|
||||
|
||||
void compressZlib(SharedBuffer<u8> data, std::ostream &os);
|
||||
void compressZlib(const std::string &data, std::ostream &os);
|
||||
void decompressZlib(std::istream &is, std::ostream &os);
|
||||
|
||||
void compress(SharedBuffer<u8> data, std::ostream &os, u8 version);
|
||||
//void compress(const std::string &data, std::ostream &os, u8 version);
|
||||
void decompress(std::istream &is, std::ostream &os, u8 version);
|
||||
|
||||
/*class Serializable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue