MovementSoundComponent.cs 566 B

1234567891011121314151617181920
  1. using Robust.Shared.Audio;
  2. using Robust.Shared.GameStates;
  3. namespace Content.Shared.Movement.Components;
  4. /// <summary>
  5. /// Plays a sound whenever InputMover is running.
  6. /// </summary>
  7. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  8. public sealed partial class MovementSoundComponent : Component
  9. {
  10. /// <summary>
  11. /// Sound to play when InputMover has inputs.
  12. /// </summary>
  13. [DataField(required: true), AutoNetworkedField]
  14. public SoundSpecifier? Sound;
  15. [DataField, AutoNetworkedField]
  16. public EntityUid? SoundEntity;
  17. }