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

Public Member Functions

Chara GetAndCache (int uid)
 
void Set (ref int val, Chara c)
 

Static Public Member Functions

static Chara Get (int uid)
 
- 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

Chara chara
 

Additional Inherited Members

- Static Public Attributes inherited from EClass
static Core core
 
- 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]
 

Detailed Description

Definition at line 1 of file RefChara.cs.

Member Function Documentation

◆ Get()

static Chara RefChara.Get ( int  uid)
inlinestatic

Definition at line 36 of file RefChara.cs.

37 {
38 return Core.Instance.game.cards.globalCharas.TryGetValue(uid);
39 }
GlobalCharaList globalCharas
Definition: CardManager.cs:46
Definition: Core.cs:14
Game game
Definition: Core.cs:72
static new Core Instance
Definition: Core.cs:15
CardManager cards
Definition: Game.cs:155

References Game.cards, Core.game, CardManager.globalCharas, and Core.Instance.

Referenced by CharaList.Get(), and Party.SetMembers().

◆ GetAndCache()

Chara RefChara.GetAndCache ( int  uid)
inline

Definition at line 5 of file RefChara.cs.

6 {
8 {
9 return chara;
10 }
11 if (uid == 0)
12 {
13 return null;
14 }
15 chara = Core.Instance.game.cards.globalCharas.TryGetValue(uid);
16 if (chara == null)
17 {
18 foreach (Chara chara in EClass._map.charas)
19 {
20 if (chara.uid == uid)
21 {
22 this.chara = chara;
23 break;
24 }
25 }
26 }
27 return this.chara;
28 }
int uid
Definition: Card.cs:118
Definition: Chara.cs:10
override bool IsAliveInCurrentZone
Definition: Chara.cs:546
override bool IsGlobal
Definition: Chara.cs:595
Definition: EClass.cs:5
static Map _map
Definition: EClass.cs:18
List< Chara > charas
Definition: Map.cs:81
Chara chara
Definition: RefChara.cs:3

References EClass._map, Game.cards, chara, Map.charas, Core.game, CardManager.globalCharas, Core.Instance, Chara.IsAliveInCurrentZone, Chara.IsGlobal, and Card.uid.

◆ Set()

void RefChara.Set ( ref int  val,
Chara  c 
)
inline

Definition at line 30 of file RefChara.cs.

31 {
32 chara = c;
33 val = c?.uid ?? 0;
34 }

References chara, and Card.uid.

Member Data Documentation

◆ chara

Chara RefChara.chara

Definition at line 3 of file RefChara.cs.

Referenced by GetAndCache(), and Set().


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