44 lines
1.0 KiB
C#
44 lines
1.0 KiB
C#
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Procedural.DungeonLayers;
|
|
|
|
/// <summary>
|
|
/// Generates veins inside of the specified dungeon.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Generates on top of existing entities for sanity reasons moreso than performance.
|
|
/// </remarks>
|
|
[Virtual]
|
|
public partial class OreDunGen : IDunGenLayer
|
|
{
|
|
/// <summary>
|
|
/// If the vein generation should occur on top of existing entities what are we replacing.
|
|
/// </summary>
|
|
[DataField]
|
|
public EntProtoId? Replacement;
|
|
|
|
/// <summary>
|
|
/// Entity to spawn.
|
|
/// </summary>
|
|
[DataField(required: true)]
|
|
public EntProtoId Entity;
|
|
|
|
/// <summary>
|
|
/// Maximum amount of group spawns
|
|
/// </summary>
|
|
[DataField]
|
|
public int Count = 10;
|
|
|
|
/// <summary>
|
|
/// Minimum entities to spawn in one group.
|
|
/// </summary>
|
|
[DataField]
|
|
public int MinGroupSize = 1;
|
|
|
|
/// <summary>
|
|
/// Maximum entities to spawn in one group.
|
|
/// </summary>
|
|
[DataField]
|
|
public int MaxGroupSize = 1;
|
|
}
|