/// <summary> /// /// </summary> /// <param name="msg"></param> void DispatchDataIM(GameTime gameTime, NetIncomingMessage msg) { var netCmd = (NetCommand)msg.ReadByte(); switch (netCmd) { case NetCommand.UserCommand: DispatchUserCommand(gameTime, msg); break; case NetCommand.Notification: serverInstance.FeedNotification(msg.SenderConnection.PeekHailGuid(), msg.ReadString()); break; } }