Trash bag visualizer (#7199)
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user