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
| Member | What it is |
|---|
protected HeatModel() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private HeatPointCollection heatPointCollection | Heat point collection whose sync makes clients recheck the colour. |
private List<MetalHeatPoint> heatPoints | Metal heat points that make up the red channel. |
Properties
| Member | What it is |
|---|
protected override List<MetalHeatPoint> RedPoints { get; } | Returns the metal heat points that drive the red channel. |
Methods
| Member | What 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. |