![]() |
cmdfx 0.2.1
Lightweight game engine for your terminal
|
A C++ wrapper around a CmdFX_SpriteCostumes struct. More...
#include <costumes.hpp>
Public Member Functions | |
SpriteCostumes (CmdFX_SpriteCostumes *costumes) | |
SpriteCostumes (std::unique_ptr< Sprite > sprite, int count) | |
CmdFX_SpriteCostumes * | getSpriteCostumes () |
int | getCount () |
void | setCostume (int index, char **text, char ***ansi) |
void | setCostume (int index, std::vector< std::string > text, std::vector< std::vector< std::string > > ansi) |
A C++ wrapper around a CmdFX_SpriteCostumes struct.
This class is a wrapper around the CmdFX_SpriteCostumes struct. It provides a constructor and destructor for the sprite costumes, as well as a method to get the sprite costumes. The destructor will free the sprite costumes' memory when the object is destroyed.