Skip to main content

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.

Constructors​

MemberWhat it is
MetalHeatPoint()Creates a MetalHeatPoint with default values.

Fields​

3 private and internal fields
MemberWhat it is
private Action<MetalHeatPoint> changedListeners of the colour model Changed event.
private PhysicalMaterialPart materialPartMaterial part in a parent that gives this point its metal; without one it uses material hash 1.
private PhysicalMaterial physicalMaterialCurrent physical material, which sets conductivity, glow range and heat effects.

Properties​

MemberWhat it is
float Glow { get; private set; }How much the metal glows (0 to 1), from the material's glow start and end temperatures.
override float ReceiveConductivityMultiplier { get; }How fast the point takes in heat, scaled by the material, the global multiplier and thickness.
override float SourceConductivityMultiplier { get; }How fast the point gives off heat, scaled by the material, the global multiplier and thickness.
float ThicknessConductivityMultiplier { get; set; }Extra conductivity scale for how thick the metal is. 1 by default.
protected override float InternalConductivityMultiplier { get; }How fast heat spreads inside the item, scaled by the material, the global multiplier and thickness.

Methods​

MemberWhat it is
protected override void Awake()Finds the item's physical material and follows changes to it. Falls back to material 1 with no material part.
protected override void NonAmbientChanged()Updates Glow when the temperature changes.
protected override void ResetToAmbient()Updates Glow after going back to ambient temperature.
protected override void ShowEffects()Shows the material's fully heated effect above its particle temperature, otherwise removes it.
3 private and internal methods
MemberWhat 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: