Reimplementing save/load file
This commit is contained in:
parent
260288a1b0
commit
9913eb6c8e
37 changed files with 437 additions and 350 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include <Helpers/ConvertVec.hpp>
|
||||
#include <Helpers/NetworkingObjects/NetObjOwnerPtr.hpp>
|
||||
#include <Helpers/Serializers.hpp>
|
||||
#include <Helpers/VersionNumber.hpp>
|
||||
|
||||
class DrawingProgram;
|
||||
class World;
|
||||
|
|
@ -11,13 +12,15 @@ class World;
|
|||
class CanvasTheme {
|
||||
public:
|
||||
CanvasTheme(World& w);
|
||||
void init();
|
||||
void server_init_no_file();
|
||||
SkColor4f get_back_color() const;
|
||||
const SkColor4f& get_tool_front_color() const;
|
||||
void set_back_color(const Vector3f& newBackColor);
|
||||
void register_class();
|
||||
void read_create_message(cereal::PortableBinaryInputArchive& a);
|
||||
void write_create_message(cereal::PortableBinaryOutputArchive& a) const;
|
||||
void save_file(cereal::PortableBinaryOutputArchive& a) const;
|
||||
void load_file(cereal::PortableBinaryInputArchive& a, VersionNumber version);
|
||||
private:
|
||||
void set_tool_front_color(DrawingProgram& drawP);
|
||||
struct BackColor {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue