diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-25 17:39:52 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-25 17:39:52 +0100 |
commit | 33642dd230009231e81b88b237991378b6ca1123 (patch) | |
tree | dab120b002956d33fa0eaa91be1ef8410c559445 /src/anim.hpp | |
parent | 7b756134b3a5fd9ca0ec700af0eafac91b5d4ee7 (diff) |
a
Diffstat (limited to 'src/anim.hpp')
-rw-r--r-- | src/anim.hpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/anim.hpp b/src/anim.hpp index d1f413ae..e505f29f 100644 --- a/src/anim.hpp +++ b/src/anim.hpp @@ -10,8 +10,8 @@ namespace floormat { struct anim_frame final { - Vector2i ground; - Vector2ui offset, size; + Vector2i ground{}; + Vector2ui offset{}, size{}; }; enum class anim_direction : unsigned char @@ -22,11 +22,11 @@ enum class anim_direction : unsigned char struct anim_group final { - String name, mirror_from; - std::vector<anim_frame> frames; - Vector2ui ground; // for use in anim-crop-tool only - Vector2s z_offset, depth_offset; - Vector3b offset; + String name{}, mirror_from{}; + std::vector<anim_frame> frames{}; + Vector2ui ground{}; // for use in anim-crop-tool only + Vector2s z_offset{}, depth_offset{}; + Vector3b offset{}; }; enum class anim_scale_type : unsigned char { invalid, ratio, fixed, }; @@ -53,9 +53,9 @@ struct anim_scale final struct anim_def final { - String object_name, anim_name; - std::vector<anim_group> groups; - Vector2ui pixel_size; + String object_name{}, anim_name{}; + std::vector<anim_group> groups{}; + Vector2ui pixel_size{}; anim_scale scale = anim_scale::ratio{1}; size_t nframes = 0, fps = 0, action_frame = 0, action_frame2 = 0; }; |