terraria-cpp2il-methodrecon
v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
PersistentUserData.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Collections
;
3
using
System.Collections.Generic
;
4
using
Newtonsoft.Json
;
5
6
// Token: 0x020002BD RID: 701
7
[
JsonObject
(
MemberSerialization
.Fields)]
8
public
class
PersistentUserData
9
{
10
// Token: 0x0600103B RID: 4155 RVA: 0x0004FD30 File Offset: 0x0004DF30
11
public
void
EnsureObjects
()
12
{
13
if
(this.
ArmorCollected
==
null
)
14
{
15
}
16
if
(this.
CraftingsStationsUsed
==
null
)
17
{
18
}
19
if
(this.
SlimeTypesKilled
==
null
)
20
{
21
}
22
if
(this.
PetBuffsSpawned
==
null
)
23
{
24
}
25
if
(this.
BossesKilled
==
null
)
26
{
27
}
28
}
29
30
// Token: 0x0600103C RID: 4156 RVA: 0x0004FD68 File Offset: 0x0004DF68
31
public
void
OnKillBoss
(
eBossKillStatistics
bossID
)
32
{
33
Dictionary<int, int>
bossesKilled
= this.
BossesKilled
;
34
Dictionary<int, int>
bossesKilled2
= this.
BossesKilled
;
35
}
36
37
// Token: 0x0600103D RID: 4157 RVA: 0x0004FD84 File Offset: 0x0004DF84
38
public
int
GetProgressNumberOfTimesKilledAllBosses
()
39
{
40
if
(!
true
)
41
{
42
}
43
Type
type;
44
IEnumerator
enumerator =
Enum
.
GetValues
(type).
GetEnumerator
();
45
Dictionary<int, int>
bossesKilled
= this.
BossesKilled
;
46
Dictionary<int, int>
bossesKilled2
= this.
BossesKilled
;
47
long
num = 0
L
;
48
if
(enumerator !=
null
)
49
{
50
}
51
if
(num == 0
L
)
52
{
53
throw
new
InvalidCastException
();
54
}
55
throw
new
OutOfMemoryException
();
56
}
57
58
// Token: 0x0600103E RID: 4158 RVA: 0x0004FDE0 File Offset: 0x0004DFE0
59
public
int
GetNormlBossCount
()
60
{
61
if
(!
true
)
62
{
63
}
64
Type
type;
65
IEnumerator
enumerator =
Enum
.
GetValues
(type).
GetEnumerator
();
66
Dictionary<int, int>
bossesKilled
= this.
BossesKilled
;
67
Dictionary<int, int>
bossesKilled2
= this.
BossesKilled
;
68
long
num = 0
L
;
69
if
(enumerator !=
null
)
70
{
71
}
72
if
(num == 0
L
)
73
{
74
throw
new
InvalidCastException
();
75
}
76
throw
new
OutOfMemoryException
();
77
}
78
79
// Token: 0x0600103F RID: 4159 RVA: 0x0004FE34 File Offset: 0x0004E034
80
public
int
GetHardBossCount
()
81
{
82
if
(!
true
)
83
{
84
}
85
Type
type;
86
IEnumerator
enumerator =
Enum
.
GetValues
(type).
GetEnumerator
();
87
Dictionary<int, int>
bossesKilled
= this.
BossesKilled
;
88
Dictionary<int, int>
bossesKilled2
= this.
BossesKilled
;
89
long
num = 0
L
;
90
if
(enumerator !=
null
)
91
{
92
}
93
if
(num == 0
L
)
94
{
95
throw
new
InvalidCastException
();
96
}
97
throw
new
OutOfMemoryException
();
98
}
99
100
// Token: 0x06001040 RID: 4160 RVA: 0x0004FE88 File Offset: 0x0004E088
101
public
int
GetNumberOfTimesKilledAllBosses
()
102
{
103
if
(!
true
)
104
{
105
}
106
Type
type;
107
IEnumerator
enumerator =
Enum
.
GetValues
(type).
GetEnumerator
();
108
Dictionary<int, int>
bossesKilled
= this.
BossesKilled
;
109
Dictionary<int, int>
bossesKilled2
= this.
BossesKilled
;
110
long
num = 0
L
;
111
if
(enumerator !=
null
)
112
{
113
}
114
if
(num == 0
L
)
115
{
116
throw
new
InvalidCastException
();
117
}
118
throw
new
OutOfMemoryException
();
119
}
120
121
// Token: 0x06001041 RID: 4161 RVA: 0x0004FEE0 File Offset: 0x0004E0E0
122
public
int
GetNumberOfTimesKilledPrimeBosses
()
123
{
124
Dictionary<int, int>
bossesKilled
= this.
BossesKilled
;
125
Dictionary<int, int>
bossesKilled2
= this.
BossesKilled
;
126
Dictionary<int, int>
bossesKilled3
= this.
BossesKilled
;
127
Dictionary<int, int>
bossesKilled4
= this.
BossesKilled
;
128
Dictionary<int, int>
bossesKilled5
= this.
BossesKilled
;
129
Dictionary<int, int>
bossesKilled6
= this.
BossesKilled
;
130
if
(bossesKilled !=
null
)
131
{
132
return
;
133
}
134
}
135
136
// Token: 0x06001042 RID: 4162 RVA: 0x0004FF24 File Offset: 0x0004E124
137
public
int
GetNumberOfRequiredSlimesKilled
()
138
{
139
if
(!
true
)
140
{
141
}
142
Type
type;
143
IEnumerator
enumerator =
Enum
.
GetValues
(type).
GetEnumerator
();
144
IntHashSet
slimeTypesKilled
= this.
SlimeTypesKilled
;
145
long
num = 0
L
;
146
if
(enumerator !=
null
)
147
{
148
}
149
if
(num == 0
L
)
150
{
151
throw
new
InvalidCastException
();
152
}
153
throw
new
OutOfMemoryException
();
154
}
155
156
// Token: 0x06001043 RID: 4163 RVA: 0x0004FF70 File Offset: 0x0004E170
157
public
PersistentUserData
()
158
{
159
}
160
161
// Token: 0x04001F1F RID: 7967
162
public
uint
TotalBarsCrafted
;
163
164
// Token: 0x04001F20 RID: 7968
165
public
uint
TotalPicked
;
166
167
// Token: 0x04001F21 RID: 7969
168
public
uint
TotalAnvilCrafting
;
169
170
// Token: 0x04001F22 RID: 7970
171
public
uint
TotalWires
;
172
173
// Token: 0x04001F23 RID: 7971
174
public
uint
TotalAirTime
;
175
176
// Token: 0x04001F24 RID: 7972
177
public
uint
CurrentAirTime
;
178
179
// Token: 0x04001F25 RID: 7973
180
public
IntHashSet
ArmorCollected
;
181
182
// Token: 0x04001F26 RID: 7974
183
public
IntHashSet
CraftingsStationsUsed
;
184
185
// Token: 0x04001F27 RID: 7975
186
public
IntHashSet
SlimeTypesKilled
;
187
188
// Token: 0x04001F28 RID: 7976
189
public
IntHashSet
PetBuffsSpawned
;
190
191
// Token: 0x04001F29 RID: 7977
192
public
Dictionary<int, int>
BossesKilled
;
193
194
// Token: 0x04001F2A RID: 7978
195
public
long
TotalGemsMined
;
196
197
// Token: 0x04001F2B RID: 7979
198
public
long
TotalOresMined
;
199
200
// Token: 0x04001F2C RID: 7980
201
public
long
TotalSoilMined
;
202
203
// Token: 0x04001F2D RID: 7981
204
public
long
TotalWoodMined
;
205
206
// Token: 0x04001F2E RID: 7982
207
public
long
TotalResourcesMined
;
208
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
IntHashSet
Definition
IntHashSet.cs:7
PersistentUserData.GetHardBossCount
int GetHardBossCount()
Definition
PersistentUserData.cs:80
PersistentUserData.TotalWires
uint TotalWires
Definition
PersistentUserData.cs:171
PersistentUserData.TotalSoilMined
long TotalSoilMined
Definition
PersistentUserData.cs:201
PersistentUserData.SlimeTypesKilled
IntHashSet SlimeTypesKilled
Definition
PersistentUserData.cs:186
PersistentUserData.GetNumberOfRequiredSlimesKilled
int GetNumberOfRequiredSlimesKilled()
Definition
PersistentUserData.cs:137
PersistentUserData.GetNumberOfTimesKilledAllBosses
int GetNumberOfTimesKilledAllBosses()
Definition
PersistentUserData.cs:101
PersistentUserData.EnsureObjects
void EnsureObjects()
Definition
PersistentUserData.cs:11
PersistentUserData.CurrentAirTime
uint CurrentAirTime
Definition
PersistentUserData.cs:177
PersistentUserData.TotalBarsCrafted
uint TotalBarsCrafted
Definition
PersistentUserData.cs:162
PersistentUserData.PetBuffsSpawned
IntHashSet PetBuffsSpawned
Definition
PersistentUserData.cs:189
PersistentUserData.ArmorCollected
IntHashSet ArmorCollected
Definition
PersistentUserData.cs:180
PersistentUserData.TotalAirTime
uint TotalAirTime
Definition
PersistentUserData.cs:174
PersistentUserData.TotalResourcesMined
long TotalResourcesMined
Definition
PersistentUserData.cs:207
PersistentUserData.GetNumberOfTimesKilledPrimeBosses
int GetNumberOfTimesKilledPrimeBosses()
Definition
PersistentUserData.cs:122
PersistentUserData.TotalOresMined
long TotalOresMined
Definition
PersistentUserData.cs:198
PersistentUserData.TotalGemsMined
long TotalGemsMined
Definition
PersistentUserData.cs:195
PersistentUserData.OnKillBoss
void OnKillBoss(eBossKillStatistics bossID)
Definition
PersistentUserData.cs:31
PersistentUserData.BossesKilled
Dictionary< int, int > BossesKilled
Definition
PersistentUserData.cs:192
PersistentUserData.PersistentUserData
PersistentUserData()
Definition
PersistentUserData.cs:157
PersistentUserData.TotalWoodMined
long TotalWoodMined
Definition
PersistentUserData.cs:204
PersistentUserData.CraftingsStationsUsed
IntHashSet CraftingsStationsUsed
Definition
PersistentUserData.cs:183
PersistentUserData.TotalAnvilCrafting
uint TotalAnvilCrafting
Definition
PersistentUserData.cs:168
PersistentUserData.GetProgressNumberOfTimesKilledAllBosses
int GetProgressNumberOfTimesKilledAllBosses()
Definition
PersistentUserData.cs:38
PersistentUserData.TotalPicked
uint TotalPicked
Definition
PersistentUserData.cs:165
PersistentUserData.GetNormlBossCount
int GetNormlBossCount()
Definition
PersistentUserData.cs:59
PersistentUserData
Definition
PersistentUserData.cs:9
System.Array.GetEnumerator
IEnumerator GetEnumerator()
Definition
Array.cs:794
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:15
System.Enum.GetValues
static Array GetValues(Type enumType)
Definition
Enum.cs:233
System.Enum
Definition
Enum.cs:12
System.InvalidCastException
Definition
InvalidCastException.cs:9
System.OutOfMemoryException
Definition
OutOfMemoryException.cs:9
System.Type
Definition
Type.cs:12
eBossKillStatistics
eBossKillStatistics
Definition
eBossKillStatistics.cs:5
System.Collections.Generic.IEnumerator
Definition
IEnumerator.cs:7
Newtonsoft.Json.MemberSerialization
MemberSerialization
Definition
MemberSerialization.cs:9
Newtonsoft.Json
Definition
BsonArray.cs:8
System.Collections.Generic
Definition
ArrayBuilder.cs:5
System.Collections
Definition
ArrayList.cs:6
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
source
PersistentUserData.cs
Generated by
1.10.0