using Robust.Shared.GameStates; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom; namespace Content.Shared.Xenoarchaeology.Artifact.XAT.Components; /// /// This is used a XAT that activates when an entity fulfilling the given whitelist is nearby the artifact. /// [RegisterComponent, NetworkedComponent, Access(typeof(XATCompNearbyComponent)), AutoGenerateComponentState] public sealed partial class XATCompNearbyComponent : Component { /// /// Component name that is required to activate trigger. /// Is spelled without 'Component' suffix. /// [DataField(customTypeSerializer: typeof(ComponentNameSerializer)), AutoNetworkedField] public string RequireComponentWithName = "Item"; /// /// Radius, in which trigger going to search for entity with component. /// [DataField, AutoNetworkedField] public float Radius = 5; /// /// Required entities count. /// [DataField, AutoNetworkedField] public int Count = 1; }