Files
crystall-punk-14/Content.Shared/Nutrition/Components/SmokableComponent.cs

37 lines
1.2 KiB
C#
Raw Permalink Normal View History

using Content.Shared.FixedPoint;
using Content.Shared.Smoking;
using Robust.Shared.GameStates;
namespace Content.Shared.Nutrition.Components
{
[RegisterComponent, NetworkedComponent]
public sealed partial class SmokableComponent : Component
{
[DataField("solution")]
public string Solution { get; private set; } = "smokable";
/// <summary>
/// Solution inhale amount per second.
/// </summary>
2023-11-19 15:17:53 -05:00
[DataField("inhaleAmount"), ViewVariables(VVAccess.ReadWrite)]
public FixedPoint2 InhaleAmount { get; private set; } = FixedPoint2.New(0.05f);
[DataField("state")]
public SmokableState State { get; set; } = SmokableState.Unlit;
2022-01-07 01:45:02 +13:00
2023-11-19 15:17:53 -05:00
[DataField("exposeTemperature"), ViewVariables(VVAccess.ReadWrite)]
public float ExposeTemperature { get; set; } = 0;
2023-11-19 15:17:53 -05:00
[DataField("exposeVolume"), ViewVariables(VVAccess.ReadWrite)]
public float ExposeVolume { get; set; } = 1f;
2022-01-07 01:45:02 +13:00
// clothing prefixes
[DataField("burntPrefix")]
public string BurntPrefix = "unlit";
[DataField("litPrefix")]
public string LitPrefix = "lit";
[DataField("unlitPrefix")]
public string UnlitPrefix = "unlit";
}
}