Localize store categories (#12453)

This commit is contained in:
Morb
2022-11-09 02:36:48 +03:00
committed by GitHub
parent 6775648cc9
commit 8be499df5d
3 changed files with 36 additions and 14 deletions

View File

@@ -10,12 +10,18 @@ namespace Content.Shared.Store;
[Serializable, NetSerializable, DataDefinition]
public sealed class StoreCategoryPrototype : IPrototype
{
private string _name = string.Empty;
[ViewVariables]
[IdDataField]
public string ID { get; } = default!;
[DataField("name")]
public string Name { get; } = string.Empty;
public string Name
{
get => _name;
private set => _name = Loc.GetString(value);
}
[DataField("priority")]
public int Priority { get; } = 0;