using System; using SBRL.Utilities; using Newtonsoft.Json; using SBRL.Utilities.Solutions; namespace Nibriboard.RippleSpace { /// /// Represents a client's state at a particular point in time. /// public class ClientState { /// /// The id of the client. /// public int Id; /// /// The date and time at which this client state snapshot was captured. /// public DateTime TimeCaptured = DateTime.Now; /// /// The name the client chose to identify themselves with. /// public string Name; /// /// The colour associated with the client. /// [JsonConverter(typeof(ToStringJsonConverter))] public ColourHSL Colour; /// /// The size and position of the client's viewport. /// public Rectangle Viewport = Rectangle.Zero; /// /// The absolute position of the client's cursor. /// public Vector2 CursorPosition = Vector2.Zero; public ClientState() { } } }