Stardew Engine
Loading...
Searching...
No Matches
Component2D Struct Reference

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

#include <Entities.h>

Collaboration diagram for Component2D:

Data Fields

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

Detailed Description

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

Field Documentation

◆ [union]

union { ... } Component2D::data

◆ dynamicCollider

struct DynamicCollider Component2D::dynamicCollider

◆ sprite

struct Sprite Component2D::sprite

◆ spriteAnimator

struct AnimatedSprite Component2D::spriteAnimator

◆ staticCollider

struct StaticCollider Component2D::staticCollider

◆ textSprite

struct TextSprite Component2D::textSprite

◆ type

enum ComponentType Component2D::type

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