2021-11-03 16:48:03 -07:00
|
|
|
using Content.Shared.FixedPoint;
|
2021-09-26 15:19:00 +02:00
|
|
|
using Content.Shared.Smoking;
|
2023-03-25 22:59:48 +00:00
|
|
|
using Robust.Shared.GameStates;
|
2021-09-26 15:19:00 +02:00
|
|
|
|
2023-03-25 22:59:48 +00:00
|
|
|
namespace Content.Shared.Nutrition.Components
|
2021-09-26 15:19:00 +02:00
|
|
|
{
|
2023-03-25 22:59:48 +00:00
|
|
|
[RegisterComponent, NetworkedComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class SmokableComponent : Component
|
2021-09-26 15:19:00 +02:00
|
|
|
{
|
|
|
|
|
[DataField("solution")]
|
2023-08-22 18:14:33 -07:00
|
|
|
public string Solution { get; private set; } = "smokable";
|
2021-09-26 15:19:00 +02:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Solution inhale amount per second.
|
|
|
|
|
/// </summary>
|
2023-11-19 15:17:53 -05:00
|
|
|
[DataField("inhaleAmount"), ViewVariables(VVAccess.ReadWrite)]
|
2023-08-22 18:14:33 -07:00
|
|
|
public FixedPoint2 InhaleAmount { get; private set; } = FixedPoint2.New(0.05f);
|
2021-09-26 15:19:00 +02:00
|
|
|
|
|
|
|
|
[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)]
|
2022-01-18 07:35:17 +01:00
|
|
|
public float ExposeTemperature { get; set; } = 0;
|
|
|
|
|
|
2023-11-19 15:17:53 -05:00
|
|
|
[DataField("exposeVolume"), ViewVariables(VVAccess.ReadWrite)]
|
2022-01-18 07:35:17 +01:00
|
|
|
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";
|
2021-09-26 15:19:00 +02:00
|
|
|
}
|
|
|
|
|
}
|