Files
tbd-station-14/Content.Client/Storage/Components/StorageContainerVisualsComponent.cs
metalgearsloth a89d4c750b Power stuff (#31314)
* Power stuff

- Add shared IsPowered
- Add shared ResolveApc
- Move PowerChangedEvent to shared for now
- Add SlimPoweredLight that actually functions how you'd expect a PoweredLight to function it id didn't have a bunch of bloat on it.

* big update

* boing
2024-08-25 22:18:42 +10:00

31 lines
1007 B
C#

using Content.Client.Chemistry.Visualizers;
using Content.Shared.Chemistry.Components;
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
}