Files
tbd-station-14/Content.Server/Tabletop/TabletopSession.cs
2023-10-28 09:59:53 +11:00

33 lines
1017 B
C#

using System.Numerics;
using Robust.Shared.Map;
using Robust.Shared.Player;
namespace Content.Server.Tabletop
{
/// <summary>
/// A class for storing data about a running tabletop game.
/// </summary>
public sealed class TabletopSession
{
/// <summary>
/// The center position of this session.
/// </summary>
public readonly MapCoordinates Position;
/// <summary>
/// The set of players currently playing this tabletop game.
/// </summary>
public readonly Dictionary<ICommonSession, TabletopSessionPlayerData> Players = new();
/// <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 = new();
public TabletopSession(MapId tabletopMap, Vector2 position)
{
Position = new MapCoordinates(position, tabletopMap);
}
}
}