1
0

ActiveMicrowaveComponent.cs 775 B

12345678910111213141516171819202122232425
  1. using Content.Shared.Kitchen;
  2. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
  3. namespace Content.Server.Kitchen.Components;
  4. /// <summary>
  5. /// Attached to a microwave that is currently in the process of cooking
  6. /// </summary>
  7. [RegisterComponent, AutoGenerateComponentPause]
  8. public sealed partial class ActiveMicrowaveComponent : Component
  9. {
  10. [ViewVariables(VVAccess.ReadWrite)]
  11. public float CookTimeRemaining;
  12. [ViewVariables(VVAccess.ReadWrite)]
  13. public float TotalTime;
  14. [ViewVariables(VVAccess.ReadWrite)]
  15. [DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
  16. [AutoPausedField]
  17. public TimeSpan MalfunctionTime = TimeSpan.Zero;
  18. [ViewVariables]
  19. public (FoodRecipePrototype?, int) PortionedRecipe;
  20. }