Speed Boots [Tier 3 Civ-Service] (#21438)

* Speed Boots

* validate

* monkey
This commit is contained in:
Nemanja
2023-11-07 20:25:43 -05:00
committed by GitHub
parent a6985e5b4b
commit 94368f1f00
24 changed files with 296 additions and 33 deletions

View File

@@ -0,0 +1,35 @@
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
{
}