Simplifying Machine Upgrading (#15802)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user