Speed Boots [Tier 3 Civ-Service] (#21438)
* Speed Boots * validate * monkey
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user