MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / Animation

Method Animation

src/Abyss/Common/Animation.h:21–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20 public:
21 explicit Animation(std::string_view path) : _drawable(path), _frameTime(), _frameIdx(), _animationSpeed(0.5 * (AnimationSpeedUnit)) {}
22 void draw(int x, int y) { _drawable.draw(_frameIdx, x, y); }
23
24 void update(const std::chrono::duration<double> deltaTime) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected