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:
parent
bfdf1b0c6e
commit
058511be19
1 changed files with 19 additions and 0 deletions
|
@ -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()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue