Files

29 lines
1.1 KiB
C#
Raw Permalink Normal View History

2023-04-20 10:43:13 +10:00
using Content.Shared.Weather;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
namespace Content.Shared.Salvage.Expeditions.Modifiers;
[Prototype("salvageWeatherMod")]
public sealed partial class SalvageWeatherMod : IPrototype, IBiomeSpecificMod
2023-04-20 10:43:13 +10:00
{
[IdDataField] public string ID { get; } = default!;
[DataField("desc")] public string Description { get; private set; } = string.Empty;
2023-04-20 10:43:13 +10:00
/// <inheritdoc/>
2023-04-20 10:43:13 +10:00
[DataField("cost")]
public float Cost { get; private set; } = 0f;
2023-04-20 10:43:13 +10:00
/// <inheritdoc/>
2023-09-19 22:52:01 +10:00
[DataField("biomes", customTypeSerializer: typeof(PrototypeIdListSerializer<SalvageBiomeModPrototype>))]
public List<string>? Biomes { get; private set; } = null;
2023-04-20 10:43:13 +10:00
/// <summary>
/// Weather prototype to use on the planet.
2023-04-20 10:43:13 +10:00
/// </summary>
[DataField("weather", required: true, customTypeSerializer:typeof(PrototypeIdSerializer<WeatherPrototype>))]
public string WeatherPrototype = string.Empty;
2023-04-20 10:43:13 +10:00
}