#W# Craft: Added a nice crafting queue system. To access the queue there is a button on the bottom right. Under the Skill Guide.
This commit is contained in:
parent
0fa220bb63
commit
712247762c
6 changed files with 469 additions and 66 deletions
26
Projects/UOContent/Engines/Craft/Core/CraftQueueOrder.cs
Normal file
26
Projects/UOContent/Engines/Craft/Core/CraftQueueOrder.cs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
using System;
|
||||
|
||||
namespace Server.Engines.Craft;
|
||||
|
||||
public class CraftQueueOrder
|
||||
{
|
||||
public CraftItem Item { get; }
|
||||
public Type ResourceType { get; }
|
||||
public int AmountRequested { get; set; }
|
||||
public int AmountCompleted { get; set; }
|
||||
public int AmountExceptional { get; set; }
|
||||
public int AmountFailed { get; set; }
|
||||
public bool IsCompleted { get; set; }
|
||||
|
||||
public CraftQueueOrder(CraftItem item, Type resourceType, int amountRequested)
|
||||
{
|
||||
Item = item;
|
||||
ResourceType = resourceType;
|
||||
AmountRequested = amountRequested;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if the order is explicitly flagged complete or has reached its target count.
|
||||
/// </summary>
|
||||
public bool IsFinished => IsCompleted || AmountCompleted >= AmountRequested;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue