Show other speso colours, add larger denominations (Frontier#1496) (#37030)
This commit is contained in:
19
Content.Shared/Stacks/StackThresholdComponent.cs
Normal file
19
Content.Shared/Stacks/StackThresholdComponent.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Shared.Stacks;
|
||||
|
||||
/// <summary>
|
||||
/// Denotes an item as having thresholded stack visuals.
|
||||
/// StackComponent.LayerFunction should be set to Threshold to use this in practice.
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public sealed partial class StackLayerThresholdComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// A list of thresholds to check against the number of things in the stack.
|
||||
/// Each exceeded threshold will cause the next layer to be displayed.
|
||||
/// Should be sorted in ascending order.
|
||||
/// </summary>
|
||||
[DataField(required: true)]
|
||||
public List<int> Thresholds = new();
|
||||
}
|
||||
Reference in New Issue
Block a user