1
0

BiomeDunGen.cs 624 B

123456789101112131415161718192021
  1. using Content.Shared.Maps;
  2. using Content.Shared.Parallax.Biomes;
  3. using Robust.Shared.Prototypes;
  4. namespace Content.Shared.Procedural.PostGeneration;
  5. /// <summary>
  6. /// Generates a biome on top of valid tiles, then removes the biome when done.
  7. /// Only works if no existing biome is present.
  8. /// </summary>
  9. public sealed partial class BiomeDunGen : IDunGenLayer
  10. {
  11. [DataField(required: true)]
  12. public ProtoId<BiomeTemplatePrototype> BiomeTemplate;
  13. /// <summary>
  14. /// creates a biome only on the specified tiles
  15. /// </summary>
  16. [DataField]
  17. public HashSet<ProtoId<ContentTileDefinition>>? TileMask;
  18. }