* Replace usages of customTypeSerializer PrototypeIdListSerializer with something that doesn't take 20 separate words to type out * Missed one * Missed another * Fix data field ids
35 lines
961 B
C#
35 lines
961 B
C#
using Content.Shared.Decals;
|
|
using Content.Shared.Maps;
|
|
using Robust.Shared.Noise;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Parallax.Biomes.Layers;
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed partial class BiomeDecalLayer : IBiomeWorldLayer
|
|
{
|
|
/// <inheritdoc/>
|
|
[DataField]
|
|
public List<ProtoId<ContentTileDefinition>> AllowedTiles { get; private set; } = new();
|
|
|
|
/// <summary>
|
|
/// Divide each tile up by this amount.
|
|
/// </summary>
|
|
[DataField("divisions")]
|
|
public float Divisions = 1f;
|
|
|
|
[DataField("noise")]
|
|
public FastNoiseLite Noise { get; private set; } = new(0);
|
|
|
|
/// <inheritdoc/>
|
|
[DataField("threshold")]
|
|
public float Threshold { get; private set; } = 0.8f;
|
|
|
|
/// <inheritdoc/>
|
|
[DataField("invert")] public bool Invert { get; private set; } = false;
|
|
|
|
[DataField(required: true)]
|
|
public List<ProtoId<DecalPrototype>> Decals = new();
|
|
}
|