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

Public Member Functions

void AddOutcome (WorkOutcome o)
 

Public Attributes

List< WorkOutcomeoutcomes
 
int[] ints = new int[5]
 
BitArray32 _bits
 

Properties

int id [get, set]
 
int efficiency [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]
 

Private Member Functions

void _OnSerializing (StreamingContext context)
 
void _OnDeserialized (StreamingContext context)
 

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 WorkSession.cs.

Member Function Documentation

◆ _OnDeserialized()

void WorkSession._OnDeserialized ( StreamingContext  context)
inlineprivate

Definition at line 46 of file WorkSession.cs.

47 {
48 _bits.SetInt(ints[0]);
49 }
BitArray32 _bits
Definition: WorkSession.cs:13
int[] ints
Definition: WorkSession.cs:11
void SetInt(int i)
Definition: BitArray32.cs:89

References _bits, ints, and BitArray32.SetInt().

◆ _OnSerializing()

void WorkSession._OnSerializing ( StreamingContext  context)
inlineprivate

Definition at line 40 of file WorkSession.cs.

41 {
42 ints[0] = _bits.ToInt();
43 }
int ToInt()
Definition: BitArray32.cs:84

References _bits, ints, and BitArray32.ToInt().

◆ AddOutcome()

void WorkSession.AddOutcome ( WorkOutcome  o)
inline

Definition at line 51 of file WorkSession.cs.

52 {
53 if (outcomes == null)
54 {
55 outcomes = new List<WorkOutcome>();
56 }
57 outcomes.Add(o);
58 }
List< WorkOutcome > outcomes
Definition: WorkSession.cs:8

References outcomes.

Member Data Documentation

◆ _bits

BitArray32 WorkSession._bits

Definition at line 13 of file WorkSession.cs.

Referenced by _OnDeserialized(), and _OnSerializing().

◆ ints

int [] WorkSession.ints = new int[5]

Definition at line 11 of file WorkSession.cs.

Referenced by _OnDeserialized(), and _OnSerializing().

◆ outcomes

List<WorkOutcome> WorkSession.outcomes

Definition at line 8 of file WorkSession.cs.

Referenced by AddOutcome().

Property Documentation

◆ efficiency

int WorkSession.efficiency
getset

Definition at line 27 of file WorkSession.cs.

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

Referenced by Chara.PerformWork().

◆ id

int WorkSession.id
getset

Definition at line 15 of file WorkSession.cs.

16 {
17 get
18 {
19 return ints[1];
20 }
21 set
22 {
23 ints[1] = value;
24 }
25 }

Referenced by Chara.PerformWork().


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