Struct Component2D

ClassList > Component2D

An entity component tagged union - there are a fixed number built into the engine.

  • #include <Entities.h>

Public Attributes

Type Name
union Component2D data
struct DynamicCollider dynamicCollider
struct Sprite sprite
struct AnimatedSprite spriteAnimator
struct StaticCollider staticCollider
struct TextSprite textSprite
enum ComponentType type

Public Attributes Documentation

variable data

union Component2D Component2D::data;

variable dynamicCollider

struct DynamicCollider Component2D::dynamicCollider;

variable sprite

struct Sprite Component2D::sprite;

variable spriteAnimator

struct AnimatedSprite Component2D::spriteAnimator;

variable staticCollider

struct StaticCollider Component2D::staticCollider;

variable textSprite

struct TextSprite Component2D::textSprite;

variable type

enum ComponentType Component2D::type;


The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/engine/include/Entities.h