| 1234567891011121314151617181920212223242526272829303132 |
- 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);
- }
- }
- }
|