mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
Also includes some (non critical) changes to the solution file to re-organize the Roslyn components. (cherry picked from commit e00f74505c62310bd15aeaba8d6530f648397074)
26 lines
775 B
C#
26 lines
775 B
C#
using Content.Shared.Kitchen;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
|
|
|
namespace Content.Server.Kitchen.Components;
|
|
|
|
/// <summary>
|
|
/// Attached to a microwave that is currently in the process of cooking
|
|
/// </summary>
|
|
[RegisterComponent, AutoGenerateComponentPause]
|
|
public sealed partial class ActiveMicrowaveComponent : Component
|
|
{
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public float CookTimeRemaining;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public float TotalTime;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
|
|
[AutoPausedField]
|
|
public TimeSpan MalfunctionTime = TimeSpan.Zero;
|
|
|
|
[ViewVariables]
|
|
public (FoodRecipePrototype?, int) PortionedRecipe;
|
|
}
|