Adds parchís game board, improves tabletop system to support other games. (#4610)

This commit is contained in:
Vera Aguilera Puerto
2021-09-18 10:40:38 +02:00
committed by GitHub
parent 5534aec102
commit e440df03db
18 changed files with 320 additions and 82 deletions

View File

@@ -2,6 +2,8 @@
using Content.Shared.Verbs;
using Robust.Shared.GameObjects;
using Robust.Shared.Localization;
using Robust.Shared.Maths;
using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Server.Tabletop.Components
{
@@ -13,6 +15,18 @@ namespace Content.Server.Tabletop.Components
{
public override string Name => "TabletopGame";
[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;
/// <summary>
/// A verb that allows the player to start playing a tabletop game.
/// </summary>