Skip to main content

ImpactDetectorSettings.ImpactSettings

A class in Root.Township, Alta.Impact.

The effect and sound for one impact outcome (critical, good or bad) in ImpactDetectorSettings.

Constructors​

MemberWhat it is
ImpactSettings()Creates an ImpactDetectorSettings.ImpactSettings from sound and objectDefinition.
ImpactSettings(SoundEffect sound, PooledObjectDefinition objectDefinition)Creates an ImpactDetectorSettings.ImpactSettings from sound and objectDefinition.

Fields​

3 private and internal fields
MemberWhat it is
private PooledObjectDefinition objectDefinitionBacking field for ObjectDefinition, the pooled effect spawned on the impact.
private SoundEffect soundBacking field for Sound, the sound effect played on the impact (none by default).
private SoundEffectSet soundEffectSetBacking field for SoundEffectSet, a set of sounds for the impact.

Properties​

MemberWhat it is
PooledObjectDefinition ObjectDefinition { get; }Pooled effect spawned at the hit point. Its scale follows hit effectiveness.
SoundEffect Sound { get; }Sound played at the hit point, or None.
SoundEffectSet SoundEffectSet { get; }A sound effect set for this outcome. Not used by PlayEffects.

Methods​

MemberWhat it is
override bool Equals(object obj)True if the sound and pooled effect match. Ignores SoundEffectSet.
override int GetHashCode()Hash of the sound and pooled effect.

Used in​

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