Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Co-authored-by: unknown <wainzor1337@gmail.com> Co-authored-by: ScarKy0 <scarky0@onet.eu>
21 lines
711 B
C#
21 lines
711 B
C#
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Actions;
|
|
|
|
/// <summary>
|
|
/// Works in tandem with <see cref="ActionGrantComponent"/> by granting those actions to the equipper entity.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState, Access(typeof(ActionGrantSystem))]
|
|
public sealed partial class ItemActionGrantComponent : Component
|
|
{
|
|
[DataField(required: true), AutoNetworkedField, AlwaysPushInheritance]
|
|
public List<EntProtoId> Actions = new();
|
|
|
|
/// <summary>
|
|
/// Actions will only be available if the item is in the clothing slot.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public bool ActiveIfWorn;
|
|
}
|