Changes for prototype load parallelization (#13066)

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
Pieter-Jan Briers
2022-12-20 23:25:34 +01:00
committed by GitHub
parent 584921b423
commit a323671984
50 changed files with 169 additions and 249 deletions

View File

@@ -5,9 +5,6 @@ namespace Content.Shared.BarSign
[Prototype("barSign")]
public sealed class BarSignPrototype : IPrototype
{
private string _description = string.Empty;
private string _name = string.Empty;
[ViewVariables]
[IdDataFieldAttribute]
public string ID { get; } = default!;
@@ -15,19 +12,8 @@ namespace Content.Shared.BarSign
[DataField("icon")] public string Icon { get; private set; } = string.Empty;
[DataField("name")]
public string Name
{
get => _name;
private set => _name = Loc.GetString(value);
}
[DataField("description")]
public string Description
{
get => _description;
private set => _description = Loc.GetString(value);
}
[DataField("name")] public string Name { get; set; } = "";
[DataField("description")] public string Description { get; set; } = "";
[DataField("renameArea")]
public bool RenameArea { get; private set; } = true;