* Prediction for EntityHeaterSystem * Switch to Entity<T> * meh * Move popup inside ChangeSetting * Fix grill visually turning on when changing setting while power is off * Add note about my failed quest * Why isn't this an IDE warning? * Move comment above switch expression in SettingPower
33 lines
1.0 KiB
C#
33 lines
1.0 KiB
C#
using Content.Shared.Temperature.Systems;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Temperature.Components;
|
|
|
|
/// <summary>
|
|
/// Adds thermal energy to entities with <see cref="TemperatureComponent"/> placed on it.
|
|
/// </summary>
|
|
[RegisterComponent, Access(typeof(SharedEntityHeaterSystem))]
|
|
[NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class EntityHeaterComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Power used when heating at the high setting.
|
|
/// Low and medium are 33% and 66% respectively.
|
|
/// </summary>
|
|
[DataField]
|
|
public float Power = 2400f;
|
|
|
|
/// <summary>
|
|
/// Current setting of the heater. If it is off or unpowered it won't heat anything.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public EntityHeaterSetting Setting = EntityHeaterSetting.Off;
|
|
|
|
/// <summary>
|
|
/// An optional sound that plays when the setting is changed.
|
|
/// </summary>
|
|
[DataField]
|
|
public SoundPathSpecifier? SettingSound;
|
|
}
|