Localize diseases (#11916)
This commit is contained in:
@@ -11,12 +11,18 @@ namespace Content.Shared.Disease
|
||||
[DataDefinition]
|
||||
public sealed class DiseasePrototype : IPrototype, IInheritingPrototype
|
||||
{
|
||||
private string _name = string.Empty;
|
||||
|
||||
[ViewVariables]
|
||||
[IdDataFieldAttribute]
|
||||
public string ID { get; } = default!;
|
||||
|
||||
[DataField("name")]
|
||||
public string Name { get; } = string.Empty;
|
||||
public string Name
|
||||
{
|
||||
get => _name;
|
||||
private set => _name = Loc.GetString(value);
|
||||
}
|
||||
|
||||
[ParentDataFieldAttribute(typeof(AbstractPrototypeIdArraySerializer<DiseasePrototype>))]
|
||||
public string[]? Parents { get; private set; }
|
||||
|
||||
Reference in New Issue
Block a user