2022-08-27 19:40:29 -04:00
|
|
|
using Content.Shared.Kitchen;
|
2024-01-23 17:59:09 -05:00
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
2022-08-27 19:40:29 -04:00
|
|
|
|
|
|
|
|
namespace Content.Server.Kitchen.Components;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Attached to a microwave that is currently in the process of cooking
|
|
|
|
|
/// </summary>
|
2024-02-26 04:36:19 +01:00
|
|
|
[RegisterComponent, AutoGenerateComponentPause]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class ActiveMicrowaveComponent : Component
|
2022-08-27 19:40:29 -04:00
|
|
|
{
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public float CookTimeRemaining;
|
|
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public float TotalTime;
|
|
|
|
|
|
2024-01-23 17:59:09 -05:00
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
|
2024-02-26 04:36:19 +01:00
|
|
|
[AutoPausedField]
|
2024-01-23 17:59:09 -05:00
|
|
|
public TimeSpan MalfunctionTime = TimeSpan.Zero;
|
|
|
|
|
|
2022-08-27 19:40:29 -04:00
|
|
|
[ViewVariables]
|
|
|
|
|
public (FoodRecipePrototype?, int) PortionedRecipe;
|
|
|
|
|
}
|