Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitFactionBoard.cs
Go to the documentation of this file.
1
using
System.Collections.Generic;
2
3
public
class
TraitFactionBoard
:
TraitBoard
4
{
5
public
override
bool
IsHomeItem
=>
true
;
6
7
public
override
void
TrySetAct
(
ActPlan
p)
8
{
9
if
(!
EClass
.
_zone
.
IsPCFaction
)
10
{
11
return
;
12
}
13
p.
TrySetAct
(
"actChangeFactionName"
, delegate
14
{
15
EClass
.
ui
.AddLayer<
LayerList
>().SetStringList(delegate
16
{
17
List<string> list =
new
List<string>();
18
for
(
int
i = 0; i < 10; i++)
19
{
20
list.Add(WordGen.GetCombinedName(
GetAlias
()));
21
}
22
return
list;
23
}, delegate(
int
a,
string
b)
24
{
25
EClass.Home.name = b;
26
}).SetSize()
27
.
EnableReroll
();
28
return
false
;
29
},
owner
);
30
p.
TrySetAct
(
"actShowSigns"
, delegate
31
{
32
SE.Click();
33
foreach
(
Thing
thing
in
EClass
.
_map
.
things
)
34
{
35
if
(thing.
IsInstalled
&& thing.
source
._origin ==
"sign"
)
36
{
37
thing.isMasked =
false
;
38
}
39
}
40
return
false
;
41
},
owner
);
42
p.
TrySetAct
(
"actHideSigns"
, delegate
43
{
44
SE.Click();
45
foreach
(
Thing
thing2
in
EClass
.
_map
.
things
)
46
{
47
if
(thing2.
IsInstalled
&& thing2.
source
._origin ==
"sign"
)
48
{
49
thing2.isMasked =
true
;
50
}
51
}
52
return
false
;
53
},
owner
);
54
}
55
56
public
string
GetAlias
()
57
{
58
return
EClass
.
player
.
title
;
59
}
60
}
ActPlan
Definition:
ActPlan.cs:8
ActPlan.TrySetAct
bool TrySetAct(string lang, Func< bool > onPerform, Card tc, CursorInfo cursor=null, int dist=1, bool isHostileAct=false, bool localAct=true, bool canRepeat=false)
Definition:
ActPlan.cs:344
Card.IsInstalled
bool IsInstalled
Definition:
Card.cs:2241
EClass
Definition:
EClass.cs:5
EClass._zone
static Zone _zone
Definition:
EClass.cs:20
EClass._map
static Map _map
Definition:
EClass.cs:18
EClass.player
static Player player
Definition:
EClass.cs:12
EClass.ui
static UI ui
Definition:
EClass.cs:16
LayerList
Definition:
LayerList.cs:6
LayerList.EnableReroll
LayerList EnableReroll()
Definition:
LayerList.cs:259
Map.things
List< Thing > things
Definition:
Map.cs:49
Player.title
string title
Definition:
Player.cs:805
Thing
Definition:
Thing.cs:8
Thing.source
SourceThing.Row source
Definition:
Thing.cs:11
TraitBoard
Definition:
TraitBoard.cs:2
TraitFactionBoard
Definition:
TraitFactionBoard.cs:4
TraitFactionBoard.TrySetAct
override void TrySetAct(ActPlan p)
Definition:
TraitFactionBoard.cs:7
TraitFactionBoard.IsHomeItem
override bool IsHomeItem
Definition:
TraitFactionBoard.cs:5
TraitFactionBoard.GetAlias
string GetAlias()
Definition:
TraitFactionBoard.cs:56
Trait.owner
Card owner
Definition:
Trait.cs:26
Zone.IsPCFaction
bool IsPCFaction
Definition:
Zone.cs:464
Elin
TraitFactionBoard.cs
Generated by
1.9.6