Climbing refactor (#20516)

This commit is contained in:
metalgearsloth
2023-10-11 10:41:11 +11:00
committed by GitHub
parent ab75941bc0
commit edbfef22d6
30 changed files with 637 additions and 661 deletions

View File

@@ -0,0 +1,36 @@
using Content.Shared.Interaction;
using Robust.Shared.Audio;
using Robust.Shared.GameStates;
namespace Content.Shared.Climbing.Components
{
/// <summary>
/// Indicates this entity can be vaulted on top of.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class ClimbableComponent : Component
{
/// <summary>
/// The range from which this entity can be climbed.
/// </summary>
[DataField("range")] public float Range = SharedInteractionSystem.InteractionRange / 1.4f;
/// <summary>
/// The time it takes to climb onto the entity.
/// </summary>
[DataField("delay")]
public float ClimbDelay = 1.5f;
/// <summary>
/// Sound to be played when a climb is started.
/// </summary>
[DataField("startClimbSound")]
public SoundSpecifier? StartClimbSound = null;
/// <summary>
/// Sound to be played when a climb finishes.
/// </summary>
[DataField("finishClimbSound")]
public SoundSpecifier? FinishClimbSound = null;
}
}