Grids can be saved in files and used online
This commit is contained in:
parent
0c0d7d8439
commit
52de64907a
14 changed files with 122 additions and 42 deletions
|
|
@ -10,6 +10,16 @@ class GridManager {
|
|||
|
||||
ServerClientID add_default_grid(const std::string& newName);
|
||||
|
||||
template <typename Archive> void save(Archive& a) const {
|
||||
a(grids);
|
||||
}
|
||||
|
||||
template <typename Archive> void load(Archive& a) {
|
||||
a(grids);
|
||||
changed = true;
|
||||
}
|
||||
|
||||
void send_grid_info(ServerClientID gridID);
|
||||
void remove_grid(ServerClientID idToRemove);
|
||||
void draw(SkCanvas* canvas, const DrawData& drawData);
|
||||
ClientPortionID get_max_id(ServerPortionID serverID) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue