IsometricEntityComponent
Hierarchy
- Component
- IsometricEntityComponent
Index
Constructors
Properties
Methods
Constructors
constructor
Specify the isometric map to use to position this entity's z-index
Parameters
mapOrOptions: IsometricMap | IsometricEntityComponentOptions
Returns IsometricEntityComponent
Properties
publicreadonlycolumns
optionalreadonlydependencies
Optionally list any component types this component depends on If the owner entity does not have these components, new components will be added to the entity
Only components with zero-arg constructors are supported as automatic component dependencies
publicelevation
Vertical "height" in the isometric world
optionalowner
publicreadonlyrows
publicreadonlytileHeight
publicreadonlytileWidth
Methods
clone
Clones any properties on this component, if that property value has a
clone()
method it will be calledReturns Component
optionalonAdd
Optional callback called when a component is added to an entity
Parameters
owner: Entity<any>
Returns void
optionalonRemove
Optional callback called when a component is removed from an entity
Parameters
previousOwner: Entity<any>
Returns void
Components are containers for state in Excalibur, the are meant to convey capabilities that an Entity possesses
Implementations of Component must have a zero-arg constructor to support dependencies