Replace string data fields with LocId where relevant (#20883)

This commit is contained in:
DrSmugleaf
2023-10-10 20:06:24 -07:00
committed by GitHub
parent ef233cf0fe
commit 9bcf67753a
69 changed files with 265 additions and 286 deletions

View File

@@ -8,13 +8,13 @@ public sealed partial class WiresComponent : Component
/// <summary>
/// The name of this entity's internal board.
/// </summary>
[DataField("BoardName")]
public string BoardName { get; set; } = "wires-board-name-default";
[DataField]
public LocId BoardName { get; set; } = "wires-board-name-default";
/// <summary>
/// The layout ID of this entity's wires.
/// </summary>
[DataField("LayoutId", required: true)]
[DataField(required: true)]
public string LayoutId { get; set; } = default!;
/// <summary>
@@ -47,7 +47,7 @@ public sealed partial class WiresComponent : Component
/// If this should follow the layout saved the first time the layout dictated by the
/// layout ID is generated, or if a new wire order should be generated every time.
/// </summary>
[DataField("alwaysRandomize")]
[DataField]
public bool AlwaysRandomize { get; private set; }
/// <summary>
@@ -64,6 +64,6 @@ public sealed partial class WiresComponent : Component
[ViewVariables]
public Dictionary<object, object> StateData { get; } = new();
[DataField("pulseSound")]
[DataField]
public SoundSpecifier PulseSound = new SoundPathSpecifier("/Audio/Effects/multitool_pulse.ogg");
}