add WeatherPreset

This commit is contained in:
MihailRis 2025-02-10 00:50:41 +03:00
parent 787011d164
commit 35cf07b0f0
3 changed files with 99 additions and 46 deletions

View file

@ -0,0 +1,19 @@
#pragma once
#include "interfaces/Serializable.hpp"
struct WeatherPreset : Serializable {
struct {
/// @brief Precipitation texture
std::string texture;
/// @brief Vertical speed
float vspeed = 1.0f;
/// @brief Max horizontal speed
float hspeed = 0.1f;
/// @brief UV scaling
float scale = 0.1f;
} fall {};
dv::value serialize() const override;
void deserialize(const dv::value& src) override;
};