-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
53 lines (46 loc) · 1.1 KB
/
Program.cs
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using FrankyCLI;
Console.WriteLine("FrankyCLI. Build new ship part.");
//Process the args
for (int i = 0; i < args.Length; i++)
{
Console.WriteLine(args[i]);
}
if (args.Length < 4)
{
Console.WriteLine("Requires parameters:");
Console.WriteLine("modname mode prefix itemname modelfilepath");
return 1;
}
string modname = args[0];
string mode = args[1];
string prefix = args[2];
string item = args[3];
string modelpath = args[4];
if(modname == "Starfield")
{
Console.WriteLine("No way am I allowing you to edit Starfield.esm");
return 1;
}
int res = 0;
switch(mode)
{
case "struct":
res = gen_shipstruct.Generate(args);
break;
case "cellfix":
res = gen_cellfixer.Generate(args);
break;
case "placer":
res = gen_placer.Generate(args);
break;
case "pluginmerger":
res = gen_pluginmerger.Generate(args);
break;
case "upgradegenerator":
res = gen_upgradegenerator.Generate(args);
break;
default:
Console.WriteLine("No mode provided, valid types are: (struct)");
break;
}
return res;