EquipmentReference
A class in Root.Township, Alta.Impact.
A component on a body part that holds the armour equipped there. ArmorManager sets it, and ImpactDetector and HeatPoint read it.
- Listed in Items, inventory and logic
- Inherits or implements
MonoBehaviour - Nested types
EquipmentChangedHandler - Documented in Impacts and hit detection
Constructors
| Member | What it is |
|---|---|
EquipmentReference() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
| Member | What it is |
|---|---|
private ArmorDefinition armor | Backing field for Equipment. |
Properties
| Member | What it is |
|---|---|
ArmorDefinition Equipment { get; set; } | The ArmorDefinition worn on this part, or null. Setting it raises Changed. |
Events
| Member | What it is |
|---|---|
event EquipmentReference.EquipmentChangedHandler Changed | Raised with the new armour whenever Equipment is set. Setting it with no listener throws. |
Used in
Members of other types that take, return or hold a EquipmentReference: