A class in Root.Township, Alta.Impact.
Asset holding the shared settings for an impactor (a weapon or tool edge): immunity groups, hit and block effects, filters and hardness. Read through ImpactGenerator.
Constructors
| Member | What it is |
|---|
ImpactorSettings() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
5 private and internal fields
Properties
| Member | What it is |
|---|
ImpactDetectorSettings.ImpactSettings EffectOnBlock { get; } | Effect spawned at the contact point when a hit is blocked. Client only (skipped on headless servers). |
ImpactDetectorSettings.ImpactSettings EffectOnDamage { get; } | Effect spawned at the contact point when a hit does damage. |
ImpactorFilter[] Filters { get; } | Filters an Impactor runs to decide whether a hit counts. |
uint HardnessLevel { get; } | Hardness of the impactor. If the target detector is harder, the hit does no damage and plays the ineffective-hit effect. |
List<ImpactImmunityGroup> ImmunityGroups { get; } | Groups shared with the target detector; each shared group multiplies the hit's efficiency by its multiplier. |
Methods
| Member | What it is |
|---|
override bool Equals(object obj) | Compares every setting, including hardness, with another ImpactorSettings. |
ImpactorSettings GetCopy() | Returns a new in-memory copy with the immunity groups and filters copied into new collections. |
override int GetHashCode() | Hash built from every setting; logs an error naming the asset when an entry is missing. |
Used in
Members of other types that take, return or hold a ImpactorSettings: