Skip to content

ASPackage

PT | EN
Inherits: Resource

A 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

TypeNameDefault
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.
StringNamepackage_tag&""
Unique identifier tag for the package. Used for tracking and delivery logic.

Methods

ReturnName
voidadd_cue( cue: ASCue)
Adds a direct [ASCue] resource to the package.
voidadd_cue_tag( tag: StringName)
Adds a cue tag to be resolved by the target.
voidadd_effect( effect: ASEffect)
Adds a direct [ASEffect] resource to the package.
voidadd_effect_tag( tag: StringName)
Adds an effect tag to be resolved by the target.
voidclear_cues( )
Clears all cues from the package.
voidclear_effects( )
Clears all effects from the package.
voidremove_cue( cue: ASCue)
Removes a direct [ASCue] resource from the package.
voidremove_cue_tag( tag: StringName)
Removes a cue tag from the package.
voidremove_effect( effect: ASEffect)
Removes a direct [ASEffect] resource from the package.
voidremove_effect_tag( tag: StringName)
Removes an effect tag from the package.