fish-station/Content.Server/_Sunrise/Research/Artifact/Effects/AddComponentsInRadius/AddComponentsInRadiusComponent.cs
ThereDrD f23628a833
Новые смешные эффекты для артефактов с Fire Station (#2135)
Co-authored-by: Vigers Ray <60344369+VigersRay@users.noreply.github.com>
2025-05-27 01:10:10 +03:00

22 lines
843 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Content.Shared.Examine;
using Content.Shared.Whitelist;
using Robust.Shared.Prototypes;
namespace Content.Server._Sunrise.Research.Artifact.Effects.AddComponentsInRadius;
/// <summary>
/// Добавляет всем подходящим под вайтлист сущностням в переданном радиусе переданные компоненты
/// Если вайтлист пуст, то добавляет компоненты ВСЕМ СУЩНОСТЯМ ВОКРУГ
/// </summary>
[RegisterComponent]
public sealed partial class AddComponentsInRadiusComponent : Component
{
[DataField(required: true)]
public ComponentRegistry Components = default!;
[DataField, ViewVariables]
public float Radius = ExamineSystemShared.ExamineRange;
[DataField]
public EntityWhitelist? Whitelist;
}