mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
refactor: move Weather instance to WorldInfo
This commit is contained in:
parent
0ea842580c
commit
9c4db8fa10
9 changed files with 116 additions and 61 deletions
|
|
@ -9,4 +9,10 @@ public:
|
|||
virtual ~Serializable() {}
|
||||
virtual dv::value serialize() const = 0;
|
||||
virtual void deserialize(const dv::value& src) = 0;
|
||||
|
||||
void deserializeOpt(const dv::optionalvalue& opt) {
|
||||
if (opt.ptr) {
|
||||
deserialize(*opt.ptr);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue