mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
* giant protoid cleanup * yml changes * ! --------- Co-authored-by: deltanedas <@deltanedas:goida.zip>
24 lines
603 B
C#
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;
|
|
}
|