| 12345678910111213141516171819202122232425 |
- using Robust.Shared.GameStates;
- using Content.Shared.Humanoid;
- using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
- 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;
- }
|