* Setup new dungeon system (v2) * add custom basic generation * add maps linking shitcode, boo * add auto linking sub-world portal * fix deleted component * clearing otherside of the tiles manually (im stuck in wall, brother!) * Upgrade cave biome generation * add TODO * add ladder and hole sprites * add dungeon entrance prototypes * clean up, add docs * add many ambient sounds * Update CP14StationDungeonMapSystem.cs * remove bugs
28 lines
734 B
C#
28 lines
734 B
C#
using Content.Shared.Parallax.Biomes;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Server._CP14.StationDungeonMap;
|
|
|
|
/// <summary>
|
|
/// Initializes a procedurally generated world with points of interest
|
|
/// </summary>
|
|
[RegisterComponent, Access(typeof(CP14StationDungeonMapSystem))]
|
|
public sealed partial class CP14StationDungeonMapComponent : Component
|
|
{
|
|
[DataField(required: true)]
|
|
public ProtoId<BiomeTemplatePrototype> Biome = "Caves";
|
|
|
|
// If null, its random
|
|
[DataField]
|
|
public int? Seed = null;
|
|
|
|
[DataField]
|
|
public Color MapLightColor = Color.Black;
|
|
|
|
[DataField]
|
|
public string MapName = "Dungeon map";
|
|
|
|
[DataField(serverOnly: true)]
|
|
public ComponentRegistry Components = new();
|
|
}
|