cmdfx 0.2.1
Lightweight game engine for your terminal
Loading...
Searching...
No Matches
CmdFX::SpriteCostumes Class Referencefinal

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_SpriteCostumesgetSpriteCostumes ()
 
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)
 

Detailed Description

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.


The documentation for this class was generated from the following file: