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

[server] Update the line incubator to add additional methods for later

This commit is contained in:
Starbeamrainbowlabs 2017-04-16 15:54:59 +01:00
parent 2b36c9a09d
commit 405a5aad85

View file

@ -33,6 +33,22 @@ namespace Nibriboard.Client
{ {
} }
/// <summary>
/// Figures out whether an incomplete line with the given id exists or not.
/// </summary>
/// <param name="lineId">The line id to check for.</param>
public bool LineExists(Guid lineId)
{
if(currentLines[lineId] != null)
return true;
return false;
}
/// <summary>
/// Adds a series of points to the incomplete line with the specified id.
/// </summary>
/// <param name="lineId">The line id to add the points to.</param>
/// <param name="points">The points to add to the lines.</param>
public void AddBit(Guid lineId, List<LocationReference> points) public void AddBit(Guid lineId, List<LocationReference> points)
{ {
// Create a new line if one doesn't exist already // Create a new line if one doesn't exist already