Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ListPeopleBuySlave Class Reference
Inheritance diagram for ListPeopleBuySlave:
BaseListPeople ListOwner< Chara, ItemGeneral > EClass

Public Member Functions

override bool IsDisabled (Chara c)
 
override void OnCreate ()
 
override void OnInstantiate (Chara a, ItemGeneral b)
 
override void OnClick (Chara c, ItemGeneral i)
 
int Cost (Chara c)
 
override void OnList ()
 
- Public Member Functions inherited from BaseListPeople
virtual bool IsDisabled (Chara c)
 
override void List ()
 
override void OnInstantiate (Chara a, ItemGeneral b)
 
void AddSubButtonWork (ItemGeneral b, Chara a)
 
void WriteHobbies (UITooltip t, Chara a, BaseArea roomWork)
 
virtual void SetSubText (Chara a, ItemGeneral b)
 
override void OnClick (Chara c, ItemGeneral i)
 
override void OnList ()
 
override void OnRefreshMenu ()
 
- Public Member Functions inherited from ListOwner< Chara, ItemGeneral >
virtual void OnClick (T1 a, T2 b)
 
virtual void OnInstantiate (T1 a, T2 b)
 
virtual void OnList ()
 
virtual void List ()
 
virtual void OnCreate ()
 
virtual void OnSwitchContent ()
 
virtual void OnRefreshMenu ()
 
void RefreshTab ()
 
void MoveToOther (object c)
 

Properties

SlaverData data [get]
 
override LayerPeople.ShowMode ShowMode [get]
 
- Properties inherited from BaseListPeople
new LayerPeople layer [get]
 
override string IdHeaderRow [get]
 
virtual bool ShowCharaSheet [get]
 
virtual bool ShowShowMode [get]
 
virtual LayerPeople.ShowMode ShowMode [get]
 
virtual bool ShowGoto [get]
 
virtual bool ShowHome [get]
 
- Properties inherited from ListOwner< Chara, ItemGeneral >
ListOwner Main [get]
 
virtual string IdTitle [get]
 
virtual string IdHeaderRow [get]
 
virtual string TextTab [get]
 
virtual string TextHeader [get]
 
- Properties inherited from EClass
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Faction Wilds [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from EClass
static int rnd (int a)
 
static int curve (int a, int start, int step, int rate=75)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 
- Public Attributes inherited from BaseListPeople
Chara owner
 
FactionMemberType memberType
 
- Public Attributes inherited from ListOwner< Chara, ItemGeneral >
Layer layer
 
Window window
 
UIMultiList multi
 
ListOwner other
 
UIList list
 
WindowMenu menu
 
Window.Setting.Tab tab
 
string textTab
 
string textHeader
 
bool main
 
int index
 
- Static Public Attributes inherited from EClass
static Core core
 

Detailed Description

Definition at line 1 of file ListPeopleBuySlave.cs.

Member Function Documentation

◆ Cost()

int ListPeopleBuySlave.Cost ( Chara  c)
inline

Definition at line 34 of file ListPeopleBuySlave.cs.

35 {
36 return CalcMoney.BuySlave(c);
37 }
static int BuySlave(Chara c)
Definition: CalcMoney.cs:40

References CalcMoney.BuySlave().

Referenced by OnInstantiate().

◆ IsDisabled()

override bool ListPeopleBuySlave.IsDisabled ( Chara  c)
inlinevirtual

Reimplemented from BaseListPeople.

Definition at line 7 of file ListPeopleBuySlave.cs.

8 {
9 return false;
10 }

◆ OnClick()

override void ListPeopleBuySlave.OnClick ( Chara  c,
ItemGeneral  i 
)
inline

Definition at line 28 of file ListPeopleBuySlave.cs.

29 {
30 LayerPeople.slaveToBuy = c;
31 base.layer.Close();
32 }

◆ OnCreate()

override void ListPeopleBuySlave.OnCreate ( )
inlinevirtual

Reimplemented from ListOwner< Chara, ItemGeneral >.

Definition at line 12 of file ListPeopleBuySlave.cs.

13 {
14 if (data == null)
15 {
16 owner.SetObj(5, new SlaverData());
17 }
19 }
void SetObj(int id, object o)
Definition: BaseCard.cs:91
void TryRefresh(Chara owner)
Definition: SlaverData.cs:12

References data, BaseListPeople.owner, BaseCard.SetObj(), and SlaverData.TryRefresh().

◆ OnInstantiate()

override void ListPeopleBuySlave.OnInstantiate ( Chara  a,
ItemGeneral  b 
)
inline

Definition at line 21 of file ListPeopleBuySlave.cs.

22 {
23 base.OnInstantiate(a, b);
24 int money = EClass.pc.GetCurrency();
25 b.AddPrefab<UIItem>("costMoney").text1.SetText((Cost(a).ToString() ?? "").TagColorGoodBad(() => money >= Cost(a)));
26 }
int GetCurrency(string id="money")
Definition: Card.cs:3652
Definition: EClass.cs:5
static Chara pc
Definition: EClass.cs:14
Definition: UIItem.cs:5

References Cost(), Card.GetCurrency(), money, and EClass.pc.

◆ OnList()

override void ListPeopleBuySlave.OnList ( )
inlinevirtual

Reimplemented from BaseListPeople.

Definition at line 39 of file ListPeopleBuySlave.cs.

40 {
41 foreach (Chara item in data.list)
42 {
43 list.Add(item);
44 }
45 }
Definition: Chara.cs:10
List< Chara > list
Definition: SlaverData.cs:7
override void Add(object item)
Definition: UIList.cs:302

References UIList.Add(), data, item, ListOwner< Chara, ItemGeneral >.list, and SlaverData.list.

Property Documentation

◆ data

SlaverData ListPeopleBuySlave.data
get

Definition at line 3 of file ListPeopleBuySlave.cs.

Referenced by OnCreate(), and OnList().

◆ ShowMode

override LayerPeople.ShowMode ListPeopleBuySlave.ShowMode
get

Definition at line 5 of file ListPeopleBuySlave.cs.


The documentation for this class was generated from the following file: