mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
minor refactor
This commit is contained in:
parent
7635fdf807
commit
830e05733f
4 changed files with 64 additions and 50 deletions
|
|
@ -1,7 +1,11 @@
|
|||
#pragma once
|
||||
|
||||
#include <optional>
|
||||
|
||||
#include "interfaces/Serializable.hpp"
|
||||
|
||||
#include "ParticlesPreset.hpp"
|
||||
|
||||
struct WeatherPreset : Serializable {
|
||||
struct {
|
||||
/// @brief Precipitation texture
|
||||
|
|
@ -14,6 +18,8 @@ struct WeatherPreset : Serializable {
|
|||
float hspeed = 0.1f;
|
||||
/// @brief UV scaling
|
||||
float scale = 0.1f;
|
||||
/// @brief Fall splash
|
||||
std::optional<ParticlesPreset> splash;
|
||||
} fall {};
|
||||
|
||||
dv::value serialize() const override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue