Skip to main content

HeatModel<TG, TB, TA>

An abstract class in Root.Township, Alta.Blacksmithing.

Colour model whose red channel is a list of metal heat points, used to show heat on metal. Not active on headless servers.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private HeatPointCollection heatPointCollectionHeat point collection whose sync makes clients recheck the colour.
private List<MetalHeatPoint> heatPointsMetal heat points that make up the red channel.

Properties​

MemberWhat it is
protected override List<MetalHeatPoint> RedPoints { get; }Returns the metal heat points that drive the red channel.

Methods​

MemberWhat it is
protected override void Awake()Does nothing on headless builds. Otherwise the server hooks each heat point's Changed, and clients hook the collection's sync.