fish-station/Content.Shared/Actions/Components/ActionsComponent.cs
iertis 6541699296
Абдукторы from Starlight (#1141)
Co-authored-by: ss14-Starlight <ss14-Starlight@outlook.com>
Co-authored-by: Rinary <rinary.super@gmail.com>
Co-authored-by: SplikZerys <136282037+SplikZerys@users.noreply.github.com>
2025-07-08 05:26:28 -04:00

52 lines
1.5 KiB
C#

using Content.Shared._Sunrise.StarlightAction;
using Content.Shared.Actions;
using Robust.Shared.GameStates;
using Robust.Shared.Serialization;
namespace Content.Shared.Actions.Components;
/// <summary>
/// Lets the player controlling this entity use actions.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(SharedActionsSystem), typeof(StarlightActionsSystem))] // Starlight-abductors edit
public sealed partial class ActionsComponent : Component
{
/// <summary>
/// List of actions currently granted to this entity.
/// On the client, this may contain a mixture of client-side and networked entities.
/// </summary>
[DataField]
public HashSet<EntityUid> Actions = new();
}
[Serializable, NetSerializable]
public sealed class ActionsComponentState : ComponentState
{
public readonly HashSet<NetEntity> Actions;
public ActionsComponentState(HashSet<NetEntity> actions)
{
Actions = actions;
}
}
/// <summary>
/// Determines how the action icon appears in the hotbar for item actions.
/// </summary>
public enum ItemActionIconStyle : byte
{
/// <summary>
/// The default - The item icon will be big with a small action icon in the corner
/// </summary>
BigItem,
/// <summary>
/// The action icon will be big with a small item icon in the corner
/// </summary>
BigAction,
/// <summary>
/// BigAction but no item icon will be shown in the corner.
/// </summary>
NoItem
}