namespace Content.Server.Tabletop.Components { /// /// A component that makes an object playable as a tabletop game. /// [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; } }