Electric grill (#20661)

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas
2023-10-02 01:17:50 +01:00
committed by GitHub
parent 65426fb4c5
commit 3488e577d9
15 changed files with 258 additions and 17 deletions

View File

@@ -0,0 +1,24 @@
using Content.Server.Temperature.Systems;
using Content.Shared.Temperature;
namespace Content.Server.Temperature.Components;
/// <summary>
/// Adds thermal energy to entities with <see cref="TemperatureComponent"/> placed on it.
/// </summary>
[RegisterComponent, Access(typeof(EntityHeaterSystem))]
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, ViewVariables(VVAccess.ReadWrite)]
public float Power = 2400f;
/// <summary>
/// Current setting of the heater. If it is off or unpowered it won't heat anything.
/// </summary>
[DataField]
public EntityHeaterSetting Setting = EntityHeaterSetting.Off;
}