Files
crystall-punk-14/Content.Shared/Anomaly/Effects/Components/EntitySpawnAnomalyComponent.cs

26 lines
753 B
C#
Raw Permalink Normal View History

using Robust.Shared.GameStates;
2023-02-06 00:03:53 -05:00
using Robust.Shared.Prototypes;
namespace Content.Shared.Anomaly.Effects.Components;
[RegisterComponent, NetworkedComponent, Access(typeof(SharedEntityAnomalySystem))]
public sealed partial class EntitySpawnAnomalyComponent : Component
2023-02-06 00:03:53 -05:00
{
/// <summary>
/// All types of entity spawns with their settings
2023-10-05 20:53:53 +01:00
/// </summary>
[DataField]
public List<EntitySpawnSettingsEntry> Entries = new();
}
[DataRecord]
public partial record struct EntitySpawnSettingsEntry()
{
/// <summary>
/// A list of entities that are random picked to be spawned on each pulse
/// </summary>
public List<EntProtoId> Spawns { get; set; } = new();
public AnomalySpawnSettings Settings { get; set; } = new();
2023-02-06 00:03:53 -05:00
}