Components

A component is a data container that holds specific attributes of an entity.

ComponentDescriptionValues
ButtonDefines entity as a buttonstd::string text
std::string fontFile
unsigned int characterSize
OptionButtonDefines entity as a checkbox buttonstd::pair<double, double> size
SliderDefines entity as a slider buttonstd::pair<double, double> length
std::pair<double, double> size
ButtonRectDefines entity as an input textconst std::pair<int, int> sizeRect
sf::Color color
bool showOutline
SpriteDefines entity as a Spritestd::pair<float, float> size
TextureDefines the texture of an entitystd::string texturePath
std::vector<int> textureRect
TextDefines entity as a textstd::string text
std::string fontFile
unsigned int characterSize
PositionStores positions of an entitystd::vector<std::pair<float, float>> positions
ColorDefines the color of an entity.std::vector<double> color
ShapeDefines entity as shape (rectangle or circle)ShapeType type
std::pair<double, double> size
float radius
SoundDefines a sound at an entitystd::string soundFile
LinkLink an entity to another entityint id