Files
crystall-punk-14/Content.Server/_CP14/Temperature/Fireplace/CP14FireplaceComponent.cs
Ed 2358bc46d6 Torches + Cotton (#1246)
* torches add, wallmount crystals deletion

* cotton

* Update buy.yml

* craftis

* delete elemental quartz

* energy crystal resprite and rewamp

* fix

* Update misc.yml

* а

* delete rituals

* riat

* Update migration.yml

* Delete CP14ClientRitualSystem.cs

* Update statues.yml

* fix

* Update wallmount_lamp.yml

* fix
2025-04-30 17:28:38 +03:00

51 lines
1.3 KiB
C#

using Robust.Shared.Audio;
namespace Content.Server._CP14.Temperature.Fireplace;
/// <summary>
/// component for player-controlled fire. Can be fueled.
/// </summary>
[RegisterComponent, Access(typeof(CP14FireplaceSystem))]
public sealed partial class CP14FireplaceComponent : Component
{
[DataField]
public string ContainerId = "storagebase";
/// <summary>
/// The abstract amount of fuel that is used to keep a fire burning
/// </summary>
[DataField]
public float MaxFuelLimit = 100f;
/// <summary>
/// how much the flame grows or dies out with the presence or absence of fuel
/// </summary>
[DataField]
public float FireFadeDelta = 0.2f;
/// <summary>
/// current fuel quantity
/// </summary>
[DataField]
public float Fuel = 10f;
/// <summary>
/// how much fuel is wasted every "UpdateFrequency"
/// </summary>
[DataField]
public float FuelDrainingPerUpdate = 1f;
[DataField]
public bool DeleteOnEmpty = false;
[DataField]
public TimeSpan UpdateFrequency = TimeSpan.FromSeconds(1f);
[DataField]
public TimeSpan NextUpdateTime = TimeSpan.Zero;
[DataField]
public SoundSpecifier InsertFuelSound = new SoundPathSpecifier("/Audio/_CP14/Items/campfire_whoosh.ogg");
}