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
CustomIntCondition.cs
Go to the documentation of this file.
1
using
System
;
2
using
Cpp2IlInjected
;
3
using
Newtonsoft.Json
;
4
using
Newtonsoft.Json.Linq
;
5
using
Terraria.Achievements
;
6
7
namespace
Terraria.GameContent.Achievements
8
{
9
// Token: 0x020009AC RID: 2476
10
public
class
CustomIntCondition
:
AchievementCondition
11
{
12
// Token: 0x1700084C RID: 2124
13
// (get) Token: 0x06004941 RID: 18753 RVA: 0x00261E40 File Offset: 0x00260040
14
// (set) Token: 0x06004942 RID: 18754 RVA: 0x00261E54 File Offset: 0x00260054
15
public
int
Value
16
{
17
get
18
{
19
return
this.
_value
;
20
}
21
set
22
{
23
if
(!
true
)
24
{
25
}
26
if
(this.
_tracker
!=
null
)
27
{
28
}
29
int
maxValue = this.
_maxValue
;
30
this._value
=
value
;
31
}
32
}
33
34
// Token: 0x06004943 RID: 18755 RVA: 0x00261E84 File Offset: 0x00260084
35
private
CustomIntCondition
(
string
name
,
int
maxValue)
36
:
base
(
name
)
37
{
38
}
39
40
// Token: 0x06004944 RID: 18756 RVA: 0x00261E98 File Offset: 0x00260098
41
public
override
void
Clear
()
42
{
43
base
.Clear();
44
}
45
46
// Token: 0x06004945 RID: 18757 RVA: 0x00261EAC File Offset: 0x002600AC
47
public
override
void
Load
(
JObject
state
)
48
{
49
base
.Load(
state
);
50
JToken
jtoken
;
51
int
num = (int)
jtoken
;
52
IAchievementTracker
tracker
= this.
_tracker
;
53
this._value
= num;
54
if
(
tracker
!=
null
)
55
{
56
return
;
57
}
58
}
59
60
// Token: 0x06004946 RID: 18758 RVA: 0x000021DB File Offset: 0x000003DB
61
protected
override
IAchievementTracker
CreateAchievementTracker
()
62
{
63
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
64
}
65
66
// Token: 0x06004947 RID: 18759 RVA: 0x000021DB File Offset: 0x000003DB
67
public
static
AchievementCondition
Create
(
string
name
,
int
maxValue)
68
{
69
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
70
}
71
72
// Token: 0x06004948 RID: 18760 RVA: 0x00261EE0 File Offset: 0x002600E0
73
public
override
void
Complete
()
74
{
75
if
(this.
_tracker
!=
null
)
76
{
77
int
maxValue = this.
_maxValue
;
78
}
79
int
maxValue2
= this.
_maxValue
;
80
this._value
=
maxValue2
;
81
base
.Complete();
82
}
83
84
// Token: 0x0400843A RID: 33850
85
[JsonProperty(
"Value"
)]
86
private
int
_value
;
87
88
// Token: 0x0400843B RID: 33851
89
private
int
_maxValue
;
90
}
91
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Cpp2IlInjected.AnalysisFailedException
Definition
AnalysisFailedException.cs:7
Newtonsoft.Json.Linq.JObject
Definition
JObject.cs:17
Newtonsoft.Json.Linq.JToken
Definition
JToken.cs:17
Terraria.Achievements.AchievementCondition._tracker
IAchievementTracker _tracker
Definition
AchievementCondition.cs:120
Terraria.Achievements.AchievementCondition
Definition
AchievementCondition.cs:12
Terraria.GameContent.Achievements.CustomIntCondition._value
int _value
Definition
CustomIntCondition.cs:86
Terraria.GameContent.Achievements.CustomIntCondition._maxValue
int _maxValue
Definition
CustomIntCondition.cs:89
Terraria.GameContent.Achievements.CustomIntCondition.CreateAchievementTracker
override IAchievementTracker CreateAchievementTracker()
Definition
CustomIntCondition.cs:61
Terraria.GameContent.Achievements.CustomIntCondition.Load
override void Load(JObject state)
Definition
CustomIntCondition.cs:47
Terraria.GameContent.Achievements.CustomIntCondition.Create
static AchievementCondition Create(string name, int maxValue)
Definition
CustomIntCondition.cs:67
Terraria.GameContent.Achievements.CustomIntCondition.Clear
override void Clear()
Definition
CustomIntCondition.cs:41
Terraria.GameContent.Achievements.CustomIntCondition.Value
int Value
Definition
CustomIntCondition.cs:16
Terraria.GameContent.Achievements.CustomIntCondition.CustomIntCondition
CustomIntCondition(string name, int maxValue)
Definition
CustomIntCondition.cs:35
Terraria.GameContent.Achievements.CustomIntCondition.Complete
override void Complete()
Definition
CustomIntCondition.cs:73
Terraria.GameContent.Achievements.CustomIntCondition
Definition
CustomIntCondition.cs:11
Terraria.Achievements.IAchievementTracker
Definition
IAchievementTracker.cs:7
Cpp2IlInjected
Definition
AnalysisFailedException.cs:4
Newtonsoft.Json.Linq
Definition
CommentHandling.cs:5
Newtonsoft.Json
Definition
BsonArray.cs:8
System.ExceptionArgument.value
@ value
System.ExceptionArgument.state
@ state
System.ExceptionArgument.name
@ name
System
Definition
__ComObject.cs:4
Terraria.Achievements
Definition
Achievement.cs:10
Terraria.GameContent.Achievements
Definition
AchievementsHelper.cs:7
source
Terraria
GameContent
Achievements
CustomIntCondition.cs
Generated by
1.10.0