1
0
Fork 0
mirror of https://github.com/sbrl/Nibriboard.git synced 2018-01-10 21:33:49 +00:00

[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(); ClientState result = new ClientState();
result.Id = Id; result.Id = Id;
result.Name = Name; result.Name = Name;
result.Colour = Colour;
result.AbsCursorPosition = AbsoluteCursorPosition; result.AbsCursorPosition = AbsoluteCursorPosition;
result.Viewport = CurrentViewPort; result.Viewport = CurrentViewPort;

View file

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