Skip to main content

ImpactorMap.MapElement

A private class in Root.Township, Alta.Impact. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

One serialized entry of an ImpactorMap: a collider and the impact generators that act when it hits.

Constructors​

MemberWhat it is
MapElement(Collider collider, IEnumerable<ImpactGenerator> impactors)Creates an ImpactorMap.MapElement from element.
MapElement(KeyValuePair<Collider, HashSet<ImpactGenerator>> element)Creates an ImpactorMap.MapElement from element.

Fields​

2 private and internal fields
MemberWhat it is
private Collider colliderThe collider.
private ImpactGenerator[] impactorsBacking field for Impactors.

Properties​

MemberWhat it is
ImpactGenerator[] Impactors { get; }The impact generators for this collider.

Methods​

MemberWhat it is
void Add(Dictionary<Collider, HashSet<ImpactGenerator>> Map)Adds this collider and its impactors to the given lookup dictionary.

Used in​

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