Class: SpriteComponent
Defined in: rendering/components/sprite-component.ts:8
The SpriteComponent class implements the Component interface and represents
a component that contains a Sprite.
Implements
Constructors
Constructor
new SpriteComponent(
sprite,enabled):SpriteComponent
Defined in: rendering/components/sprite-component.ts:26
Constructs a new instance of the SpriteComponent class with the given Sprite.
Parameters
sprite
The Sprite instance to associate with this component.
enabled
boolean = true
Indicates whether the sprite is enabled or not (default: true).
Returns
SpriteComponent
Properties
enabled
enabled:
boolean
Defined in: rendering/components/sprite-component.ts:16
Indicates whether the sprite is enabled or not.
name
name:
symbol
Defined in: rendering/components/sprite-component.ts:10
The name property holds the unique symbol for this component.
Implementation of
sprite
sprite:
Sprite
Defined in: rendering/components/sprite-component.ts:13
The Sprite instance associated with this component.
symbol
readonlystaticsymbol: typeofsymbol
Defined in: rendering/components/sprite-component.ts:19
A static symbol property that uniquely identifies the SpriteComponent.