1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

RemotePlayer: Remove Settings writer to Files database

This commit is contained in:
SmallJoker 2020-11-25 20:16:08 +01:00 committed by sfan5
parent b5956bde25
commit 5e9dd1667b
4 changed files with 115 additions and 144 deletions

View file

@ -38,7 +38,14 @@ public:
void listPlayers(std::vector<std::string> &res);
private:
void serialize(std::ostringstream &os, RemotePlayer *player);
void deSerialize(RemotePlayer *p, std::istream &is,
const std::string &playername, PlayerSAO *sao);
/*
serialize() writes a bunch of text that can contain
any characters except a '\0', and such an ending that
deSerialize stops reading exactly at the right point.
*/
void serialize(RemotePlayer *p, std::ostream &os);
std::string m_savedir;
};