1
0
Fork 0

[server] Add new event to LineIncubator

This commit is contained in:
Starbeamrainbowlabs 2017-06-27 12:10:14 +01:00
parent bfdf1b0c6e
commit 058511be19
1 changed files with 19 additions and 0 deletions

View File

@ -5,6 +5,20 @@ using SBRL.Utilities;
namespace Nibriboard.Client
{
public class LinePartEventArgs : EventArgs
{
/// <summary>
/// The id of the line that justu had some points added to it.
/// </summary>
public string LineId;
/// <summary>
/// The new points that got added to the line.
/// </summary>
public List<DrawnLine> NewLineParts;
}
public delegate void OnLinePartAddition(object sender, LinePartEventArgs eventArgs);
/// <summary>
/// Manages the construction of lines that the clients are drawing bit by bit.
/// </summary>
@ -29,6 +43,11 @@ namespace Nibriboard.Client
}
}
/// <summary>
/// Fired when points get added to a line in this incubator.
/// </summary>
public event OnLinePartAddition OnLinePartAddition;
public LineIncubator()
{
}