2017-02-04 21:26:48 +00:00
|
|
|
|
using System;
|
2017-02-05 14:46:40 +00:00
|
|
|
|
|
|
|
|
|
using SBRL.Utilities;
|
2017-02-04 21:26:48 +00:00
|
|
|
|
|
|
|
|
|
namespace RippleSpace
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents a client's state at a particular point in time.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class ClientState
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The id of the client.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int Id;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The date and time at which this client state snapshot was captured.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTime TimeCaptured = DateTime.Now;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The name the client chose to identify themselves with.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Name;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The size and position of the client's viewport.
|
|
|
|
|
/// </summary>
|
2017-02-05 14:46:40 +00:00
|
|
|
|
public Rectangle Viewport = Rectangle.Zero;
|
2017-02-04 21:26:48 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The absolute position of the client's cursor.
|
|
|
|
|
/// </summary>
|
2017-02-05 14:46:40 +00:00
|
|
|
|
public Vector2 AbsCursorPosition = Vector2.Zero;
|
2017-02-04 21:26:48 +00:00
|
|
|
|
|
|
|
|
|
public ClientState()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|