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

Public Member Functions

string Name (int n)
 

Public Attributes

string id
 
int[] ints = new int[5]
 
BitArray32 bits
 

Package Functions

void OnSerializing (StreamingContext context)
 
void _OnDeserialized (StreamingContext context)
 

Properties

int num [get, set]
 
int show [get, set]
 
bool random [get, set]
 
bool floating [get, set]
 
SourceCollectible.Row Source [get]
 
bool IsUnique [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)
 
- Static Public Attributes inherited from EClass
static Core core
 

Detailed Description

Definition at line 16 of file Hoard.cs.

Member Function Documentation

◆ _OnDeserialized()

void Hoard.Item._OnDeserialized ( StreamingContext  context)
inlinepackage

Definition at line 95 of file Hoard.cs.

96 {
97 bits.Bits = (uint)ints[0];
98 }
int[] ints
Definition: Hoard.cs:22

References Hoard.Item.ints.

◆ Name()

string Hoard.Item.Name ( int  n)
inline

Definition at line 100 of file Hoard.cs.

101 {
102 return "(" + "collectible".lang() + ") [" + Lang._rarity(Source.rarity) + "] " + Source.GetName() + " x " + n;
103 }
SourceCollectible.Row Source
Definition: Hoard.cs:75
Definition: Lang.cs:6
static string _rarity(int a)
Definition: Lang.cs:187

References Lang._rarity(), and Hoard.Item.Source.

Referenced by Hoard.Add().

◆ OnSerializing()

void Hoard.Item.OnSerializing ( StreamingContext  context)
inlinepackage

Definition at line 89 of file Hoard.cs.

90 {
91 ints[0] = (int)bits.Bits;
92 }
BitArray32 bits
Definition: Hoard.cs:24
uint Bits
Definition: BitArray32.cs:6

References Hoard.Item.bits, BitArray32.Bits, and Hoard.Item.ints.

Member Data Documentation

◆ bits

BitArray32 Hoard.Item.bits

Definition at line 24 of file Hoard.cs.

Referenced by Hoard.Item.OnSerializing().

◆ id

string Hoard.Item.id

Definition at line 19 of file Hoard.cs.

◆ ints

int [] Hoard.Item.ints = new int[5]

Definition at line 22 of file Hoard.cs.

Referenced by Hoard.Item._OnDeserialized(), and Hoard.Item.OnSerializing().

Property Documentation

◆ floating

bool Hoard.Item.floating
getset

Definition at line 62 of file Hoard.cs.

63 {
64 get
65 {
66 return bits[1];
67 }
68 set
69 {
70 bits[1] = value;
71 }
72 }

◆ IsUnique

bool Hoard.Item.IsUnique
get

Definition at line 86 of file Hoard.cs.

Referenced by Hoard.Add().

◆ num

int Hoard.Item.num
getset

Definition at line 26 of file Hoard.cs.

27 {
28 get
29 {
30 return ints[1];
31 }
32 set
33 {
34 ints[1] = value;
35 }
36 }

Referenced by Hoard.Add().

◆ random

bool Hoard.Item.random
getset

Definition at line 50 of file Hoard.cs.

51 {
52 get
53 {
54 return bits[0];
55 }
56 set
57 {
58 bits[0] = value;
59 }
60 }

◆ show

int Hoard.Item.show
getset

Definition at line 38 of file Hoard.cs.

39 {
40 get
41 {
42 return ints[2];
43 }
44 set
45 {
46 ints[2] = value;
47 }
48 }

Referenced by Hoard.Add().

◆ Source

SourceCollectible.Row Hoard.Item.Source
get

Definition at line 74 of file Hoard.cs.

75 {
76 get
77 {
78 if (!EClass.sources.collectibles.initialized)
79 {
81 }
82 return EClass.sources.collectibles.map[id];
83 }
84 }
Definition: EClass.cs:5
static SourceManager sources
Definition: EClass.cs:42
string id
Definition: Hoard.cs:19
SourceCollectible collectibles

Referenced by Hoard.Add(), and Hoard.Item.Name().


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