Skip to main content

TemperatureCheckInputStructure

A class in Root.Township, the global namespace.

Skill input settings that activate a skill when the held item (or its matching tool parts) is in a hot enough heat area for a set time.

Constructors​

MemberWhat it is
TemperatureCheckInputStructure()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

5 private and internal fields
MemberWhat it is
private float activeTimeSeconds the skill stays active once triggered (15 by default).
private bool hasChannelsTrue when targetChannels has at least one entry. Without channels any pickup or impactor passes.
private float minTemperatureToActivateTemperature that has to be reached to start activating (200 by default).
private ImpactChannel[] targetChannelsImpact channels the held tool or impactor must have for the input to count.
private float timeToActivateSeconds the temperature must hold before the skill activates (1 by default).

Properties​

MemberWhat it is
float ActiveTime { get; }Seconds the input stays active once triggered.
float MinTemperatureToActivate { get; }A heat area must be hotter than this to count.
float TimeToActivate { get; }Seconds in the heat before the input activates.

Methods​

MemberWhat it is
override ISkillInputMethod GetNewInput()Creates a TemperatureCheckInput.
bool ValidateColliderImpactors(IEnumerable<ImpactGenerator> impactors)True if no channels are set, or any impactor on the collider has one of them.
override bool ValidatePickup(HeldPickupHandler handler)True if no channels are set, or the held tool has one of them.
1 private and internal method
MemberWhat it is
private void OnValidate()Editor: sets hasChannels when any entry in targetChannels is set.

Used in​

Members of other types that take, return or hold a TemperatureCheckInputStructure: