CatStation/Content.Shared/Whistle/WhistleComponent.cs
deltanedas cf7fde3d62
Big prototype and datafield cleanup (#45202)
* giant protoid cleanup

* yml changes

* !

---------

Co-authored-by: deltanedas <@deltanedas:goida.zip>
2026-08-12 02:07:22 +00:00

24 lines
603 B
C#

using Robust.Shared.GameStates;
using Content.Shared.Humanoid;
using Robust.Shared.Prototypes;
namespace Content.Shared.Whistle;
/// <summary>
/// Spawn attached entity for entities in range with <see cref="HumanoidAppearanceComponent"/>.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class WhistleComponent : Component
{
/// <summary>
/// Entity prototype to spawn
/// </summary>
[DataField]
public EntProtoId Effect = "WhistleExclamation";
/// <summary>
/// Range value.
/// </summary>
[DataField]
public float Distance = 0;
}