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
ScreenPostProcessor.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Collections.Generic
;
3
using
Cpp2IlInjected
;
4
using
Microsoft.Xna.Framework.Graphics
;
5
using
Terraria
;
6
using
Terraria.Graphics.Effects
;
7
using
UnityEngine
;
8
9
// Token: 0x02000305 RID: 773
10
public
class
ScreenPostProcessor
:
MonoBehaviour
11
{
12
// Token: 0x170001A4 RID: 420
13
// (get) Token: 0x060011EB RID: 4587 RVA: 0x000021DB File Offset: 0x000003DB
14
// (set) Token: 0x060011EC RID: 4588 RVA: 0x000578A4 File Offset: 0x00055AA4
15
public
static
bool
Enabled
16
{
17
get
18
{
19
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
20
}
21
set
22
{
23
}
24
}
25
26
// Token: 0x170001A5 RID: 421
27
// (get) Token: 0x060011ED RID: 4589 RVA: 0x000021DB File Offset: 0x000003DB
28
public
static
List<ScreenPostProcessor>
Instances
29
{
30
get
31
{
32
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
33
}
34
}
35
36
// Token: 0x170001A6 RID: 422
37
// (get) Token: 0x060011EE RID: 4590 RVA: 0x000021DB File Offset: 0x000003DB
38
public
static
List<ScreenPostProcessor>
UIInstances
39
{
40
get
41
{
42
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
43
}
44
}
45
46
// Token: 0x170001A7 RID: 423
47
// (get) Token: 0x060011EF RID: 4591 RVA: 0x000021DB File Offset: 0x000003DB
48
// (set) Token: 0x060011F0 RID: 4592 RVA: 0x000578B4 File Offset: 0x00055AB4
49
public
static
List<Filter>
Filters
50
{
51
get
52
{
53
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
54
}
55
set
56
{
57
}
58
}
59
60
// Token: 0x060011F1 RID: 4593 RVA: 0x000021DB File Offset: 0x000003DB
61
public
static
void
BeginUpdate
()
62
{
63
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
64
}
65
66
// Token: 0x060011F2 RID: 4594 RVA: 0x000021DB File Offset: 0x000003DB
67
public
static
void
AddFilter
(
Filter
filter
)
68
{
69
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
70
}
71
72
// Token: 0x060011F3 RID: 4595 RVA: 0x000578C4 File Offset: 0x00055AC4
73
public
static
void
EndUpdate
()
74
{
75
int
num = 1;
76
if
(num == 0)
77
{
78
}
79
ScreenPostProcessor.renderCheck
= 0;
80
if
(num == 0)
81
{
82
}
83
bool
gameMenu =
Main
.
gameMenu
;
84
List<ScreenPostProcessor>
uiinstances
=
ScreenPostProcessor
.
UIInstances
;
85
}
86
87
// Token: 0x170001A8 RID: 424
88
// (get) Token: 0x060011F4 RID: 4596 RVA: 0x000021DB File Offset: 0x000003DB
89
// (set) Token: 0x060011F5 RID: 4597 RVA: 0x0005795C File Offset: 0x00055B5C
90
private
static
int
countUpdate
91
{
92
get
93
{
94
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
95
}
96
set
97
{
98
}
99
}
100
101
// Token: 0x170001A9 RID: 425
102
// (get) Token: 0x060011F6 RID: 4598 RVA: 0x000021DB File Offset: 0x000003DB
103
// (set) Token: 0x060011F7 RID: 4599 RVA: 0x0005796C File Offset: 0x00055B6C
104
private
static
int
renderCheck
105
{
106
get
107
{
108
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
109
}
110
set
111
{
112
}
113
}
114
115
// Token: 0x060011F8 RID: 4600 RVA: 0x0005797C File Offset: 0x00055B7C
116
private
void
OnRenderImage
(
RenderTexture
source
,
RenderTexture
dest
)
117
{
118
LocalUser
user = this.
User
;
119
if
(user !=
null
)
120
{
121
user.
LoadThreadstate
();
122
LocalUser
user2
= this.
User
;
123
if
(user2 !=
null
)
124
{
125
LocalUserGameState
gameState
=
user2
.GameState;
126
if
(
gameState
!=
null
)
127
{
128
int
screenPostProcessor_renderCheck
=
gameState
.
ScreenPostProcessor_renderCheck
;
129
int
size =
ScreenPostProcessor
.
Filters
._size;
130
List<Filter>
screenPostProcessor_Filters
= this.
User
.
GameState
.
ScreenPostProcessor_Filters
;
131
int
renderCheck
=
ScreenPostProcessor
.
renderCheck
;
132
LocalUserGameState
gameState2
= this.
User
.
GameState
;
133
int
screenPostProcessor_renderCheck2
= gameState2.
ScreenPostProcessor_renderCheck
;
134
gameState2.ScreenPostProcessor_renderCheck
=
screenPostProcessor_renderCheck2
;
135
if
(
gameState2
==
null
)
136
{
137
}
138
GraphicsDevice
graphicsDevice;
139
object <Tag>k__BackingField = graphicsDevice.
Textures
.<Tag>k__BackingField;
140
GraphicsDevice
graphicsDevice2
;
141
SurfaceFormat
format
=
graphicsDevice2
.
Textures
.
_format
;
142
GraphicsDevice
graphicsDevice3
;
143
int
sortingKey
=
graphicsDevice3
.
Textures
.
_sortingKey
;
144
if
(<Tag>k__BackingField !=
null
)
145
{
146
return
;
147
}
148
if
(1073741824 == 0)
149
{
150
}
151
if
(
format
!=
SurfaceFormat
.Color)
152
{
153
return
;
154
}
155
if
(1073741824 == 0)
156
{
157
}
158
if
(
sortingKey
!= 0)
159
{
160
return
;
161
}
162
if
(1073741824 == 0)
163
{
164
}
165
if
(<Tag>k__BackingField !=
null
)
166
{
167
return
;
168
}
169
if
(1073741824 == 0)
170
{
171
}
172
return
;
173
}
174
}
175
}
176
}
177
178
// Token: 0x060011F9 RID: 4601 RVA: 0x00057A60 File Offset: 0x00055C60
179
public
ScreenPostProcessor
()
180
{
181
}
182
183
// Token: 0x060011FA RID: 4602 RVA: 0x00057A74 File Offset: 0x00055C74
184
// Note: this type is marked as 'beforefieldinit'.
185
static
ScreenPostProcessor
()
186
{
187
int
num =
Shader
.
PropertyToID
(
"_MainTex"
);
188
int
num2
=
Shader
.
PropertyToID
(
"_SecondaryTex"
);
189
int
num3
=
Shader
.
PropertyToID
(
"_ThirdTex"
);
190
int
num4
=
Shader
.
PropertyToID
(
"_ForthTex"
);
191
int
num5
=
Shader
.
PropertyToID
(
"_ImageSize1"
);
192
}
193
194
// Token: 0x04002170 RID: 8560
195
private
int
order
;
196
197
// Token: 0x04002171 RID: 8561
198
private
Filter
filter
;
199
200
// Token: 0x04002172 RID: 8562
201
private
bool
setActive
;
202
203
// Token: 0x04002173 RID: 8563
204
public
LocalUser
User
;
205
206
// Token: 0x04002174 RID: 8564
207
private
static
int
MainTexId
;
208
209
// Token: 0x04002175 RID: 8565
210
private
static
int
SecTexId
;
211
212
// Token: 0x04002176 RID: 8566
213
private
static
int
ThirdTexId
;
214
215
// Token: 0x04002177 RID: 8567
216
private
static
int
ForthTexId
;
217
218
// Token: 0x04002178 RID: 8568
219
private
static
int
_imageSize1Id
;
220
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Cpp2IlInjected.AnalysisFailedException
Definition
AnalysisFailedException.cs:7
LocalUserGameState.ScreenPostProcessor_Filters
List< Filter > ScreenPostProcessor_Filters
Definition
LocalUserGameState.cs:444
LocalUserGameState.ScreenPostProcessor_renderCheck
int ScreenPostProcessor_renderCheck
Definition
LocalUserGameState.cs:450
LocalUserGameState
Definition
LocalUserGameState.cs:29
LocalUser.LoadThreadstate
void LoadThreadstate()
Definition
LocalUser.cs:40
LocalUser.GameState
LocalUserGameState GameState
Definition
LocalUser.cs:232
LocalUser
Definition
LocalUser.cs:13
Microsoft.Xna.Framework.Graphics.GraphicsDevice.Textures
Texture2D[] Textures
Definition
GraphicsDevice.cs:944
Microsoft.Xna.Framework.Graphics.GraphicsDevice
Definition
GraphicsDevice.cs:12
Microsoft.Xna.Framework.Graphics.Texture._format
SurfaceFormat _format
Definition
Texture.cs:96
Microsoft.Xna.Framework.Graphics.Texture._sortingKey
readonly int _sortingKey
Definition
Texture.cs:102
ScreenPostProcessor.MainTexId
static int MainTexId
Definition
ScreenPostProcessor.cs:207
ScreenPostProcessor.setActive
bool setActive
Definition
ScreenPostProcessor.cs:201
ScreenPostProcessor.ScreenPostProcessor
ScreenPostProcessor()
Definition
ScreenPostProcessor.cs:179
ScreenPostProcessor.Filters
static List< Filter > Filters
Definition
ScreenPostProcessor.cs:50
ScreenPostProcessor.AddFilter
static void AddFilter(Filter filter)
Definition
ScreenPostProcessor.cs:67
ScreenPostProcessor._imageSize1Id
static int _imageSize1Id
Definition
ScreenPostProcessor.cs:219
ScreenPostProcessor.SecTexId
static int SecTexId
Definition
ScreenPostProcessor.cs:210
ScreenPostProcessor.BeginUpdate
static void BeginUpdate()
Definition
ScreenPostProcessor.cs:61
ScreenPostProcessor.EndUpdate
static void EndUpdate()
Definition
ScreenPostProcessor.cs:73
ScreenPostProcessor.ScreenPostProcessor
static ScreenPostProcessor()
Definition
ScreenPostProcessor.cs:185
ScreenPostProcessor.renderCheck
static int renderCheck
Definition
ScreenPostProcessor.cs:105
ScreenPostProcessor.UIInstances
static List< ScreenPostProcessor > UIInstances
Definition
ScreenPostProcessor.cs:39
ScreenPostProcessor.Instances
static List< ScreenPostProcessor > Instances
Definition
ScreenPostProcessor.cs:29
ScreenPostProcessor.filter
Filter filter
Definition
ScreenPostProcessor.cs:198
ScreenPostProcessor.User
LocalUser User
Definition
ScreenPostProcessor.cs:204
ScreenPostProcessor.OnRenderImage
void OnRenderImage(RenderTexture source, RenderTexture dest)
Definition
ScreenPostProcessor.cs:116
ScreenPostProcessor.ForthTexId
static int ForthTexId
Definition
ScreenPostProcessor.cs:216
ScreenPostProcessor.ThirdTexId
static int ThirdTexId
Definition
ScreenPostProcessor.cs:213
ScreenPostProcessor.order
int order
Definition
ScreenPostProcessor.cs:195
ScreenPostProcessor.Enabled
static bool Enabled
Definition
ScreenPostProcessor.cs:16
ScreenPostProcessor.countUpdate
static int countUpdate
Definition
ScreenPostProcessor.cs:91
ScreenPostProcessor
Definition
ScreenPostProcessor.cs:11
System.Collections.Generic.List
Definition
List.cs:13
Terraria.Graphics.Effects.Filter
Definition
Filter.cs:9
Terraria.Graphics.Effects.Filters
Definition
Filters.cs:7
Terraria.Main.gameMenu
static bool gameMenu
Definition
Main.cs:2673
Terraria.Main
Definition
Main.cs:67
UnityEngine.MonoBehaviour
Definition
MonoBehaviour.cs:15
UnityEngine.RenderTexture
Definition
RenderTexture.cs:18
UnityEngine.Shader.PropertyToID
static int PropertyToID(string name)
Definition
Shader.cs:50
UnityEngine.Shader
Definition
Shader.cs:16
Cpp2IlInjected
Definition
AnalysisFailedException.cs:4
Microsoft.Xna.Framework.Graphics.SurfaceFormat
SurfaceFormat
Definition
SurfaceFormat.cs:7
Microsoft.Xna.Framework.Graphics
Definition
Blend.cs:4
System.Collections.Generic
Definition
ArrayBuilder.cs:5
System.ExceptionArgument.format
@ format
System.ExceptionArgument.source
@ source
System
Definition
__ComObject.cs:4
Terraria.Graphics.Effects
Definition
CustomSky.cs:7
Terraria
Definition
Achievement.cs:10
UnityEngine
Definition
_AndroidJNIHelper.cs:6
source
ScreenPostProcessor.cs
Generated by
1.10.0