mirror of
https://github.com/sbrl/Nibriboard.git
synced 2018-01-10 21:33:49 +00:00
[server] Add LinePart event message class
This commit is contained in:
parent
7d4c521877
commit
a8c1b8e99c
2 changed files with 28 additions and 0 deletions
27
Nibriboard/Client/Messages/LinePartMessage.cs
Normal file
27
Nibriboard/Client/Messages/LinePartMessage.cs
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
using SBRL.Utilities;
|
||||||
|
|
||||||
|
namespace Nibriboard.Client.Messages
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Senyt by a client who's in the middle of drawing a line.
|
||||||
|
/// Contains a collection of points that should be added to the line they're drawing.
|
||||||
|
/// </summary>
|
||||||
|
public class LinePartMessage : Message
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The id of the line to add the points to.
|
||||||
|
/// </summary>
|
||||||
|
public Guid LineId;
|
||||||
|
/// <summary>
|
||||||
|
/// The points to add to the line
|
||||||
|
/// </summary>
|
||||||
|
public List<Vector2> Points;
|
||||||
|
|
||||||
|
public LinePartMessage()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -95,6 +95,7 @@
|
||||||
<Compile Include="Utilities\ChunkTools.cs" />
|
<Compile Include="Utilities\ChunkTools.cs" />
|
||||||
<Compile Include="Client\Messages\ChunkUpdateRequestMessage.cs" />
|
<Compile Include="Client\Messages\ChunkUpdateRequestMessage.cs" />
|
||||||
<Compile Include="Client\ChunkCache.cs" />
|
<Compile Include="Client\ChunkCache.cs" />
|
||||||
|
<Compile Include="Client\Messages\LinePartMessage.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<EmbeddedResource Include="ClientFiles\index.html" />
|
<EmbeddedResource Include="ClientFiles\index.html" />
|
||||||
|
|
Loading…
Reference in a new issue