Microwave UI + solids implemented.

This commit is contained in:
FL-OZ
2020-05-03 01:34:00 -05:00
parent dba0949c5b
commit 0f61c2fadf
8 changed files with 186 additions and 129 deletions

View File

@@ -33,12 +33,12 @@ namespace Content.Shared.Kitchen
return 0;
}
if (x._ingReagents.Count < y._ingReagents.Count)
if (x.IngredientsReagents.Count < y.IngredientsReagents.Count)
{
return 1;
}
if (x._ingReagents.Count > y._ingReagents.Count)
if (x.IngredientsReagents.Count > y.IngredientsReagents.Count)
{
return -1;
}

View File

@@ -6,6 +6,7 @@ using Robust.Shared.GameObjects;
using Robust.Shared.Serialization;
using Robust.Shared.GameObjects.Components;
using Robust.Shared.GameObjects.Components.UserInterface;
using Robust.Shared.Interfaces.GameObjects;
namespace Content.Shared.Kitchen
@@ -32,14 +33,25 @@ namespace Content.Shared.Kitchen
{
}
}
[Serializable, NetSerializable]
public class MicrowaveEjectSolidIndexedMessage : BoundUserInterfaceMessage
{
public int index;
public MicrowaveEjectSolidIndexedMessage(int i)
{
index = i;
}
}
}
[NetSerializable, Serializable]
public class MicrowaveUserInterfaceState : BoundUserInterfaceState
public class MicrowaveUpdateUserInterfaceState : BoundUserInterfaceState
{
public readonly List<Solution.ReagentQuantity> ReagentsReagents;
public readonly Dictionary<string, int> ContainedSolids;
public MicrowaveUserInterfaceState(List<Solution.ReagentQuantity> reagents, Dictionary<string,int> solids)
public readonly List<EntityUid> ContainedSolids;
public MicrowaveUpdateUserInterfaceState(List<Solution.ReagentQuantity> reagents, List<EntityUid> solids)
{
ReagentsReagents = reagents;
ContainedSolids = solids;