MetalHeatPoint
A class in Root.Township, Alta.Blacksmithing.
A heat point on a metal item. Heat moves faster or slower based on its physical material, and it tracks how much the metal glows.
- Listed in Crafting and making
- Inherits or implements
HeatPoint,IColorModelPoint<MetalHeatPoint> - Derived types
HeatModel<TG, TB, TA>,MetalHeatPoint - Documented in Smelting and forging
Constructors
| Member | What it is |
|---|---|
MetalHeatPoint() | Creates a MetalHeatPoint with default values. |
Fields
3 private and internal fields
| Member | What it is |
|---|---|
private Action<MetalHeatPoint> changed | Listeners of the colour model Changed event. |
private PhysicalMaterialPart materialPart | Material part in a parent that gives this point its metal; without one it uses material hash 1. |
private PhysicalMaterial physicalMaterial | Current physical material, which sets conductivity, glow range and heat effects. |
Properties
Methods
3 private and internal methods
| Member | What it is |
|---|---|
private void ForwardChanged(HeatPoint point) | Passes the heat point's Changed event on to colour model listeners. |
private void UpdateGlow() | Sets Glow from the temperature between the material's glow start and end. |
private void UpdateMaterial(PhysicalMaterial physicalMaterial, PhysicalMaterialChannel materialChannel) | Picks up a new physical material when the part's material changes. |
Used in
Members of other types that take, return or hold a MetalHeatPoint: