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
NPCHeadRenderer.cs
Go to the documentation of this file.
1
using
System
;
2
using
Microsoft.Xna.Framework
;
3
using
Microsoft.Xna.Framework.Graphics
;
4
using
ReLogic.Content
;
5
using
Terraria.GameContent
;
6
7
namespace
Terraria.Graphics.Renderers
8
{
9
// Token: 0x0200075F RID: 1887
10
public
class
NPCHeadRenderer
:
INeedRenderTargetContent
11
{
12
// Token: 0x06003E0D RID: 15885 RVA: 0x0023BAF0 File Offset: 0x00239CF0
13
public
NPCHeadRenderer
(
Asset<Texture2D>
[]
matchingArray
)
14
{
15
this._matchingArray
=
matchingArray
;
16
this.
Reset
();
17
}
18
19
// Token: 0x06003E0E RID: 15886 RVA: 0x0023BB10 File Offset: 0x00239D10
20
public
void
Reset
()
21
{
22
Asset<Texture2D>
[]
matchingArray
= this.
_matchingArray
;
23
}
24
25
// Token: 0x06003E0F RID: 15887 RVA: 0x0023BB24 File Offset: 0x00239D24
26
public
void
DrawWithOutlines
(
Entity
entity,
int
headId
,
Vector2
position,
Color
color,
float
rotation,
float
scale,
SpriteEffects
effects
)
27
{
28
int
num = 1;
29
NPCHeadDrawRenderTargetContent
[] contents = this.
_contents
;
30
NPCHeadDrawRenderTargetContent
[]
contents2
;
31
Asset<Texture2D>
[]
matchingArray
;
32
if
(num == 0)
33
{
34
contents2
= this.
_contents
;
35
matchingArray = this.
_matchingArray
;
36
int
height =
contents2
.height;
37
NPCHeadDrawRenderTargetContent
[]
contents3
= this.
_contents
;
38
}
39
if
(contents2 !=
null
)
40
{
41
if
(
contents2
==
null
)
42
{
43
}
44
if
(
matchingArray
==
null
)
45
{
46
}
47
if
(
matchingArray
==
null
)
48
{
49
}
50
return
;
51
}
52
}
53
54
// Token: 0x1700078E RID: 1934
55
// (get) Token: 0x06003E10 RID: 15888 RVA: 0x0023BB74 File Offset: 0x00239D74
56
public
bool
IsReady
57
{
58
get
59
{
60
}
61
}
62
63
// Token: 0x06003E11 RID: 15889 RVA: 0x0023BB84 File Offset: 0x00239D84
64
public
void
PrepareRenderTarget
(
GraphicsDevice
device,
SpriteBatch
spriteBatch)
65
{
66
bool
wasPrepared
= this.
_contents
.
_wasPrepared
;
67
if
(
this
!=
null
&& this.
_matchingArray
==
null
)
68
{
69
NPCHeadDrawRenderTargetContent
[] contents = this.
_contents
;
70
}
71
}
72
73
// Token: 0x04007CCB RID: 31947
74
private
NPCHeadDrawRenderTargetContent
[]
_contents
;
75
76
// Token: 0x04007CCC RID: 31948
77
private
Asset<Texture2D>
[]
_matchingArray
;
78
}
79
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Microsoft.Xna.Framework.Graphics.GraphicsDevice
Definition
GraphicsDevice.cs:12
Microsoft.Xna.Framework.Graphics.SpriteBatch
Definition
SpriteBatch.cs:14
ReLogic.Content.Asset
Definition
Asset.cs:10
Terraria.Entity
Definition
Entity.cs:8
Terraria.GameContent.ARenderTargetContentByRequest._wasPrepared
bool _wasPrepared
Definition
ARenderTargetContentByRequest.cs:77
Terraria.GameContent.NPCHeadDrawRenderTargetContent
Definition
NPCHeadDrawRenderTargetContent.cs:8
Terraria.Graphics.Renderers.NPCHeadRenderer.IsReady
bool IsReady
Definition
NPCHeadRenderer.cs:57
Terraria.Graphics.Renderers.NPCHeadRenderer._contents
NPCHeadDrawRenderTargetContent[] _contents
Definition
NPCHeadRenderer.cs:74
Terraria.Graphics.Renderers.NPCHeadRenderer._matchingArray
Asset< Texture2D >[] _matchingArray
Definition
NPCHeadRenderer.cs:77
Terraria.Graphics.Renderers.NPCHeadRenderer.NPCHeadRenderer
NPCHeadRenderer(Asset< Texture2D >[] matchingArray)
Definition
NPCHeadRenderer.cs:13
Terraria.Graphics.Renderers.NPCHeadRenderer.PrepareRenderTarget
void PrepareRenderTarget(GraphicsDevice device, SpriteBatch spriteBatch)
Definition
NPCHeadRenderer.cs:64
Terraria.Graphics.Renderers.NPCHeadRenderer.Reset
void Reset()
Definition
NPCHeadRenderer.cs:20
Terraria.Graphics.Renderers.NPCHeadRenderer.DrawWithOutlines
void DrawWithOutlines(Entity entity, int headId, Vector2 position, Color color, float rotation, float scale, SpriteEffects effects)
Definition
NPCHeadRenderer.cs:26
Terraria.Graphics.Renderers.NPCHeadRenderer
Definition
NPCHeadRenderer.cs:11
Terraria.GameContent.INeedRenderTargetContent
Definition
INeedRenderTargetContent.cs:8
Microsoft.Xna.Framework.Graphics.SpriteEffects
SpriteEffects
Definition
SpriteEffects.cs:8
Microsoft.Xna.Framework.Graphics
Definition
Blend.cs:4
Microsoft.Xna.Framework
Definition
AudioChannels.cs:4
ReLogic.Content
Definition
Asset.cs:7
System
Definition
__ComObject.cs:4
Terraria.GameContent
Definition
AchievementsHelper.cs:7
Terraria.Graphics.Renderers
Definition
ABasicParticle.cs:9
Microsoft.Xna.Framework.Graphics.Color
Definition
Color.cs:12
Microsoft.Xna.Framework.Vector2
Definition
Vector2.cs:10
source
Terraria
Graphics
Renderers
NPCHeadRenderer.cs
Generated by
1.10.0