Sweeping changes/improvements to the microwave. (#997)
Co-authored-by: FL-OZ <anotherscuffed@gmail.com> Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
This commit is contained in:
@@ -55,28 +55,35 @@ namespace Content.Shared.Kitchen
|
||||
[Serializable, NetSerializable]
|
||||
public class MicrowaveSelectCookTimeMessage : BoundUserInterfaceMessage
|
||||
{
|
||||
public uint newCookTime;
|
||||
public MicrowaveSelectCookTimeMessage(uint inputTime)
|
||||
public int ButtonIndex;
|
||||
public uint NewCookTime;
|
||||
public MicrowaveSelectCookTimeMessage(int buttonIndex, uint inputTime)
|
||||
{
|
||||
newCookTime = inputTime;
|
||||
ButtonIndex = buttonIndex;
|
||||
NewCookTime = inputTime;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
[NetSerializable, Serializable]
|
||||
public class MicrowaveUpdateUserInterfaceState : BoundUserInterfaceState
|
||||
{
|
||||
public readonly IReadOnlyList<Solution.ReagentQuantity> ReagentsReagents;
|
||||
public readonly List<EntityUid> ContainedSolids;
|
||||
public Solution.ReagentQuantity[] ReagentQuantities;
|
||||
public EntityUid[] ContainedSolids;
|
||||
public bool IsMicrowaveBusy;
|
||||
public MicrowaveUpdateUserInterfaceState(IReadOnlyList<Solution.ReagentQuantity> reagents, List<EntityUid> solids, bool busyStatus)
|
||||
public int ActiveButtonIndex;
|
||||
public uint CurrentCookTime;
|
||||
|
||||
public MicrowaveUpdateUserInterfaceState(Solution.ReagentQuantity[] reagents, EntityUid[] containedSolids,
|
||||
bool isMicrowaveBusy, int activeButtonIndex, uint currentCookTime)
|
||||
{
|
||||
ReagentsReagents = reagents;
|
||||
ContainedSolids = solids;
|
||||
IsMicrowaveBusy = busyStatus;
|
||||
ReagentQuantities = reagents;
|
||||
ContainedSolids = containedSolids;
|
||||
IsMicrowaveBusy = isMicrowaveBusy;
|
||||
ActiveButtonIndex = activeButtonIndex;
|
||||
CurrentCookTime = currentCookTime;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
|
||||
Reference in New Issue
Block a user