ClimbableComponent.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using Content.Shared.Interaction;
  2. using Robust.Shared.Audio;
  3. using Robust.Shared.GameStates;
  4. namespace Content.Shared.Climbing.Components
  5. {
  6. /// <summary>
  7. /// Indicates this entity can be vaulted on top of.
  8. /// </summary>
  9. [RegisterComponent, NetworkedComponent]
  10. public sealed partial class ClimbableComponent : Component
  11. {
  12. /// <summary>
  13. /// The range from which this entity can be climbed.
  14. /// </summary>
  15. [DataField("range")] public float Range = SharedInteractionSystem.InteractionRange / 1.4f;
  16. /// <summary>
  17. /// The time it takes to climb onto the entity.
  18. /// </summary>
  19. [DataField("delay")]
  20. public float ClimbDelay = 1.5f;
  21. /// <summary>
  22. /// Sound to be played when a climb is started.
  23. /// </summary>
  24. [DataField("startClimbSound")]
  25. public SoundSpecifier? StartClimbSound = null;
  26. /// <summary>
  27. /// Sound to be played when a climb finishes.
  28. /// </summary>
  29. [DataField("finishClimbSound")]
  30. public SoundSpecifier? FinishClimbSound = null;
  31. }
  32. }