Simplifying Machine Upgrading (#15802)

This commit is contained in:
Nemanja
2023-04-28 23:23:49 -04:00
committed by GitHub
parent cedec8d415
commit 823c8204c9
49 changed files with 199 additions and 499 deletions

View File

@@ -14,9 +14,15 @@ public sealed class MachinePartPrototype : IPrototype
[IdDataField]
public string ID { get; } = default!;
/// <summary>
/// A human-readable name for the machine part type.
/// </summary>
[DataField("name")]
public readonly string Name = string.Empty;
/// <summary>
/// A stock part entity based on the machine part.
/// </summary>
[DataField("stockPartPrototype", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
public string? StockPartPrototype { get; }
[DataField("stockPartPrototype", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>), required: true)]
public readonly string StockPartPrototype = string.Empty;
}