1
0

SmokableComponent.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using Content.Shared.FixedPoint;
  2. using Content.Shared.Smoking;
  3. using Robust.Shared.GameStates;
  4. namespace Content.Shared.Nutrition.Components
  5. {
  6. [RegisterComponent, NetworkedComponent]
  7. public sealed partial class SmokableComponent : Component
  8. {
  9. [DataField("solution")]
  10. public string Solution { get; private set; } = "smokable";
  11. /// <summary>
  12. /// Solution inhale amount per second.
  13. /// </summary>
  14. [DataField("inhaleAmount"), ViewVariables(VVAccess.ReadWrite)]
  15. public FixedPoint2 InhaleAmount { get; private set; } = FixedPoint2.New(0.05f);
  16. [DataField("state")]
  17. public SmokableState State { get; set; } = SmokableState.Unlit;
  18. [DataField("exposeTemperature"), ViewVariables(VVAccess.ReadWrite)]
  19. public float ExposeTemperature { get; set; } = 0;
  20. [DataField("exposeVolume"), ViewVariables(VVAccess.ReadWrite)]
  21. public float ExposeVolume { get; set; } = 1f;
  22. // clothing prefixes
  23. [DataField("burntPrefix")]
  24. public string BurntPrefix = "unlit";
  25. [DataField("litPrefix")]
  26. public string LitPrefix = "lit";
  27. [DataField("unlitPrefix")]
  28. public string UnlitPrefix = "unlit";
  29. }
  30. }