Bows & arrows (#19771)

This commit is contained in:
Kara
2023-09-22 02:45:21 -07:00
committed by GitHub
parent 1ba1ab6d61
commit f8d194b117
51 changed files with 507 additions and 22 deletions

View File

@@ -0,0 +1,29 @@
using Content.Client.Chemistry.Visualizers;
namespace Content.Client.Storage.Components;
/// <summary>
/// Essentially a version of <see cref="SolutionContainerVisualsComponent"/> fill level handling but for item storage.
/// Depending on the fraction of storage that's filled, will change the sprite at <see cref="FillLayer"/> to the nearest
/// fill level, up to <see cref="MaxFillLevels"/>.
/// </summary>
[RegisterComponent]
public sealed partial class StorageContainerVisualsComponent : Component
{
[DataField("maxFillLevels")]
public int MaxFillLevels = 0;
/// <summary>
/// A prefix to use for the fill states., i.e. {FillBaseName}{fill level} for the state
/// </summary>
[DataField("fillBaseName")]
public string? FillBaseName;
[DataField("layer")]
public StorageContainerVisualLayers FillLayer = StorageContainerVisualLayers.Fill;
}
public enum StorageContainerVisualLayers : byte
{
Fill
}