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

Public Member Functions

GameIndex Create (Game game)
 

Public Attributes

Date date
 
Date real
 
string id
 
string color
 
int days
 
int deepest
 
Version version
 
string zoneName
 
string factionName
 
string pcName
 
string aka
 
string idPortrait
 
string idRace
 
string idJob
 
bool madeBackup
 
bool isBackup
 
bool cloud
 
bool permaDeath
 
Dictionary< string, string > fallbackTypes = new Dictionary<string, string>()
 
string path
 

Properties

string Title [get]
 
string RealDate [get]
 
string GameData [get]
 
string FormTitle [get]
 
bool IsCorrupted [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 7 of file GameIndex.cs.

Member Function Documentation

◆ Create()

GameIndex GameIndex.Create ( Game  game)
inline

Definition at line 70 of file GameIndex.cs.

71 {
72 if (game != null)
73 {
77 aka = EClass.pc.Aka;
81 idRace = EClass.pc.race.id;
82 idJob = EClass.pc.job.id;
86 Color color = EClass.pc.pccData?.GetHairColor(applyMod: true) ?? Color.white;
87 this.color = ColorUtility.ToHtmlStringRGBA(color);
88 }
89 else
90 {
91 date = new Date();
92 }
93 real = new Date
94 {
95 year = DateTime.Now.Year,
96 month = DateTime.Now.Month,
97 day = DateTime.Now.Day,
98 hour = DateTime.Now.Hour,
99 min = DateTime.Now.Minute
100 };
102 return this;
103 }
Version version
Definition: BaseCore.cs:17
string c_idPortrait
Definition: Card.cs:1409
string c_altName
Definition: Card.cs:1493
SourceJob.Row job
Definition: Chara.cs:451
string Aka
Definition: Chara.cs:201
PCCData pccData
Definition: Chara.cs:64
SourceRace.Row race
Definition: Chara.cs:449
Definition: Date.cs:4
Date Copy()
Definition: Date.cs:197
Definition: EClass.cs:5
static Game game
Definition: EClass.cs:8
static Faction Home
Definition: EClass.cs:26
static Core core
Definition: EClass.cs:6
static Player player
Definition: EClass.cs:12
static Chara pc
Definition: EClass.cs:14
string name
Definition: FACTION.cs:133
string factionName
Definition: GameIndex.cs:25
string pcName
Definition: GameIndex.cs:27
int deepest
Definition: GameIndex.cs:19
string idJob
Definition: GameIndex.cs:35
string idRace
Definition: GameIndex.cs:33
string aka
Definition: GameIndex.cs:29
bool permaDeath
Definition: GameIndex.cs:43
int days
Definition: GameIndex.cs:17
Date real
Definition: GameIndex.cs:11
Version version
Definition: GameIndex.cs:21
string color
Definition: GameIndex.cs:15
Dictionary< string, string > fallbackTypes
Definition: GameIndex.cs:45
Date date
Definition: GameIndex.cs:9
string zoneName
Definition: GameIndex.cs:23
string idPortrait
Definition: GameIndex.cs:31
new Player player
Definition: Game.cs:176
GamePrincipal principal
Definition: Game.cs:221
new World world
Definition: Game.cs:173
static Dictionary< string, string > fallbackTypes
Definition: ModUtil.cs:10
int deepest
Definition: Player.cs:92
int days
Definition: Player.cs:68
Stats stats
Definition: Player.cs:817
Zone zone
Definition: Player.cs:883
virtual string Name
Definition: Spatial.cs:495
GameDate date
Definition: World.cs:6

References Chara.Aka, aka, Card.c_altName, Card.c_idPortrait, Color, color, Date.Copy(), EClass.core, date, World.date, days, Player.Stats.days, deepest, Player.Stats.deepest, factionName, fallbackTypes, ModUtil.fallbackTypes, EClass.game, EClass.Home, idJob, idPortrait, idRace, Chara.job, Faction.name, Spatial.Name, EClass.pc, Chara.pccData, pcName, permaDeath, GamePrincipal.permadeath, EClass.player, Game.player, Game.principal, Chara.race, real, Player.stats, version, BaseCore.version, Game.world, Player.zone, and zoneName.

Referenced by GameIO.SaveGame().

Member Data Documentation

◆ aka

string GameIndex.aka

Definition at line 29 of file GameIndex.cs.

Referenced by Create(), and LayerLoadGame.RefreshInfo().

◆ cloud

bool GameIndex.cloud

Definition at line 41 of file GameIndex.cs.

Referenced by GameIO.MakeBackup().

◆ color

string GameIndex.color

Definition at line 15 of file GameIndex.cs.

Referenced by Create(), and LayerLoadGame.RefreshInfo().

◆ date

Date GameIndex.date

Definition at line 9 of file GameIndex.cs.

Referenced by Create().

◆ days

int GameIndex.days

Definition at line 17 of file GameIndex.cs.

Referenced by Create(), and LayerLoadGame.RefreshInfo().

◆ deepest

int GameIndex.deepest

Definition at line 19 of file GameIndex.cs.

Referenced by Create(), and LayerLoadGame.RefreshInfo().

◆ factionName

string GameIndex.factionName

Definition at line 25 of file GameIndex.cs.

Referenced by Create().

◆ fallbackTypes

Dictionary<string, string> GameIndex.fallbackTypes = new Dictionary<string, string>()

Definition at line 45 of file GameIndex.cs.

Referenced by Create().

◆ id

◆ idJob

string GameIndex.idJob

Definition at line 35 of file GameIndex.cs.

Referenced by Create(), and LayerLoadGame.RefreshInfo().

◆ idPortrait

string GameIndex.idPortrait

Definition at line 31 of file GameIndex.cs.

Referenced by Create(), and LayerLoadGame.RefreshInfo().

◆ idRace

string GameIndex.idRace

Definition at line 33 of file GameIndex.cs.

Referenced by Create(), and LayerLoadGame.RefreshInfo().

◆ isBackup

bool GameIndex.isBackup

Definition at line 39 of file GameIndex.cs.

◆ madeBackup

bool GameIndex.madeBackup

Definition at line 37 of file GameIndex.cs.

◆ path

string GameIndex.path

Definition at line 48 of file GameIndex.cs.

Referenced by GameIO.UpdateGameIndex().

◆ pcName

string GameIndex.pcName

Definition at line 27 of file GameIndex.cs.

Referenced by Create(), and LayerLoadGame.RefreshInfo().

◆ permaDeath

bool GameIndex.permaDeath

Definition at line 43 of file GameIndex.cs.

Referenced by Create(), and LayerLoadGame.RefreshList().

◆ real

Date GameIndex.real

Definition at line 11 of file GameIndex.cs.

Referenced by Create(), and GameIO.GetGameList().

◆ version

Version GameIndex.version

◆ zoneName

string GameIndex.zoneName

Definition at line 23 of file GameIndex.cs.

Referenced by Create(), and LayerLoadGame.RefreshInfo().

Property Documentation

◆ FormTitle

string GameIndex.FormTitle
get

Definition at line 56 of file GameIndex.cs.

Referenced by LayerFeedback.OnInit().

◆ GameData

string GameIndex.GameData
get

Definition at line 54 of file GameIndex.cs.

Referenced by LayerLoadGame.RefreshInfo().

◆ IsCorrupted

bool GameIndex.IsCorrupted
get

Definition at line 58 of file GameIndex.cs.

59 {
60 get
61 {
62 if (zoneName == null)
63 {
64 return pcName == null;
65 }
66 return false;
67 }
68 }

Referenced by LayerLoadGame.RefreshInfo().

◆ RealDate

string GameIndex.RealDate
get

Definition at line 52 of file GameIndex.cs.

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

◆ Title

string GameIndex.Title
get

Definition at line 50 of file GameIndex.cs.


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