Ejemplo n.º 1
0
 /// <summary>
 /// 標準出力データを受け取った時の処理
 /// </summary>
 public void p_OutputDataReceived(object sender,
                                  global::System.Diagnostics.DataReceivedEventArgs e)
 {
     //processMessage(sender, e);
     if (e != null && e.Data != null && e.Data.Length > 0)
     {
         //standardOutputStringBuilder.Append(e.Data + "\n");
         //Debug.Log(e.Data);
         var temp = e.Data.Split(' ');
         var cmd  = temp[0];
         var mes  = "";
         if (temp.Length > 1)
         {
             int count = 0;
             foreach (string m in temp)
             {
                 if (count > 0)
                 {
                     mes += m + " ";
                 }
                 count++;
             }
         }
         if (callbacks.ContainsKey(cmd))
         {
             callbacks[cmd](mes);
         }
         else
         {
             Debug.Log("Command not found:" + e.Data);
         }
     }
 }
Ejemplo n.º 2
0
 public void Delegate(object p, global::System.Diagnostics.DataReceivedEventArgs evtArgs)
 {
             #line 114 "/opt/haxe/std/cs/_std/Sys.hx"
     string data = evtArgs.Data;
     if ((((data != null)) ? ((data != "")) : (false)))
     {
                     #line 116 "/opt/haxe/std/cs/_std/Sys.hx"
         this.stderr.writeString(global::haxe.lang.Runtime.concat(data, "\n"), null);
     }
 }
Ejemplo n.º 3
0
 public void Delegate(object p, global::System.Diagnostics.DataReceivedEventArgs evtArgs)
 {
             #line 108 "/opt/haxe/std/cs/_std/Sys.hx"
     string data = evtArgs.Data;
     if ((((data != null)) ? ((data != "")) : (false)))
     {
                     #line 110 "/opt/haxe/std/cs/_std/Sys.hx"
         global::System.Console.WriteLine(((object)(data)));
     }
 }
Ejemplo n.º 4
0
 public void Delegate(object p1, global::System.Diagnostics.DataReceivedEventArgs evtArgs1)
 {
             #line 114 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Sys.hx"
     string data1 = evtArgs1.Data;
     if ((((data1 != null)) ? ((data1 != "")) : (false)))
     {
                     #line 116 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Sys.hx"
         this.stderr.writeString(global::haxe.lang.Runtime.concat(data1, "\n"), null);
     }
 }
Ejemplo n.º 5
0
 public void Delegate(object p, global::System.Diagnostics.DataReceivedEventArgs evtArgs)
 {
             #line 108 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Sys.hx"
     string data = evtArgs.Data;
     if ((((data != null)) ? ((data != "")) : (false)))
     {
                     #line 110 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Sys.hx"
         global::System.Console.WriteLine(((object)(data)));
     }
 }
Ejemplo n.º 6
0
 public override object __hx_invoke2_o(double __fn_float1, object __fn_dyn1, double __fn_float2, object __fn_dyn2)
 {
             #line 113 "/opt/haxe/std/cs/_std/Sys.hx"
     global::System.Diagnostics.DataReceivedEventArgs evtArgs = (((__fn_dyn2 == global::haxe.lang.Runtime.undefined)) ? (((global::System.Diagnostics.DataReceivedEventArgs)(((object)(__fn_float2))))) : (((global::System.Diagnostics.DataReceivedEventArgs)(__fn_dyn2))));
             #line 113 "/opt/haxe/std/cs/_std/Sys.hx"
     object p = (((__fn_dyn1 == global::haxe.lang.Runtime.undefined)) ? (((object)(__fn_float1))) : (((object)(__fn_dyn1))));
             #line 113 "/opt/haxe/std/cs/_std/Sys.hx"
     this.Delegate(p, evtArgs);
             #line 113 "/opt/haxe/std/cs/_std/Sys.hx"
     return(null);
 }
Ejemplo n.º 7
0
 public override object __hx_invoke2_o(double __fn_float1, object __fn_dyn1, double __fn_float2, object __fn_dyn2)
 {
             #line 113 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Sys.hx"
     global::System.Diagnostics.DataReceivedEventArgs evtArgs1 = (((__fn_dyn2 == global::haxe.lang.Runtime.undefined)) ? (((global::System.Diagnostics.DataReceivedEventArgs)(((object)(__fn_float2))))) : (((global::System.Diagnostics.DataReceivedEventArgs)(__fn_dyn2))));
             #line 113 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Sys.hx"
     object p1 = (((__fn_dyn1 == global::haxe.lang.Runtime.undefined)) ? (((object)(__fn_float1))) : (((object)(__fn_dyn1))));
             #line 113 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Sys.hx"
     this.Delegate(p1, evtArgs1);
             #line 113 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Sys.hx"
     return(null);
 }
Ejemplo n.º 8
0
 /// <summary>
 /// 標準エラーを受け取った時の処理
 /// </summary>
 public void p_ErrorDataReceived(object sender,
                                 global::System.Diagnostics.DataReceivedEventArgs e)
 {
     //必要な処理を書く
     if (e != null && e.Data != null && e.Data.Length > 0)
     {
         //standardOutputStringBuilder.Append(e.Data + "\n");
         //var bytes = System.Text.Encoding.GetEncoding(932).GetBytes(e.Data);
         //var mes = System.Text.Encoding.UTF8.GetString(bytes);
         Debug.LogError(e.Data);
     }
 }