Remove redundant read-only VV from datafields (#12626)
This commit is contained in:
@@ -27,11 +27,9 @@ namespace Content.Shared.Materials
|
||||
[IdDataFieldAttribute]
|
||||
public string ID { get; } = default!;
|
||||
|
||||
[ViewVariables]
|
||||
[DataField("stack", customTypeSerializer:typeof(PrototypeIdSerializer<StackPrototype>))]
|
||||
public string? StackId { get; } = null;
|
||||
|
||||
[ViewVariables]
|
||||
[DataField("name")]
|
||||
public string Name
|
||||
{
|
||||
@@ -39,14 +37,12 @@ namespace Content.Shared.Materials
|
||||
private set => _name = Loc.GetString(value);
|
||||
}
|
||||
|
||||
[ViewVariables]
|
||||
[DataField("color")]
|
||||
public Color Color { get; } = Color.Gray;
|
||||
|
||||
/// <summary>
|
||||
/// An icon used to represent the material in graphic interfaces.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
[DataField("icon")]
|
||||
public SpriteSpecifier Icon { get; } = SpriteSpecifier.Invalid;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user