1 #ifndef CORE_RESOURCES_WALKANIMATIONS_HPP
2 #define CORE_RESOURCES_WALKANIMATIONS_HPP
4 #include <BLIB/Graphics/Animation2D/AnimationData.hpp>
5 #include <BLIB/Resources.hpp>
6 #include <BLIB/Tilemap/Direction.hpp>
35 return static_cast<std::size_t
>(dir);
62 virtual bool load(
const std::string& path,
const char*, std::size_t, std::istream&,
Core classes and functionality for both the editor and game.
Extension of animation data that loads and combines the animations for each movement direction into a...
bool loadFromDirectory(const std::string &path)
Loads the walking animations from the given directory.
float getMaxStateLength() const
Returns the maximum length of any substate animation in seconds.
static std::size_t getStateFromDirection(bl::tmap::Direction dir)
Maps the movement direction to the state index.
Specialized loader for walking animations.
virtual bool load(const std::string &path, const char *, std::size_t, std::istream &, WalkAnimations &result) override
Loads the walking animations from the given path.