2024-08-23 22:06:37 -04:00
|
|
|
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;
|
2025-05-22 02:43:17 +10:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Should the count be per dungeon or across all dungeons.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public bool PerDungeon;
|
2024-08-23 22:06:37 -04:00
|
|
|
}
|