Reimplementing save/load file
This commit is contained in:
parent
260288a1b0
commit
9913eb6c8e
37 changed files with 437 additions and 350 deletions
|
|
@ -4,22 +4,19 @@
|
|||
#include <Helpers/NetworkingObjects/NetObjOrderedList.hpp>
|
||||
#include "../GUIStuff/Elements/TreeListing.hpp"
|
||||
#include "BookmarkListItem.hpp"
|
||||
#include <Helpers/VersionNumber.hpp>
|
||||
|
||||
class World;
|
||||
|
||||
class BookmarkManager {
|
||||
public:
|
||||
BookmarkManager(World& w);
|
||||
void init();
|
||||
void server_init_no_file();
|
||||
void scale_up(const WorldScalar& scaleUpAmount);
|
||||
void setup_list_gui(const std::string& id);
|
||||
void refresh_gui_data();
|
||||
|
||||
template <typename Archive> void save(Archive& a) const {
|
||||
}
|
||||
|
||||
template <typename Archive> void load(Archive& a) {
|
||||
}
|
||||
void save_file(cereal::PortableBinaryOutputArchive& a) const;
|
||||
void load_file(cereal::PortableBinaryInputArchive& a, VersionNumber version);
|
||||
|
||||
NetworkingObjects::NetObjOwnerPtr<BookmarkListItem> bookmarkListRoot;
|
||||
private:
|
||||
|
|
@ -30,5 +27,7 @@ class BookmarkManager {
|
|||
std::string nameToEdit;
|
||||
std::string nameForNew;
|
||||
|
||||
friend class BookmarkListItem;
|
||||
|
||||
World& world;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue