* D&D character sheets * Tabletop improvements * Grass battlemap * You can now put shit inside of the board * change variable name * make the grass tabletop better, again * update the damn thing AGAIN * update the shit AGAIN * You can now take stuff out of tabletops * Make it use parenting to avoid zany bugs * MORE battlemaps! Battlemaps for everyone! * You can now dump out pieces + cleanup * All (most) non-game pieces should fall to the ground * make the verb a bit more responsive * Librarian content officially done * fix tests i think * i forgot the sheet * Smidgen of refactoring * You can no longer put high risk items inside of boards * no boardgame defusal * minor refactoring * hoplogrma * doc * fix rt
43 lines
1.4 KiB
C#
43 lines
1.4 KiB
C#
using System.Numerics;
|
|
using Vector2 = System.Numerics.Vector2;
|
|
|
|
namespace Content.Server.Tabletop.Components
|
|
{
|
|
/// <summary>
|
|
/// A component that makes an object playable as a tabletop game.
|
|
/// </summary>
|
|
[RegisterComponent, Access(typeof(TabletopSystem))]
|
|
public sealed class TabletopGameComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The localized name of the board. Shown in the UI.
|
|
/// </summary>
|
|
[DataField("boardName")]
|
|
public string BoardName { get; } = "tabletop-default-board-name";
|
|
|
|
/// <summary>
|
|
/// The type of method used to set up a tabletop.
|
|
/// </summary>
|
|
[DataField("setup", required: true)]
|
|
public TabletopSetup Setup { get; } = 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")]
|
|
public Vector2i Size { get; } = (300, 300);
|
|
|
|
/// <summary>
|
|
/// The zoom of the viewport camera.
|
|
/// </summary>
|
|
[DataField("cameraZoom")]
|
|
public Vector2 CameraZoom { get; } = Vector2.One;
|
|
|
|
/// <summary>
|
|
/// The specific session of this tabletop.
|
|
/// </summary>
|
|
[ViewVariables]
|
|
public TabletopSession? Session { get; set; } = null;
|
|
}
|
|
}
|