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

[server] Add new event to LineIncubator

This commit is contained in:
Starbeamrainbowlabs 2017-06-27 12:10:14 +01:00
parent bfdf1b0c6e
commit 058511be19

View file

@ -5,6 +5,20 @@ using SBRL.Utilities;
namespace Nibriboard.Client 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> /// <summary>
/// Manages the construction of lines that the clients are drawing bit by bit. /// Manages the construction of lines that the clients are drawing bit by bit.
/// </summary> /// </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() public LineIncubator()
{ {
} }