#pragma once #include #include #include #include #include namespace floormat { struct anim_frame final { Vector2i ground; Vector2ui offset, size; }; enum class anim_direction : unsigned char { N, NE, E, SE, S, SW, W, NW, COUNT, }; struct anim_group final { String name; std::vector frames; Vector2ui ground; Vector3b offset; }; struct anim_def final { static constexpr int default_fps = 24; String object_name, anim_name; std::vector groups; Vector2ui pixel_size; std::size_t nframes = 0, width = 0, height = 0, fps = default_fps, actionframe = 0; }; } // namespace floormat