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
EffectManager.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Collections.Generic
;
3
using
System.Runtime.InteropServices
;
4
using
Cpp2IlInjected
;
5
using
Microsoft.Xna.Framework
;
6
7
namespace
Terraria.Graphics.Effects
8
{
9
// Token: 0x02000781 RID: 1921
10
public
abstract
class
EffectManager
<T>
where
T :
GameEffect
11
{
12
// Token: 0x170007A3 RID: 1955
13
// (get) Token: 0x06003EE7 RID: 16103 RVA: 0x0023F628 File Offset: 0x0023D828
14
public
bool
IsLoaded
15
{
16
get
17
{
18
return
this.
_isLoaded
;
19
}
20
}
21
22
// Token: 0x170007A4 RID: 1956
23
public
T
this
[
string
key
]
24
{
25
get
26
{
27
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
28
}
29
set
30
{
31
}
32
}
33
34
// Token: 0x06003EEA RID: 16106 RVA: 0x0023F64C File Offset: 0x0023D84C
35
public
void
Bind
(
string
name
, T effect)
36
{
37
if
(this.
_isLoaded
)
38
{
39
return
;
40
}
41
}
42
43
// Token: 0x06003EEB RID: 16107 RVA: 0x0023F664 File Offset: 0x0023D864
44
public
void
Load
()
45
{
46
if
(!this.
_isLoaded
)
47
{
48
this._isLoaded
=
true
;
49
return
;
50
}
51
}
52
53
// Token: 0x06003EEC RID: 16108 RVA: 0x0023F6A0 File Offset: 0x0023D8A0
54
public
T
Activate
(
string
name
, [Optional]
Vector2
position,
params
object
[] args)
55
{
56
if
((
"Unable to find effect named: "
!=
null
&&
"Unable to find effect named: "
==
null
) ||
"Unable to find effect named: "
==
null
|| (
". Type: "
!=
null
&&
". Type: "
==
null
))
57
{
58
throw
new
ArrayTypeMismatchException
();
59
}
60
Type
type;
61
if
(type !=
null
)
62
{
63
}
64
throw
new
ArrayTypeMismatchException
();
65
}
66
67
// Token: 0x06003EED RID: 16109 RVA: 0x0023F6E4 File Offset: 0x0023D8E4
68
public
void
Deactivate
(
string
name
,
params
object
[] args)
69
{
70
}
71
72
// Token: 0x06003EEE RID: 16110 RVA: 0x0023F72C File Offset: 0x0023D92C
73
public
virtual
void
OnActivate
(T effect,
Vector2
position)
74
{
75
}
76
77
// Token: 0x06003EEF RID: 16111 RVA: 0x0023F73C File Offset: 0x0023D93C
78
public
virtual
void
OnDeactivate
(T effect)
79
{
80
}
81
82
// Token: 0x06003EF0 RID: 16112 RVA: 0x0023F74C File Offset: 0x0023D94C
83
protected
EffectManager
()
84
{
85
}
86
87
// Token: 0x04007D72 RID: 32114
88
protected
bool
_isLoaded
;
89
90
// Token: 0x04007D73 RID: 32115
91
protected
Dictionary<string, T>
_effects
;
92
}
93
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Cpp2IlInjected.AnalysisFailedException
Definition
AnalysisFailedException.cs:7
System.ArrayTypeMismatchException
Definition
ArrayTypeMismatchException.cs:9
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:15
System.Type
Definition
Type.cs:12
Terraria.Graphics.Effects.EffectManager.Activate
T Activate(string name, [Optional] Vector2 position, params object[] args)
Definition
EffectManager.cs:54
Terraria.Graphics.Effects.EffectManager.Load
void Load()
Definition
EffectManager.cs:44
Terraria.Graphics.Effects.EffectManager.OnActivate
virtual void OnActivate(T effect, Vector2 position)
Definition
EffectManager.cs:73
Terraria.Graphics.Effects.EffectManager.EffectManager
EffectManager()
Definition
EffectManager.cs:83
Terraria.Graphics.Effects.EffectManager._effects
Dictionary< string, T > _effects
Definition
EffectManager.cs:91
Terraria.Graphics.Effects.EffectManager.IsLoaded
bool IsLoaded
Definition
EffectManager.cs:15
Terraria.Graphics.Effects.EffectManager.OnDeactivate
virtual void OnDeactivate(T effect)
Definition
EffectManager.cs:78
Terraria.Graphics.Effects.EffectManager.Deactivate
void Deactivate(string name, params object[] args)
Definition
EffectManager.cs:68
Terraria.Graphics.Effects.EffectManager.Bind
void Bind(string name, T effect)
Definition
EffectManager.cs:35
Terraria.Graphics.Effects.EffectManager._isLoaded
bool _isLoaded
Definition
EffectManager.cs:88
Terraria.Graphics.Effects.EffectManager
Definition
EffectManager.cs:11
Terraria.Graphics.Effects.GameEffect
Definition
GameEffect.cs:8
Cpp2IlInjected
Definition
AnalysisFailedException.cs:4
Microsoft.Xna.Framework
Definition
AudioChannels.cs:4
System.Collections.Generic
Definition
ArrayBuilder.cs:5
System.Runtime.InteropServices
Definition
_Activator.cs:4
System.ExceptionArgument.key
@ key
System.ExceptionArgument.name
@ name
System
Definition
__ComObject.cs:4
Terraria.Graphics.Effects
Definition
CustomSky.cs:7
Microsoft.Xna.Framework.Vector2
Definition
Vector2.cs:10
source
Terraria
Graphics
Effects
EffectManager.cs
Generated by
1.10.0