1
0
Fork 0

[server] Send client colours in state updates

This commit is contained in:
Starbeamrainbowlabs 2017-02-19 11:58:00 +00:00
parent 08ee44a5c4
commit cfdb1c8309
2 changed files with 6 additions and 0 deletions

View File

@ -161,6 +161,7 @@ namespace Nibriboard.Client
ClientState result = new ClientState();
result.Id = Id;
result.Name = Name;
result.Colour = Colour;
result.AbsCursorPosition = AbsoluteCursorPosition;
result.Viewport = CurrentViewPort;

View File

@ -24,6 +24,11 @@ namespace RippleSpace
/// </summary>
public string Name;
/// <summary>
/// The colour associated with the client.
/// </summary>
public ColourHSL Colour;
/// <summary>
/// The size and position of the client's viewport.
/// </summary>