ImpactDetectorSettings.ImpactSettings
A class in Root.Township, Alta.Impact.
The effect and sound for one impact outcome (critical, good or bad) in ImpactDetectorSettings.
- Listed in Items, inventory and logic
- Nested in
ImpactDetectorSettings
Constructors
| Member | What 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
| Member | What it is |
|---|---|
private PooledObjectDefinition objectDefinition | Backing field for ObjectDefinition, the pooled effect spawned on the impact. |
private SoundEffect sound | Backing field for Sound, the sound effect played on the impact (none by default). |
private SoundEffectSet soundEffectSet | Backing field for SoundEffectSet, a set of sounds for the impact. |
Properties
| Member | What 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
| Member | What 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:
ImpactDetectorSettings.bad, ImpactDetectorSettings.critical, ImpactDetectorSettings.good, ImpactGenerator.EffectOnBlock, ImpactGenerator.EffectOnDamage, ImpactorSettings.effectOnBlock, ImpactorSettings.EffectOnBlock, ImpactorSettings.effectOnDamage, ImpactorSettings.EffectOnDamage, PickupTypeSettings.GetHardnessInnefectiveHitEffect, PickupTypeSettings.ChannelInneficientHardnessHitEffect.settings.