CatStation/Content.Shared/Actions/ActionVisuals.cs
TheShuEd 07919e1ae2
Actions icons refactor (#44681)
* basic code porting

* prototypes port

* rendering update

* charge state

* helper

* fix

* forgotten one
2026-07-25 16:35:53 +00:00

32 lines
864 B
C#

using Robust.Shared.Serialization;
namespace Content.Shared.Actions;
/// <summary>
/// Sprite layer keys for action entities.
/// </summary>
[Serializable, NetSerializable]
public enum ActionVisuals : byte
{
/// <summary>Layer key. The action's base icon.</summary>
Icon,
/// <summary>Layer key. Optional, shown only while toggled on.</summary>
IconToggled,
}
/// <summary>
/// Appearance data keys for action entities.
/// </summary>
[Serializable, NetSerializable]
public enum ActionState : byte
{
/// <summary>Appearance key. Mirrors ActionComponent.Toggled.</summary>
Toggled,
/// <summary>Appearance key. Runtime-assigned SpriteSpecifier, for actions with a dynamic icon.</summary>
DynamicIcon,
/// <summary>Appearance key. Runtime-assigned tint override, e.g. decal-placement actions.</summary>
Color,
}