Elin Modding Docs Doc
Loading...
Searching...
No Matches
TraitFactionBoard.cs
1using System;
2using System.Collections.Generic;
3
4// Token: 0x02000418 RID: 1048
5public class TraitFactionBoard : Trait
6{
7 // Token: 0x17000948 RID: 2376
8 // (get) Token: 0x06001DD7 RID: 7639 RVA: 0x000ACAA4 File Offset: 0x000AACA4
9 public override bool IsHomeItem
10 {
11 get
12 {
13 return true;
14 }
15 }
16
17 // Token: 0x06001DD8 RID: 7640 RVA: 0x000ACAA8 File Offset: 0x000AACA8
18 public override void TrySetAct(ActPlan p)
19 {
20 if (!EClass._zone.IsPCFaction)
21 {
22 return;
23 }
24 p.TrySetAct("actChangeFactionName", delegate()
25 {
26 EClass.ui.AddLayer<LayerList>().SetStringList(delegate
27 {
28 List<string> list = new List<string>();
29 for (int i = 0; i < 10; i++)
30 {
31 list.Add(WordGen.GetCombinedName(this.GetAlias(), "faction", false));
32 }
33 return list;
34 }, delegate(int a, string b)
35 {
36 EClass.Home.name = b;
37 }, true).SetSize(450f, -1f).EnableReroll();
38 return false;
39 }, this.owner, null, 1, false, true, false);
40 p.TrySetAct("actShowSigns", delegate()
41 {
42 SE.Click();
43 foreach (Thing thing in EClass._map.things)
44 {
45 if (thing.IsInstalled && thing.source._origin == "sign")
46 {
47 thing.isMasked = false;
48 }
49 }
50 return false;
51 }, this.owner, null, 1, false, true, false);
52 p.TrySetAct("actHideSigns", delegate()
53 {
54 SE.Click();
55 foreach (Thing thing in EClass._map.things)
56 {
57 if (thing.IsInstalled && thing.source._origin == "sign")
58 {
59 thing.isMasked = true;
60 }
61 }
62 return false;
63 }, this.owner, null, 1, false, true, false);
64 }
65
66 // Token: 0x06001DD9 RID: 7641 RVA: 0x000ACB51 File Offset: 0x000AAD51
67 public string GetAlias()
68 {
69 return EClass.player.title;
70 }
71}
Definition Thing.cs:10
Definition Trait.cs:9