Skip to main content

MiningSettings

A class in Root.Township, Alta.Impact.

Global settings for mining rocks and ore. In this build only the haptics, strike sound RTPC and drop speed are read.

Constructors​

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

Fields​

14 private and internal fields
MemberWhat it is
private bool isOneHitDestroyBacking field for IsOneHitDestroy. Not read anywhere else in this build.
private float maxRespawnTimeBacking field for MaxRespawnTime. Not read anywhere else in this build.
private float maxSwingDistanceBacking field for MaxSwingDistance. Not read anywhere else in this build.
private float minImpactMultiplierBacking field for MinImpactMultiplier, a 0 to 1 value. Not read anywhere else in this build.
private float minRespawnTimeBacking field for MinRespawnTime. Not read anywhere else in this build.
private int minStrikeDamageBacking field for MinStrikeDamage. Not read anywhere else in this build.
private float minSwingDistanceBacking field for MinSwingDistance. Not read anywhere else in this build.
private AnimationCurve resourceDropHapticFeedbackBacking field for ResourceDropHapticFeedback, the haptic curve Rock plays when it drops a resource.
private float resourceDropSpeedMultiplierBacking field for ResourceDropSpeedMultiplier, which Rock multiplies a dropped resource's launch direction by.
private float strikeCoolDownTimeBacking field for StrikeCoolDownTime. Not read anywhere else in this build.
private RTPC strikeStrengthRTPCBacking field for StrikeStrengthRTPC, the audio parameter ImpactTool sets from strike strength on hit sounds.
private AnimationCurve successfulHapticFeedbackBacking field for SuccessfulHapticFeedback, the haptic curve ImpactTool plays on a damaging hit.
private float toolDamagePerStrikeBacking field for ToolDamagePerStrike. Not read anywhere else in this build.
private AnimationCurve unsuccessfulHapticFeedbackBacking field for UnsuccessfulHapticFeedback, the haptic curve ImpactTool plays on a hit that does nothing.

Properties​

MemberWhat it is
bool IsOneHitDestroy { get; }Not read anywhere in this build.
float MaxRespawnTime { get; }Not read anywhere in this build.
float MaxSwingDistance { get; }Not read anywhere in this build.
float MinImpactMultiplier { get; }Not read anywhere in this build.
float MinRespawnTime { get; }Not read anywhere in this build.
int MinStrikeDamage { get; }Not read anywhere in this build.
float MinSwingDistance { get; }Not read anywhere in this build.
AnimationCurve ResourceDropHapticFeedback { get; }Controller vibration when a rock drops a resource.
float ResourceDropSpeedMultiplier { get; set; }Speed a resource is thrown out of a rock at.
float StrikeCoolDownTime { get; }Not read anywhere in this build.
RTPC StrikeStrengthRTPC { get; }Wwise value set from the hit strength when an impact tool plays its sound.
AnimationCurve SuccessfulHapticFeedback { get; }Controller vibration for a good tool hit.
float ToolDamagePerStrike { get; }Not read anywhere in this build.
AnimationCurve UnsuccessfulHapticFeedback { get; }Controller vibration for a bad tool hit.