|
MochiEngine
|
This AnimationFactory takes Aseprites spritesheet export format and automatically generates all needed animation data for that spritesheet. More...
#include <AsepriteAnimationFactory.h>
Public Member Functions | |
| AsepriteAnimationFactory (FS::PackCatalog *) | |
| virtual std::shared_ptr< AnimationsData > | GetAnimationsData (const std::string &animationDataPath) override |
| Gets the processed animation data of the file on the input path. | |
| virtual void | DeleteCache () override |
| Deletes the animations cache. This should be safe to call anytime because of the shared pointers. | |
| virtual void | DeleteAnimation (const std::string &texturePath) override |
| Deletes a specific animation in the cache. This should be safe to call anytime because of the shared pointers. | |
This AnimationFactory takes Aseprites spritesheet export format and automatically generates all needed animation data for that spritesheet.
Animation data is expected as a JSON with specific configuration as shown in the image.
|
overridevirtual |
Deletes a specific animation in the cache. This should be safe to call anytime because of the shared pointers.
| texturePath | Path or unique identifier of the file in the file system. |
Implements Mochi::Graphics::IAnimationFactory.
|
overridevirtual |
Deletes the animations cache. This should be safe to call anytime because of the shared pointers.
Implements Mochi::Graphics::IAnimationFactory.
|
overridevirtual |
Gets the processed animation data of the file on the input path.
| animationDataPath | Path or unique identifier of the file containing the animation data in the file system. |
Implements Mochi::Graphics::IAnimationFactory.