2022-02-26 18:24:08 +13:00
|
|
|
using Content.Shared.Actions;
|
2022-07-24 23:39:21 +12:00
|
|
|
using Robust.Shared.Serialization;
|
2022-02-26 18:24:08 +13:00
|
|
|
|
|
|
|
|
namespace Content.Shared.Toggleable;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-07-11 05:55:56 +00:00
|
|
|
/// Generic action-event for toggle-able components.
|
2022-02-26 18:24:08 +13:00
|
|
|
/// </summary>
|
2024-07-11 05:55:56 +00:00
|
|
|
/// <remarks>
|
|
|
|
|
/// If you are using <c>ItemToggleComponent</c> subscribe to <c>ItemToggledEvent</c> instead.
|
|
|
|
|
/// </remarks>
|
|
|
|
|
public sealed partial class ToggleActionEvent : InstantActionEvent;
|
2022-07-24 23:39:21 +12:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Generic enum keys for toggle-visualizer appearance data & sprite layers.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Serializable, NetSerializable]
|
2025-05-30 16:53:56 -07:00
|
|
|
public enum ToggleableVisuals : byte
|
2022-07-24 23:39:21 +12:00
|
|
|
{
|
2025-05-30 16:53:56 -07:00
|
|
|
Enabled,
|
|
|
|
|
Layer,
|
|
|
|
|
Color,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Generic sprite layer keys.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
public enum LightLayers : byte
|
|
|
|
|
{
|
|
|
|
|
Light,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Used as a key for generic unshaded layers. Not necessarily related to an entity with an actual light source.
|
|
|
|
|
/// Use this instead of creating a unique single-purpose "unshaded" enum for every visualizer.
|
|
|
|
|
/// </summary>
|
|
|
|
|
Unshaded,
|
2022-07-24 23:39:21 +12:00
|
|
|
}
|