WhistleComponent.cs 687 B

12345678910111213141516171819202122232425
  1. using Robust.Shared.GameStates;
  2. using Content.Shared.Humanoid;
  3. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
  4. using Robust.Shared.Prototypes;
  5. namespace Content.Shared.Whistle;
  6. /// <summary>
  7. /// Spawn attached entity for entities in range with <see cref="HumanoidAppearanceComponent"/>.
  8. /// </summary>
  9. [RegisterComponent, NetworkedComponent]
  10. public sealed partial class WhistleComponent : Component
  11. {
  12. /// <summary>
  13. /// Entity prototype to spawn
  14. /// </summary>
  15. [DataField]
  16. public EntProtoId Effect = "WhistleExclamation";
  17. /// <summary>
  18. /// Range value.
  19. /// </summary>
  20. [DataField]
  21. public float Distance = 0;
  22. }