Skip to main content

BasicSenseSet

A class in Root.Township, Alta.Intelligence.

A pooled array of 32 sense intensities used by AI targets. Get one with Get and give it back with Release.

Constructors​

1 private and internal constructor
MemberWhat it is
private BasicSenseSet()Creates a BasicSenseSet with default values.

Fields​

2 private and internal fields
MemberWhat it is
private float[] intensitiesBacking field for Intensities.
private static Stack<BasicSenseSet> poolPrivate: shared stack of released sets.

Properties​

MemberWhat it is
float[] Intensities { get; }The 32 intensity values, indexed by sense.

Methods​

MemberWhat it is
void Apply(SenseSetup[] setup, string errorName)Copies intensities in, either from a list of SenseSetup entries (by sense index) or from a full 32 value array.
void Apply(float[] intensities)Copies intensities in, either from a list of SenseSetup entries (by sense index) or from a full 32 value array.
static BasicSenseSet Get()Takes a cleared set from the pool, or makes a new one.
void Modify(SenseOld sense, float value)Sets one intensity, indexed by the old SenseOld enum.
void Release()Clears the set and returns it to the pool (kept to 100 sets).
void ZeroAll()Sets every intensity to zero.
1 private and internal method
MemberWhat it is
private void Clear()Private: zeroes every intensity.

Used in​

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