ASPackage
Inherits:
ResourceA reusable container for effects and cues that can be delivered.
Description
[ASPackage] is a data container that bundles multiple [ASEffect]s and [ASCue]s together. This is primarily used by [ASDelivery] to apply a complex payload (like a fireball’s damage and visual effects) to a target [ASComponent].
Properties
| Type | Name | Default |
|---|---|---|
ASCue[] | cues_resources | [] |
List of direct [ASCue] resources. | ||
StringName[] | cues_tags | [] |
List of cue tags. | ||
ASEffect[] | effects_resources | [] |
List of direct [ASEffect] resources. | ||
StringName[] | effects_tags | [] |
List of effect tags. | ||
StringName[] | events_on_deliver | [] |
List of events dispatched to the target immediately upon package delivery. | ||
StringName | package_tag | &"" |
Unique identifier tag for the package. Used for tracking and delivery logic. | ||
Methods
| Return | Name |
|---|---|
void | add_cue(
cue: ASCue) |
Adds a direct [ASCue] resource to the package. | |
void | add_cue_tag(
tag: StringName) |
Adds a cue tag to be resolved by the target. | |
void | add_effect(
effect: ASEffect) |
Adds a direct [ASEffect] resource to the package. | |
void | add_effect_tag(
tag: StringName) |
Adds an effect tag to be resolved by the target. | |
void | clear_cues( ) |
Clears all cues from the package. | |
void | clear_effects( ) |
Clears all effects from the package. | |
void | remove_cue(
cue: ASCue) |
Removes a direct [ASCue] resource from the package. | |
void | remove_cue_tag(
tag: StringName) |
Removes a cue tag from the package. | |
void | remove_effect(
effect: ASEffect) |
Removes a direct [ASEffect] resource from the package. | |
void | remove_effect_tag(
tag: StringName) |
Removes an effect tag from the package. | |