SalvageLightMod.cs 801 B

12345678910111213141516171819202122
  1. using Robust.Shared.Prototypes;
  2. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
  3. namespace Content.Shared.Salvage.Expeditions.Modifiers;
  4. [Prototype("salvageLightMod")]
  5. public sealed partial class SalvageLightMod : IPrototype, IBiomeSpecificMod
  6. {
  7. [IdDataField] public string ID { get; private set; } = default!;
  8. [DataField("desc")] public LocId Description { get; private set; } = string.Empty;
  9. /// <inheritdoc/>
  10. [DataField("cost")]
  11. public float Cost { get; private set; } = 0f;
  12. /// <inheritdoc/>
  13. [DataField("biomes", customTypeSerializer: typeof(PrototypeIdListSerializer<SalvageBiomeModPrototype>))]
  14. public List<string>? Biomes { get; private set; } = null;
  15. [DataField("color", required: true)] public Color? Color;
  16. }