mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
26 lines
829 B
C#
26 lines
829 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 = [];
|
|
}
|