diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-10 21:27:08 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-10 22:17:43 +0100 |
commit | ee1a527191db646850ee919b8fe3a6f8cb6cd693 (patch) | |
tree | a1ff23b8c0f93d689d51d3837caefaa72b9480cd /serialize/anim.hpp | |
parent | 0e23ba9e5a565e34fee0f024e29ce162f420ec22 (diff) |
get rid of std::string
Diffstat (limited to 'serialize/anim.hpp')
-rw-r--r-- | serialize/anim.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/serialize/anim.hpp b/serialize/anim.hpp index fa6b6d22..9d6db66c 100644 --- a/serialize/anim.hpp +++ b/serialize/anim.hpp @@ -1,7 +1,7 @@ #pragma once #include <vector> -#include <string> +#include <Corrade/Containers/String.h> #include <Magnum/Magnum.h> #include <Magnum/Math/Vector2.h> #include <nlohmann/json_fwd.hpp> @@ -22,7 +22,7 @@ enum class anim_direction : unsigned char struct anim_group final { - std::string name; + String name; std::vector<anim_frame> frames; Vector2ui ground; }; @@ -31,7 +31,7 @@ struct anim final { static constexpr int default_fps = 24; - std::string object_name, anim_name; + String object_name, anim_name; std::vector<anim_group> groups; Vector2ui pixel_size; std::size_t nframes = 0, width = 0, height = 0, fps = default_fps, actionframe = 0; |