Trash bag visualizer (#7199)

This commit is contained in:
Alex Evgrashin
2022-03-23 16:14:23 +03:00
committed by GitHub
parent 46ac70a734
commit 74d4adfb96
5 changed files with 115 additions and 18 deletions

View File

@@ -0,0 +1,28 @@
using Robust.Shared.Serialization;
namespace Content.Shared.Storage.Components;
/// <summary>
/// Change sprite depending on a storage fill percent.
/// </summary>
[RegisterComponent]
public sealed class StorageFillVisualizerComponent : Component
{
[DataField("maxFillLevels", required: true)]
public int MaxFillLevels;
[DataField("fillBaseName", required: true)]
public string FillBaseName = default!;
}
[Serializable, NetSerializable]
public enum StorageFillVisuals : byte
{
FillLevel
}
[Serializable, NetSerializable]
public enum StorageFillLayers : byte
{
Fill
}