Files
tbd-station-14/Content.Server/Tabletop/Components/TabletopGameComponent.cs
2022-05-13 17:59:03 +10:00

25 lines
768 B
C#

namespace Content.Server.Tabletop.Components
{
/// <summary>
/// A component that makes an object playable as a tabletop game.
/// </summary>
[RegisterComponent, Friend(typeof(TabletopSystem))]
public sealed class TabletopGameComponent : Component
{
[DataField("boardName")]
public string BoardName { get; } = "tabletop-default-board-name";
[DataField("setup", required: true)]
public TabletopSetup Setup { get; } = new TabletopChessSetup();
[DataField("size")]
public Vector2i Size { get; } = (300, 300);
[DataField("cameraZoom")]
public Vector2 CameraZoom { get; } = Vector2.One;
[ViewVariables]
public TabletopSession? Session { get; set; } = null;
}
}