Skip to main content

ArmorManager<TSlot>

A class in Root.Township, Alta.Customization.

Maps armor slots to the impact detectors they cover, so setting a slot's armor updates every detector for that body part.

Constructors​

MemberWhat it is
ArmorManager()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private ArmorManager<TSlot>[] slotPairingsSerialized pairs of slot and the EquipmentReference detectors it covers.
private Dictionary<TSlot, ArmorManager<TSlot>> slotsLookup of pairings by slot.

Methods​

MemberWhat it is
void Set(TSlot slot, ArmorDefinition armor)Sets the armor on every detector paired with the slot. Unknown slots are ignored.
1 private and internal method
MemberWhat it is
private void Awake()Builds the slot lookup from slotPairings.