Ejemplo n.º 1
0
 /// <summary>
 /// Called on recieving a message
 /// </summary>
 /// <param name="s"></param>
 public static void RecieveLine(byte[] array)
 {
     try
     {
         instance.onGetMessage(array);
     }
     catch (Exception ex)
     {
         ModAPI.Log.Write(ex.ToString());
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Called on recieving a message
        /// </summary>
        /// <param name="s"></param>
        public static void RecieveLine(string s)
        {
            try
            {
                //For testing purposes
                ModAPI.Log.Write("RECIEVED:" + s);

                instance.onGetMessage(s);
            }
            catch (Exception ex)
            {
                ModAPI.Log.Write(ex.ToString());
            }
        }