Files
crystall-punk-14/Content.Shared/Mining/OrePrototype.cs

27 lines
740 B
C#
Raw Normal View History

2023-06-25 21:12:47 +03:00
using Robust.Shared.Prototypes;
2022-10-20 09:16:29 -04:00
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Shared.Mining;
/// <summary>
/// This is a prototype for defining ores that generate in rock
/// </summary>
[Prototype("ore")]
public sealed partial class OrePrototype : IPrototype
2022-10-20 09:16:29 -04:00
{
/// <inheritdoc/>
[IdDataField]
public string ID { get; private set; } = default!;
2022-10-20 09:16:29 -04:00
[DataField("oreEntity", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
public string? OreEntity;
[DataField("minOreYield")]
public int MinOreYield = 1;
[DataField("maxOreYield")]
public int MaxOreYield = 1;
//TODO: add sprites for ores for things like mining analyzer
}