Skip to content
ct

Class

AddWhenAged

Generated GDScript class reference for CalendarTime.AddWhenAged.

Status
Current
Version
v2.0
Updated
Generated from GDScript addon source

After the ageing component's age_state increased a number of times, call add(int) on a target node and/or resource to add some value to those targets

Source: addons/calendar_time/ageing/add_when_aged.gd

Syntax

class AddWhenAged extends Node

Members

NameKindSummary
age_componentPropertyContext for the AgeState. Can set path in inspector or defaults to parent node.
target_nodePropertyThe receipient of add(amount : float) function calls It must implement some version of add(amount : float)
target_age_state_resourcePropertyTarget that is a resource instead of a node. The receipient must implement add(amount : float)
age_amountPropertyAdd this value to the target_node and / or target_age_state_resource when the period elapses
periodPropertyNumber of age increases that must occur between add calls
last_update_agePropertyThe last age_state that this component used to calculate adds
total_addsPropertyNumber of adds this component has performed
handle_total_age_progressedMethod
target_node_setProperty
target_resource_setProperty
ages_since_updateProperty
times_to_addProperty
num_times_addedProperty