GrillFuelBurnComponent.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // Content.Shared/Kitchen/GrillFuelBurnComponent.cs
  2. using Robust.Shared.Audio;
  3. using Robust.Shared.Prototypes;
  4. using System.Collections.Generic;
  5. using Content.Shared.Temperature;
  6. namespace Content.Shared.Kitchen;
  7. [RegisterComponent]
  8. public sealed partial class GrillFuelBurnComponent : Component
  9. {
  10. /// <summary>
  11. /// Current amount of fuel in the campfire.
  12. /// </summary>
  13. [DataField("fuel")]
  14. public float Fuel = 2;
  15. /// <summary>
  16. /// Maximum amount of fuel the campfire can hold.
  17. /// </summary>
  18. [DataField("maxFuel")]
  19. public float MaxFuel = 30;
  20. /// <summary>
  21. /// Current heating setting of the campfire based on fuel level.
  22. /// </summary>
  23. [DataField("setting")]
  24. public EntityHeaterSetting Setting = EntityHeaterSetting.Off;
  25. /// <summary>
  26. /// Whether the campfire is currently lit or not.
  27. /// </summary>
  28. [DataField("isLit")]
  29. public bool IsLit { get; set; } = false; // Estado aceso/apagado
  30. /// <summary>
  31. /// Whether the campfire turns into coal when done (true) or not (false)
  32. /// </summary>
  33. [DataField("expends")]
  34. public bool Expends { get; set; } = true; //
  35. /// <summary>
  36. /// Optional sound played when the setting changes.
  37. /// </summary>
  38. [DataField("settingSound")]
  39. public SoundPathSpecifier? SettingSound;
  40. }