Elin Decompiled Documentation EA 23.102 Nightly
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 bool ShowCharaSheet => true;
25
26 public override bool ShowGoto => true;
27
28 public override bool ShowHome => memberType != FactionMemberType.Guest;
29
30 public override bool ShowShowMode => true;
31}
FactionMemberType
FactionMemberType memberType
FactionBranch homeBranch
Definition: Chara.cs:889
Definition: EClass.cs:5
static Chara pc
Definition: EClass.cs:14
int CountMembers(FactionMemberType type, bool onlyAlive=false)
override bool ShowCharaSheet
Definition: ListPeople.cs:24
override string TextTab
Definition: ListPeople.cs:4
override bool ShowGoto
Definition: ListPeople.cs:26
override bool ShowHome
Definition: ListPeople.cs:28
override bool ShowShowMode
Definition: ListPeople.cs:30