Skip to main content

StatAffectAccessor

A class in Root.Township, Alta.StatSystem.

Component that points area effects at a StatManager, but only for the area filters it accepts.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private AreaFilter filtersWhich AreaFilter flags may affect this manager.
private StatManager managerThe stat manager area effects should change.

Methods​

MemberWhat it is
bool IsAffecting(AreaFilter filter, out StatManager manager)If the filter overlaps the accepted filters, returns true and gives the manager.