Mining Tweaks (#11468)
This commit is contained in:
27
Content.Shared/Mining/OrePrototype.cs
Normal file
27
Content.Shared/Mining/OrePrototype.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using Robust.Shared.Prototypes;
|
||||
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")]
|
||||
[DataDefinition]
|
||||
public sealed class OrePrototype : IPrototype
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
[IdDataField]
|
||||
public string ID { get; } = default!;
|
||||
|
||||
[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
|
||||
}
|
||||
Reference in New Issue
Block a user