Files
tbd-station-14/Content.Shared/Procedural/DungeonLayers/EntityTableDunGen.cs
metalgearsloth 298f821bec Ore + entitytable fixes (#37675)
* Ore + entitytable fixes

Iterate every dungeon not just last.

* Big shot

* Fixes
2025-05-21 12:43:17 -04:00

28 lines
619 B
C#

using Content.Shared.EntityTable.EntitySelectors;
namespace Content.Shared.Procedural.DungeonLayers;
/// <summary>
/// Spawns entities inside of the dungeon randomly.
/// </summary>
public sealed partial class EntityTableDunGen : IDunGenLayer
{
// Counts separate to config to avoid some duplication.
[DataField]
public int MinCount = 1;
[DataField]
public int MaxCount = 1;
[DataField(required: true)]
public EntityTableSelector Table;
/// <summary>
/// Should the count be per dungeon or across all dungeons.
/// </summary>
[DataField]
public bool PerDungeon;
}