1
0
Fork 0

[server] DrawnLine.LineWidth -> Width, and extra logging

This commit is contained in:
Starbeamrainbowlabs 2017-04-28 18:14:14 +01:00
parent d44012044b
commit 4efeff5a06
3 changed files with 5 additions and 3 deletions

View File

@ -8,7 +8,7 @@ namespace Nibriboard.Client.Messages
{
public class HandshakeRequestMessage : Message
{
/// <summary>
/// <summary>
/// The initial visible area on the client's screen.
/// Very useful for determining which chunks we should send a client when they first connect.
/// </summary>

View File

@ -387,7 +387,7 @@ namespace Nibriboard.Client
return;
}
DrawnLine line = manager.LineIncubator.CompleteLine(message.LineId);
line.LineWidth = message.LineWidth;
line.Width = message.LineWidth;
line.Colour = message.LineColour;
if(CurrentPlane == null)
@ -399,6 +399,8 @@ namespace Nibriboard.Client
});
return;
}
Log.WriteLine("[NibriClient#{0}] Adding {1}px {2} line", Id, line.Width, line.Colour);
await CurrentPlane.AddLine(line);
}

View File

@ -19,7 +19,7 @@ namespace Nibriboard.RippleSpace
/// <summary>
/// The width of the line.
/// </summary>
public int LineWidth;
public int Width;
/// <summary>
/// The colour of the line.
/// </summary>