-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommendLine.cs
More file actions
33 lines (31 loc) · 910 Bytes
/
CommendLine.cs
File metadata and controls
33 lines (31 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using MSC;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace MSC.Script
{
public class CommendLine
{
public Body Body = new Body();
public Logger OutPuter = new Logger();
public bool OnWorking = false;
public void InstallMethods(string[] Lines)
{
try {
Body.Initialize(Lines);
}
catch(Exception ex) { OutPuter.AddMessage("ERROR: " + ex.Message, Log.Type.Error); }
}
public void StartScript()
{
try {
MethodParser mp = new MethodParser();
mp.ParseMethods(Body.Methods, this);
}
catch(Exception ex) { OutPuter.AddMessage("ERROR: " + ex.Message, Log.Type.Error); }
}
}
}