Elin Modding Docs Doc
Loading...
Searching...
No Matches
GameIndex.cs
1using System;
2using Newtonsoft.Json;
3using UnityEngine;
4
5// Token: 0x020000AC RID: 172
6[JsonObject(MemberSerialization.OptOut)]
7public class GameIndex : EClass
8{
9 // Token: 0x17000102 RID: 258
10 // (get) Token: 0x060004A4 RID: 1188 RVA: 0x0001FA0A File Offset: 0x0001DC0A
11 public string Title
12 {
13 get
14 {
15 return this.factionName ?? "Unknown";
16 }
17 }
18
19 // Token: 0x17000103 RID: 259
20 // (get) Token: 0x060004A5 RID: 1189 RVA: 0x0001FA1B File Offset: 0x0001DC1B
21 public string RealDate
22 {
23 get
24 {
25 return this.real.GetText(Date.TextFormat.LogPlusYear);
26 }
27 }
28
29 // Token: 0x17000104 RID: 260
30 // (get) Token: 0x060004A6 RID: 1190 RVA: 0x0001FA29 File Offset: 0x0001DC29
31 public string GameData
32 {
33 get
34 {
35 return this.date.GetText(Date.TextFormat.LogPlusYear);
36 }
37 }
38
39 // Token: 0x17000105 RID: 261
40 // (get) Token: 0x060004A7 RID: 1191 RVA: 0x0001FA38 File Offset: 0x0001DC38
41 public string FormTitle
42 {
43 get
44 {
45 return string.Concat(new string[]
46 {
47 this.id,
48 ": ",
49 this.zoneName,
50 "(",
51 this.factionName,
52 ") ",
53 this.RealDate
54 });
55 }
56 }
57
58 // Token: 0x060004A8 RID: 1192 RVA: 0x0001FA8C File Offset: 0x0001DC8C
59 public GameIndex Create(Game game)
60 {
61 if (game != null)
62 {
63 this.factionName = EClass.Home.name;
64 this.zoneName = game.player.zone.Name;
65 this.pcName = EClass.pc.c_altName;
66 this.aka = EClass.pc.Aka;
67 this.date = game.world.date.Copy();
68 this.difficulty = game.idDifficulty;
69 this.idPortrait = EClass.pc.c_idPortrait;
70 this.idRace = EClass.pc.race.id;
71 this.idJob = EClass.pc.job.id;
72 this.days = EClass.player.stats.days;
73 this.deepest = EClass.player.stats.deepest;
74 PCCData pccData = EClass.pc.pccData;
75 Color color = (pccData != null) ? pccData.GetHairColor(true) : Color.white;
76 this.color = ColorUtility.ToHtmlStringRGB(color);
77 }
78 else
79 {
80 this.date = new Date();
81 }
82 this.real = new Date
83 {
84 year = DateTime.Now.Year,
85 month = DateTime.Now.Month,
86 day = DateTime.Now.Day,
87 hour = DateTime.Now.Hour,
88 min = DateTime.Now.Minute
89 };
90 this.version = EClass.core.version;
91 return this;
92 }
93
94 // Token: 0x04000628 RID: 1576
95 public Date date;
96
97 // Token: 0x04000629 RID: 1577
98 public Date real;
99
100 // Token: 0x0400062A RID: 1578
101 public string id;
102
103 // Token: 0x0400062B RID: 1579
104 public string color;
105
106 // Token: 0x0400062C RID: 1580
107 public int difficulty;
108
109 // Token: 0x0400062D RID: 1581
110 public int days;
111
112 // Token: 0x0400062E RID: 1582
113 public int deepest;
114
115 // Token: 0x0400062F RID: 1583
116 public global::Version version;
117
118 // Token: 0x04000630 RID: 1584
119 public string zoneName;
120
121 // Token: 0x04000631 RID: 1585
122 public string factionName;
123
124 // Token: 0x04000632 RID: 1586
125 public string pcName;
126
127 // Token: 0x04000633 RID: 1587
128 public string aka;
129
130 // Token: 0x04000634 RID: 1588
131 public string idPortrait;
132
133 // Token: 0x04000635 RID: 1589
134 public string idRace;
135
136 // Token: 0x04000636 RID: 1590
137 public string idJob;
138}
Definition Date.cs:6
Definition Game.cs:10