refactor: move Weather instance to WorldInfo

This commit is contained in:
MihailRis
2025-02-28 18:49:44 +03:00
parent 0ea842580c
commit 9c4db8fa10
9 changed files with 116 additions and 61 deletions
+6
View File
@@ -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);
}
}
};