Files
wwdpublic/Content.Server/StationEvents/Components/RandomSpawnRuleComponent.cs
PuroSlavKing 7ec558348c [Feature] Wormhole Anomaly (#156)
* [Feature] Wormhole Anomaly

* duration edit

* timed teleportation

* IRobustRandom

* Update Content.Server/_White/Anomaly/Effects/WormholeAnomalySystem.cs

Co-authored-by: Remuchi <72476615+Remuchi@users.noreply.github.com>

* remove on shutdown

* counts

---------

Co-authored-by: Remuchi <72476615+Remuchi@users.noreply.github.com>
2024-12-22 12:19:01 +07:00

31 lines
938 B
C#

using Content.Server.StationEvents.Events;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.StationEvents.Components;
/// <summary>
/// Spawns entities at random tiles on a station.
/// </summary>
[RegisterComponent, Access(typeof(RandomSpawnRule))]
public sealed partial class RandomSpawnRuleComponent : Component
{
/// <summary>
/// The entity to be spawned.
/// </summary>
[DataField("prototype", required: true, customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
public string Prototype = string.Empty;
/// <summary>
/// Minimum number of entities to spawn | WWDP
/// </summary>
[DataField("minCount")]
public int MinCount = 1;
/// <summary>
/// Maximum number of entities to spawn | WWDP
/// </summary>
[DataField("maxCount")]
public int MaxCount = 1;
}