Esempio n. 1
0
 /// <summary>
 /// Method responsible for send message to connected server.
 /// </summary>
 /// <param name="writer">The king buffer writer to send message.</param>
 public void SendMessage(IKingBufferWriter writer)
 {
     try
     {
         _networkListener.SendMessage(writer);
     }
     catch (Exception ex)
     {
         Console.WriteLine($"Error: {ex.Message}.");
     }
 }