Files
tbd-station-14/Content.Shared/Clothing/Components/ToggleClothingSpeedComponent.cs
Nemanja 94368f1f00 Speed Boots [Tier 3 Civ-Service] (#21438)
* Speed Boots

* validate

* monkey
2023-11-07 18:25:43 -07:00

36 lines
962 B
C#

using Content.Shared.Actions;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.Clothing.Components;
/// <summary>
/// This is used for a clothing item that gives a speed modification that is toggleable.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(ClothingSpeedModifierSystem)), AutoGenerateComponentState]
public sealed partial class ToggleClothingSpeedComponent : Component
{
/// <summary>
/// The action for toggling the clothing.
/// </summary>
[DataField]
public EntProtoId ToggleAction = "ActionToggleSpeedBoots";
/// <summary>
/// The action entity
/// </summary>
[DataField, AutoNetworkedField]
public EntityUid? ToggleActionEntity;
/// <summary>
/// The state of the toggle.
/// </summary>
[DataField, AutoNetworkedField]
public bool Enabled;
}
public sealed partial class ToggleClothingSpeedEvent : InstantActionEvent
{
}