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

Public Member Functions

void UpdateRelations ()
 
Relation GetRelation (Chara c1, Chara c2)
 

Public Attributes

Dictionary< string, Relationdict = new Dictionary<string, Relation>()
 

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
 
- 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 4 of file RelationManager.cs.

Member Function Documentation

◆ GetRelation()

Relation RelationManager.GetRelation ( Chara  c1,
Chara  c2 
)
inline

Definition at line 13 of file RelationManager.cs.

14 {
15 string key = ((c1.uid < c2.uid) ? (c1.uid + "x" + c2.uid) : (c2.uid + "x" + c1.uid));
16 Relation relation = dict.TryGetValue(key);
17 if (relation == null)
18 {
19 relation = new Relation();
20 dict.Add(key, relation);
21 }
22 return relation;
23 }
int uid
Definition: Card.cs:118
Dictionary< string, Relation > dict

References dict, and Card.uid.

◆ UpdateRelations()

void RelationManager.UpdateRelations ( )
inline

Definition at line 9 of file RelationManager.cs.

10 {
11 }

Referenced by GameDate.AdvanceDay().

Member Data Documentation

◆ dict

Dictionary<string, Relation> RelationManager.dict = new Dictionary<string, Relation>()

Definition at line 7 of file RelationManager.cs.

Referenced by GetRelation().


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