mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-18 14:07:53 +03:00
* [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>
31 lines
938 B
C#
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;
|
|
}
|