CatStation/Content.Shared/Tabletop/TabletopSession.cs
riccardi48 95a5f7c7de
Table top prediction (#44348)
* TabletopSystem-move-to-shared

* final refactor

* Update TabletopHologramComponent.cs

* Update AdminVerbSystem.Smites.cs

* merge

* line

* prediction fix

* Fix the scrunkly

* Also noticed this

---------

Co-authored-by: Pok245 <113675512+Pok27@users.noreply.github.com>
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
2026-06-27 11:17:13 +00:00

26 lines
832 B
C#

using System.Numerics;
using Robust.Shared.Map;
using Robust.Shared.Player;
namespace Content.Shared.Tabletop;
/// <summary>
/// A class for storing data about a running tabletop game.
/// </summary>
public sealed class TabletopSession(MapId tabletopMap, Vector2 position)
{
/// <summary>
/// The center position of this session.
/// </summary>
public readonly MapCoordinates Position = new(position, tabletopMap);
/// <summary>
/// The set of players currently playing this tabletop game.
/// </summary>
public readonly Dictionary<ICommonSession, TabletopSessionPlayerData> Players = [];
/// <summary>
/// All entities bound to this session. If you create an entity for this session, you have to add it here.
/// </summary>
public readonly HashSet<EntityUid> Entities = [];
}