VGRoid support (#27659)
* Dungeon spawn support for grid spawns * Recursive dungeons working * Mask approach working * zack * More work * Fix recursive dungeons * Heap of work * weh * the cud * rar * Job * weh * weh * weh * Master merges * orch * weh * vgroid most of the work * Tweaks * Tweaks * weh * do do do do do do * Basic layout * Ore spawning working * Big breaking changes * Mob gen working * weh * Finalising * emo * More finalising * reverty * Reduce distance
This commit is contained in:
42
Content.Shared/Procedural/DungeonLayers/OreDunGen.cs
Normal file
42
Content.Shared/Procedural/DungeonLayers/OreDunGen.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
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>
|
||||
public sealed 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;
|
||||
}
|
||||
Reference in New Issue
Block a user