mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* giant protoid cleanup * yml changes * ! --------- Co-authored-by: deltanedas <@deltanedas:goida.zip>
25 lines
966 B
C#
25 lines
966 B
C#
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Containers;
|
|
|
|
/// <summary>
|
|
/// Component for spawning entity prototypes into containers on map init.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Unlike <see cref="StorageFillComponent"/> this is deterministic and supports arbitrary containers. While this
|
|
/// could maybe be merged with that component, it would require significant changes to <see
|
|
/// cref="EntitySpawnCollection.GetSpawns"/>, which is also used by several other systems.
|
|
/// </remarks>
|
|
[RegisterComponent]
|
|
public sealed partial class ContainerFillComponent : Component
|
|
{
|
|
[DataField(required: true)]
|
|
public Dictionary<string, List<EntProtoId>> Containers = new();
|
|
|
|
/// <summary>
|
|
/// If true, entities spawned via the construction system will not have entities spawned into containers managed
|
|
/// by the construction system.
|
|
/// </summary>
|
|
[DataField]
|
|
public bool IgnoreConstructionSpawn = true;
|
|
}
|