mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
add WeatherPreset
This commit is contained in:
parent
787011d164
commit
35cf07b0f0
3 changed files with 99 additions and 46 deletions
19
src/presets/WeatherPreset.hpp
Normal file
19
src/presets/WeatherPreset.hpp
Normal 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;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue