Files
tbd-station-14/Content.Server/Shuttles/Components/GridSpawnComponent.cs
Emisse 59e989a810 ruins (#23767)
* ruins

* code-side

* round-robin instead

---------

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
2024-01-09 15:29:36 -07:00

32 lines
804 B
C#

using Content.Server.Shuttles.Systems;
using Robust.Shared.Utility;
namespace Content.Server.Shuttles.Components;
/// <summary>
/// Similar to <see cref="GridFillComponent"/> except spawns the grid near to the station.
/// </summary>
[RegisterComponent, Access(typeof(ShuttleSystem))]
public sealed partial class GridSpawnComponent : Component
{
/// <summary>
/// Dictionary of groups where each group will have entries selected.
/// String is just an identifier to make yaml easier.
/// </summary>
[DataField(required: true)] public Dictionary<string, GridSpawnGroup> Groups = new();
}
[DataRecord]
public record struct GridSpawnGroup
{
public List<ResPath> Paths = new();
public int MinCount = 1;
public int MaxCount = 1;
public GridSpawnGroup()
{
}
}