Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
CodexCreature Class Reference
Inheritance diagram for CodexCreature:
EClass

Public Member Functions

void SetImage (Image image, int idSkin=0, bool nativeSize=true)
 
string GetTextBonus ()
 

Public Attributes

string id
 
int[] _ints = new int[5]
 

Properties

string Name [get]
 
SourceChara.Row source [get]
 
int numCard [get, set]
 
int weakspot [get, set]
 
int kills [get, set]
 
int spawns [get, set]
 
int BonusDropLv [get]
 
bool droppedCard [get, set]
 
- 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)
 
- Static Public Attributes inherited from EClass
static Core core
 

Detailed Description

Definition at line 5 of file CodexCreature.cs.

Member Function Documentation

◆ GetTextBonus()

string CodexCreature.GetTextBonus ( )
inline

Definition at line 94 of file CodexCreature.cs.

95 {
96 string result = "noItem".lang();
97 if (BonusDropLv > 0)
98 {
99 result = "codexBonus1".lang(BonusDropLv.ToString() ?? "");
100 }
101 return result;
102 }

References BonusDropLv.

Referenced by ContentCodex.RefreshInfo().

◆ SetImage()

void CodexCreature.SetImage ( Image  image,
int  idSkin = 0,
bool  nativeSize = true 
)
inline

Definition at line 88 of file CodexCreature.cs.

89 {
90 source.SetImage(image, null, 0, nativeSize, 0, idSkin);
91 image.SetActive(enable: true);
92 }
SourceChara.Row source

References source.

Referenced by ContentCodex.RefreshInfo(), and ContentCodex.RefreshList().

Member Data Documentation

◆ _ints

int [] CodexCreature._ints = new int[5]

Definition at line 10 of file CodexCreature.cs.

◆ id

string CodexCreature.id

Definition at line 7 of file CodexCreature.cs.

Referenced by ContentCodex.OnClickGetCard().

Property Documentation

◆ BonusDropLv

int CodexCreature.BonusDropLv
get

Definition at line 64 of file CodexCreature.cs.

65 {
66 get
67 {
68 if (numCard > 1)
69 {
70 return (int)Mathf.Sqrt((float)numCard * 1.5f);
71 }
72 return 0;
73 }
74 }

Referenced by GetTextBonus(), and Card.SpawnLoot().

◆ droppedCard

bool CodexCreature.droppedCard
getset

Definition at line 76 of file CodexCreature.cs.

77 {
78 get
79 {
80 return (_ints[1] & 2) != 0;
81 }
82 set
83 {
84 _ints[1] = (value ? (_ints[1] | 2) : (_ints[1] & -3));
85 }
86 }

Referenced by CodexManager.MarkCardDrop().

◆ kills

int CodexCreature.kills
getset

Definition at line 40 of file CodexCreature.cs.

41 {
42 get
43 {
44 return _ints[3];
45 }
46 set
47 {
48 _ints[3] = value;
49 }
50 }

Referenced by CodexManager.AddKill(), and ContentCodex.RefreshInfo().

◆ Name

string CodexCreature.Name
get

Definition at line 12 of file CodexCreature.cs.

Referenced by ContentCodex.RefreshInfo(), and ContentCodex.RefreshList().

◆ numCard

int CodexCreature.numCard
getset

Definition at line 16 of file CodexCreature.cs.

17 {
18 get
19 {
20 return _ints[0];
21 }
22 set
23 {
24 _ints[0] = value;
25 }
26 }

Referenced by CodexManager.AddCard(), ContentCodex.OnClickGetCard(), ContentCodex.RefreshInfo(), and ContentCodex.RefreshList().

◆ source

SourceChara.Row CodexCreature.source
get

Definition at line 14 of file CodexCreature.cs.

Referenced by ContentCodex.RefreshInfo(), ContentCodex.RefreshList(), and SetImage().

◆ spawns

int CodexCreature.spawns
getset

Definition at line 52 of file CodexCreature.cs.

53 {
54 get
55 {
56 return _ints[4];
57 }
58 set
59 {
60 _ints[4] = value;
61 }
62 }

Referenced by CodexManager.AddSpawn(), and ContentCodex.RefreshInfo().

◆ weakspot

int CodexCreature.weakspot
getset

Definition at line 28 of file CodexCreature.cs.

29 {
30 get
31 {
32 return _ints[2];
33 }
34 set
35 {
36 _ints[2] = value;
37 }
38 }

Referenced by CodexManager.AddWeakspot(), Card.DamageHP(), and ContentCodex.RefreshInfo().


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