1
0

LatheHeatProducingComponent.cs 719 B

123456789101112131415161718192021
  1. using Content.Shared.Lathe;
  2. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
  3. namespace Content.Server.Lathe.Components;
  4. /// <summary>
  5. /// This is used for a <see cref="LatheComponent"/> that releases heat into the surroundings while producing items.
  6. /// </summary>
  7. [RegisterComponent]
  8. [Access(typeof(LatheSystem))]
  9. public sealed partial class LatheHeatProducingComponent : Component
  10. {
  11. /// <summary>
  12. /// The amount of energy produced each second when producing an item.
  13. /// </summary>
  14. [DataField, ViewVariables(VVAccess.ReadWrite)]
  15. public float EnergyPerSecond = 30000;
  16. [DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
  17. public TimeSpan NextSecond;
  18. }