Remove redundant read-only VV from datafields (#12626)

This commit is contained in:
DrSmugleaf
2022-11-16 20:22:11 +01:00
committed by GitHub
parent fb892cb374
commit 7fbc2608e8
179 changed files with 171 additions and 462 deletions

View File

@@ -59,35 +59,30 @@ namespace Content.Shared.Cargo.Prototypes
/// <summary>
/// Texture path used in the CargoConsole GUI.
/// </summary>
[ViewVariables]
[DataField("icon")]
public SpriteSpecifier Icon { get; } = SpriteSpecifier.Invalid;
/// <summary>
/// The prototype name of the product.
/// </summary>
[ViewVariables]
[DataField("product", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
public string Product { get; } = string.Empty;
/// <summary>
/// The point cost of the product.
/// </summary>
[ViewVariables]
[DataField("cost")]
public int PointCost { get; }
/// <summary>
/// The prototype category of the product. (e.g. Engineering, Medical)
/// </summary>
[ViewVariables]
[DataField("category")]
public string Category { get; } = string.Empty;
/// <summary>
/// The prototype group of the product. (e.g. Contraband)
/// </summary>
[ViewVariables]
[DataField("group")]
public string Group { get; } = string.Empty;
}

View File

@@ -12,9 +12,9 @@ public sealed class CargoShuttlePrototype : IPrototype
[IdDataField]
public string ID { get; } = default!;
[ViewVariables, DataField("path")]
[DataField("path")]
public ResourcePath Path = default!;
[ViewVariables, DataField("nameDataset", customTypeSerializer:typeof(PrototypeIdSerializer<DatasetPrototype>))]
[DataField("nameDataset", customTypeSerializer:typeof(PrototypeIdSerializer<DatasetPrototype>))]
public string NameDataset = "CargoShuttleNames";
}