Elin Decompiled Documentation EA 23.295 Stable Patch 2
Loading...
Searching...
No Matches
ListPeople.cs
Go to the documentation of this file.
2{
3 public override string TextTab
4 {
5 get
6 {
7 if (textTab.IsEmpty())
8 {
9 FactionBranch factionBranch = EClass.Branch ?? EClass.pc.homeBranch;
10 switch (memberType)
11 {
12 case FactionMemberType.Default:
13 return "residents".lang() + " (" + factionBranch.CountMembers(FactionMemberType.Default) + "/" + factionBranch.MaxPopulation + ")";
14 case FactionMemberType.Livestock:
15 return "livestock".lang() + " (" + factionBranch.CountMembers(FactionMemberType.Livestock) + ")";
16 case FactionMemberType.Guest:
17 return "guests".lang() + " (" + factionBranch.CountGuests() + ")";
18 }
19 }
20 return textTab;
21 }
22 }
23
24 public override string TextHeader => memberType switch
25 {
26 FactionMemberType.Default => "_listOf".lang("residents".lang()),
27 FactionMemberType.Livestock => "_listOf".lang("livestock".lang()),
28 FactionMemberType.Guest => "_listOf".lang("guests".lang()),
29 _ => textTab,
30 };
31
32 public override bool ShowCharaSheet => true;
33
34 public override bool ShowGoto => true;
35
36 public override bool ShowHome => memberType != FactionMemberType.Guest;
37
38 public override bool ShowShowMode => true;
39}
FactionMemberType
FactionMemberType memberType
FactionBranch homeBranch
Definition: Chara.cs:1080
Definition: EClass.cs:6
static Chara pc
Definition: EClass.cs:15
int CountMembers(FactionMemberType type, bool onlyAlive=false)
override string TextHeader
Definition: ListPeople.cs:24
override bool ShowCharaSheet
Definition: ListPeople.cs:32
override string TextTab
Definition: ListPeople.cs:4
override bool ShowGoto
Definition: ListPeople.cs:34
override bool ShowHome
Definition: ListPeople.cs:36
override bool ShowShowMode
Definition: ListPeople.cs:38