-
Notifications
You must be signed in to change notification settings - Fork 0
/
Faction.cs
57 lines (47 loc) · 1.66 KB
/
Faction.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
54
55
56
57
using Mutagen.Bethesda.Plugins;
namespace StarArmory
{
class Faction
{
public string Name { get; set; }
public List<SimpleForm> Hats { get; set; }
public List<SimpleForm> Clothes { get; set; }
public List<SimpleForm> Spacesuits { get; set; }
public List<SimpleForm> SpaceHelmets { get; set; }
public List<SimpleForm> Boostpacks { get; set; }
public List<SimpleForm> OutfitSpacesuit { get; set; }
public List<SimpleForm> OutfitClothes { get; set; }
public List<SimpleForm> RangedWeapons { get; set; }
public List<SimpleForm> MeleeWeapons { get; set; }
public List<SimpleForm> Grenades { get; set; }
public List<SimpleForm> Consumables { get; set; }
}
class SimpleForm
{
public SimpleForm(string modname, uint formkey)
{
this.modname = modname;
this.formkey = formkey;
}
public SimpleForm() { }
public uint formkey { get; set; }
public string modname { get; set; }
//Optional but useful when making factions.
public string editorId { get; set; }
public bool? Helmet { get; set; }
public FormKey GetFormKey()
{
string stripped = this.modname.Replace(".esm", "");
ModKey modKey = new ModKey(stripped, ModType.Master);
FormKey key = new FormKey(modKey, this.formkey);
return key;
}
}
class FactionPlan
{
public bool clearvanillaitems { get; set; }
public string gender { get; set; }
public Faction faction { get; set; }
public List<string> mods { get; set; }
}
}