| 123456789101112131415161718192021222324252627 |
- using Robust.Shared.Noise;
- using Robust.Shared.Serialization;
- using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
- namespace Content.Shared.Parallax.Biomes.Layers;
- /// <summary>
- /// Contains more biome layers recursively via a biome template.
- /// Can be used for sub-biomes.
- /// </summary>
- [Serializable, NetSerializable]
- public sealed partial class BiomeMetaLayer : IBiomeLayer
- {
- [DataField("noise")]
- public FastNoiseLite Noise { get; private set; } = new(0);
- /// <inheritdoc/>
- [DataField("threshold")]
- public float Threshold { get; private set; } = -1f;
- /// <inheritdoc/>
- [DataField("invert")]
- public bool Invert { get; private set; }
- [DataField("template", required: true, customTypeSerializer: typeof(PrototypeIdSerializer<BiomeTemplatePrototype>))]
- public string Template = string.Empty;
- }
|