ASContainer
Inherits:
ResourceArchetype blueprint for an actor.
Description
[ASContainer] stores the catalog of abilities, initial effects, and the attribute set configuration for an entity.
Properties
| Type | Name | Default |
|---|---|---|
ASAbility[] | abilities | [] |
List of all abilities this archetype can potentially use. | ||
ASAttributeSet | attribute_set | |
The attribute configuration and default unlocked abilities. | ||
ASCue[] | cues | [] |
Audiovisual cues for this archetype. | ||
ASEffect[] | effects | [] |
Initial effects applied on startup. | ||
StringName[] | events | [] |
List of events associated with this container that can be dispatched or heard. | ||
Methods
| Return | Name |
|---|---|
void | add_ability(
ability: ASAbility) |
Adds an ability resource to the container’s catalog. | |
void | add_cue(
cue: ASCue) |
Adds a cue resource to the container’s catalog. | |
void | add_effect(
effect: ASEffect) |
Adds an effect resource to the initial effects list. | |
bool | has_ability(
ability: ASAbility)
const |
Checks if an ability is in the catalog. | |
bool | has_cue(
tag: StringName)
const |
Returns true if a cue with the specified tag exists in the container. | |
bool | has_cue_resource(
cue: ASCue)
const |
Check if the container’s catalog includes the specific [ASCue] resource reference. | |
bool | has_effect(
effect: ASEffect)
const |
Returns true if the specified effect resource is present in the container. | |