49 lines
1.5 KiB
Plaintext
49 lines
1.5 KiB
Plaintext
URL: https://wiki.studiominus.nl/internalReference/HeatingElementBehaviour.html
|
|
Title: People Playground Modding - HeatingElementBehaviour
|
|
==================================================
|
|
|
|
public class HeatingElementBehaviour
|
|
Inherits MonoBehaviour, Messages.IUse
|
|
Controls the heating and cooling element
|
|
Fields
|
|
public SpriteRenderer ActivationLight
|
|
[SkipSerialisation]
|
|
Reference to the little lamp on the element
|
|
|
|
public DamagableMachineryBehaviour DamagableMachineryBehaviour
|
|
[SkipSerialisation]
|
|
Reference to the thing that decides if this thing a broken thing
|
|
|
|
public PhysicalBehaviour PhysicalBehaviour
|
|
[SkipSerialisation]
|
|
Reference to the PhysicalBehaviour component on this object
|
|
|
|
public Color Color
|
|
[SkipSerialisation] [ColorUsage(true, true)]
|
|
The target colour of the glow
|
|
|
|
public SpriteRenderer Glow
|
|
[SkipSerialisation]
|
|
The SpriteRenderer that renders the glowing bit
|
|
|
|
public Vector2 AllowedTemperatureRange
|
|
[SkipSerialisation] [NaughtyAttributes.MinMaxSlider(-1000, 1000)]
|
|
The temperature range of the element in Celsius
|
|
|
|
public float HeatTargetSpeed
|
|
[SkipSerialisation]
|
|
The speed at which the element reaches the target temperature
|
|
|
|
public bool ActiveCooling
|
|
[SkipSerialisation]
|
|
Does this element do active cooling? If set to true, the element can subtract heat. False means it can only add heat.
|
|
|
|
public float TargetTemperature
|
|
The target temperature of the element. ActiveCooling needs to be set to true
|
|
|
|
public bool Activated
|
|
Is the element activated
|
|
|
|
Methods
|
|
public void Use(ActivationPropagation activation)
|
|
No description provided |