Remove field: from DataField attributes (#3932)

This commit is contained in:
DrSmugleaf
2021-05-04 15:37:16 +02:00
committed by GitHub
parent 85f3871536
commit ad3b7fe97d
84 changed files with 228 additions and 242 deletions

View File

@@ -15,27 +15,27 @@ namespace Content.Shared.Maps
[ViewVariables]
string IPrototype.ID => Name;
[field: DataField("name", required: true)] public string Name { get; } = string.Empty;
[DataField("name", required: true)] public string Name { get; } = string.Empty;
public ushort TileId { get; private set; }
[field: DataField("display_name")] public string DisplayName { get; } = string.Empty;
[DataField("display_name")] public string DisplayName { get; } = string.Empty;
[field: DataField("texture")] public string SpriteName { get; } = string.Empty;
[DataField("texture")] public string SpriteName { get; } = string.Empty;
[DataField("is_subfloor")] public bool IsSubFloor { get; private set; }
[field: DataField("base_turfs")] public List<string> BaseTurfs { get; } = new();
[DataField("base_turfs")] public List<string> BaseTurfs { get; } = new();
[DataField("can_crowbar")] public bool CanCrowbar { get; private set; }
[field: DataField("footstep_sounds")] public string FootstepSounds { get; } = string.Empty;
[DataField("footstep_sounds")] public string FootstepSounds { get; } = string.Empty;
[DataField("friction")] public float Friction { get; set; }
[DataField("thermalConductivity")] public float ThermalConductivity { get; set; } = 0.05f;
[field: DataField("item_drop")] public string ItemDropPrototypeName { get; } = "FloorTileItemSteel";
[DataField("item_drop")] public string ItemDropPrototypeName { get; } = "FloorTileItemSteel";
[DataField("is_space")] public bool IsSpace { get; private set; }