/tg/ Station 13 - Modules - TypesVar Details

dart_insert

Component for allowing items to be inserted into foam darts. The parent can register signal handlers for COMSIG_DART_INSERT_ADDED, COMSIG_DART_INSERT_REMOVED to define custom behavior for when the item is added to/removed from a dart, and COMSIG_DART_INSERT_GET_VAR_MODIFIERS to define the modifications the item makes to the vars of the fired projectile.

Vars

casing_overlay_iconThe icon file used for the overlay applied over the containing ammo casing
casing_overlay_icon_stateThe icon state used for the overlay applied over the containing ammo casing
holder_casingA reference to the ammo casing this component's parent was inserted into
holder_projectileA reference to the projectile this component's parent was inserted into
modifier_getterOptional callback to invoke when acquiring projectile var modifiers
projectile_overlay_iconThe icon file used for the overlay applied over the containing projectile
projectile_overlay_icon_stateThe icon state used for the overlay applied over the containing projectile
var_modifiersList for tracking the modifications this component has made to the vars of the containing projectile

Var Details

casing_overlay_icon

The icon file used for the overlay applied over the containing ammo casing

casing_overlay_icon_state

The icon state used for the overlay applied over the containing ammo casing

holder_casing

A reference to the ammo casing this component's parent was inserted into

holder_projectile

A reference to the projectile this component's parent was inserted into

modifier_getter

Optional callback to invoke when acquiring projectile var modifiers

projectile_overlay_icon

The icon file used for the overlay applied over the containing projectile

projectile_overlay_icon_state

The icon state used for the overlay applied over the containing projectile

var_modifiers

List for tracking the modifications this component has made to the vars of the containing projectile