Replace string data fields with LocId where relevant (#20883)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using System.Numerics;
|
||||
using Vector2 = System.Numerics.Vector2;
|
||||
|
||||
namespace Content.Server.Tabletop.Components
|
||||
{
|
||||
@@ -12,25 +11,25 @@ namespace Content.Server.Tabletop.Components
|
||||
/// <summary>
|
||||
/// The localized name of the board. Shown in the UI.
|
||||
/// </summary>
|
||||
[DataField("boardName")]
|
||||
public string BoardName { get; private set; } = "tabletop-default-board-name";
|
||||
[DataField]
|
||||
public LocId BoardName { get; private set; } = "tabletop-default-board-name";
|
||||
|
||||
/// <summary>
|
||||
/// The type of method used to set up a tabletop.
|
||||
/// </summary>
|
||||
[DataField("setup", required: true)]
|
||||
[DataField(required: true)]
|
||||
public TabletopSetup Setup { get; private set; } = new TabletopChessSetup();
|
||||
|
||||
/// <summary>
|
||||
/// The size of the viewport being opened. Must match the board dimensions otherwise you'll get the space parallax (unless that's what you want).
|
||||
/// </summary>
|
||||
[DataField("size")]
|
||||
[DataField]
|
||||
public Vector2i Size { get; private set; } = (300, 300);
|
||||
|
||||
/// <summary>
|
||||
/// The zoom of the viewport camera.
|
||||
/// </summary>
|
||||
[DataField("cameraZoom")]
|
||||
[DataField]
|
||||
public Vector2 CameraZoom { get; private set; } = Vector2.One;
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user