1
0
Fork 0

[server] Fix LineIncubator DrawnLine id assignment to enable tracking

This commit is contained in:
Starbeamrainbowlabs 2017-06-27 12:03:21 +01:00
parent fcfc330b28
commit bfdf1b0c6e
3 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ namespace Nibriboard.Client
{ {
// Create a new line if one doesn't exist already // Create a new line if one doesn't exist already
if(!currentLines.ContainsKey(lineId)) if(!currentLines.ContainsKey(lineId))
currentLines.Add(lineId, new DrawnLine()); currentLines.Add(lineId, new DrawnLine(lineId));
// Add these points to the line // Add these points to the line
currentLines[lineId].Points.AddRange(points); currentLines[lineId].Points.AddRange(points);

View File

@ -64,7 +64,7 @@ namespace Nibriboard.Client
} }
/// <summary> /// <summary>
/// Handles WebSocket clients when they first connect, wrapping them in /// Handles WebSocket clients when they first connect, wrapping them in
/// a <see cref="Nibriboard.NibriClient" /> instance and adding them to /// a <see cref="Nibriboard.Client.NibriClient" /> instance and adding them to
/// the client list. /// the client list.
/// </summary> /// </summary>
/// <param name="newSocket">New socket.</param> /// <param name="newSocket">New socket.</param>

View File

@ -63,7 +63,7 @@ namespace Nibriboard.RippleSpace
public DrawnLine() : this(Guid.NewGuid().ToString("N")) public DrawnLine() : this(Guid.NewGuid().ToString("N"))
{ {
} }
protected DrawnLine(string inLineId) public DrawnLine(string inLineId)
{ {
LineId = inLineId; LineId = inLineId;
} }