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

[server] Log about new messages received - except CursorPosition messages, of course :P

This commit is contained in:
Starbeamrainbowlabs 2017-04-23 17:41:41 +01:00
parent 5914ee6d56
commit 31d9507fdb

View file

@ -159,6 +159,8 @@ namespace Nibriboard.Client
Log.WriteLine("[NibriClient#{0}] Received message with invalid event {1}.", Id, eventName); Log.WriteLine("[NibriClient#{0}] Received message with invalid event {1}.", Id, eventName);
return; return;
} }
if(eventName != "CursorPosition")
Log.WriteLine("[NibriClient#{0}] Recieved message with event {1}.", Id, eventName);
Type messageType = messageEventTypes[eventName]; Type messageType = messageEventTypes[eventName];
Type jsonNet = typeof(JsonConvert); Type jsonNet = typeof(JsonConvert);
@ -288,6 +290,8 @@ namespace Nibriboard.Client
/// </summary> /// </summary>
protected Task handlePlaneChangeMessage(PlaneChangeMessage message) protected Task handlePlaneChangeMessage(PlaneChangeMessage message)
{ {
Log.WriteLine("[NibriClient#{0}] Changing to plane {1}.", Id, message.NewPlaneName);
// Create a new plane with the specified name if it doesn't exist already // Create a new plane with the specified name if it doesn't exist already
if(manager.SpaceManager[message.NewPlaneName] == default(Plane)) if(manager.SpaceManager[message.NewPlaneName] == default(Plane))
manager.SpaceManager.CreatePlane(message.NewPlaneName); manager.SpaceManager.CreatePlane(message.NewPlaneName);