Chris' Tutorials
Docs/Calendar Time

Class

AddWhenAged

Generated GDScript class reference for CalendarTime.AddWhenAged.

StatusCurrent
Versionv2.0
UpdatedGenerated from GDScript addon source
Source note:This page rendered plugin-owned docs or generated metadata inside unified Astro docs shell.

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

Source

addons/calendar_time/ageing/add_when_aged.gd

Plugin docs root:gdscript/plugins/calendar_time_dev/docs