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
HairShaderData.cs
Go to the documentation of this file.
1using System;
7
9{
10 // Token: 0x02000748 RID: 1864
12 {
13 // Token: 0x1700077F RID: 1919
14 // (get) Token: 0x06003D63 RID: 15715 RVA: 0x00239118 File Offset: 0x00237318
15 public bool ShaderDisabled
16 {
17 get
18 {
19 return this._shaderDisabled;
20 }
21 }
22
23 // Token: 0x06003D64 RID: 15716 RVA: 0x0023912C File Offset: 0x0023732C
24 public HairShaderData(Ref<Effect> shader, string passName)
25 {
26 if (!true)
27 {
28 }
29 if (true)
30 {
31 return;
32 }
33 if (!true)
34 {
35 }
36 this._uSecondaryColor.Z = (float)1;
37 if (!true)
38 {
39 }
40 if (!true)
41 {
42 }
43 base..ctor();
44 this._shader = shader;
46 }
47
48 // Token: 0x06003D65 RID: 15717 RVA: 0x0023916C File Offset: 0x0023736C
49 public virtual void Apply(Player player, [Optional] DrawData? drawData)
50 {
52 !0 value = this._shader.Value;
53 float x = this._uColor.X;
54 float y = this._uColor.Y;
55 float z = this._uColor.Z;
56 !0 value2 = this._shader.Value;
57 float uSaturation = this._uSaturation;
58 !0 value3 = this._shader.Value;
59 float x2 = this._uSecondaryColor.X;
60 float y2 = this._uSecondaryColor.Y;
61 float z2 = this._uSecondaryColor.Z;
62 !0 value4 = this._shader.Value;
63 if ("uColor" == null)
64 {
65 }
66 !0 value5 = this._shader.Value;
67 float uOpacity = this._uOpacity;
68 !0 value6 = this._shader.Value;
69 float x3 = this._uTargetPosition.X;
70 float y3 = this._uTargetPosition.Y;
71 !0 value7 = this._shader.Value;
72 !0 value8 = this._shader.Value;
73 if ("uColor" == null)
74 {
75 }
76 Vector2 screenPosition = Main.screenPosition;
77 !0 value9 = this._shader.Value;
78 }
79
80 // Token: 0x06003D66 RID: 15718 RVA: 0x00239318 File Offset: 0x00237518
81 public virtual Color GetColor(Player player, Color lightColor)
82 {
83 if (!true)
84 {
85 return;
86 }
87 }
88
89 // Token: 0x06003D67 RID: 15719 RVA: 0x0023932C File Offset: 0x0023752C
90 public HairShaderData UseColor(float r, float g, float b)
91 {
92 return this;
93 }
94
95 // Token: 0x06003D68 RID: 15720 RVA: 0x0023933C File Offset: 0x0023753C
97 {
98 return this;
99 }
100
101 // Token: 0x06003D69 RID: 15721 RVA: 0x0023934C File Offset: 0x0023754C
103 {
104 return this;
105 }
106
107 // Token: 0x06003D6A RID: 15722 RVA: 0x0023935C File Offset: 0x0023755C
108 public HairShaderData UseImage(string path)
109 {
110 if (!true)
111 {
112 }
113 return this;
114 }
115
116 // Token: 0x06003D6B RID: 15723 RVA: 0x00239370 File Offset: 0x00237570
117 public HairShaderData UseOpacity(float alpha)
118 {
119 return this;
120 }
121
122 // Token: 0x06003D6C RID: 15724 RVA: 0x00239380 File Offset: 0x00237580
123 public HairShaderData UseSecondaryColor(float r, float g, float b)
124 {
125 return this;
126 }
127
128 // Token: 0x06003D6D RID: 15725 RVA: 0x00239390 File Offset: 0x00237590
130 {
131 return this;
132 }
133
134 // Token: 0x06003D6E RID: 15726 RVA: 0x002393A0 File Offset: 0x002375A0
136 {
137 return this;
138 }
139
140 // Token: 0x06003D6F RID: 15727 RVA: 0x002393B0 File Offset: 0x002375B0
142 {
143 return this;
144 }
145
146 // Token: 0x06003D70 RID: 15728 RVA: 0x002393C0 File Offset: 0x002375C0
148 {
149 return this;
150 }
151
152 // Token: 0x04007C46 RID: 31814
153 protected Vector3 _uColor;
154
155 // Token: 0x04007C47 RID: 31815
157
158 // Token: 0x04007C48 RID: 31816
159 protected float _uSaturation;
160
161 // Token: 0x04007C49 RID: 31817
162 protected float _uOpacity;
163
164 // Token: 0x04007C4A RID: 31818
166
167 // Token: 0x04007C4B RID: 31819
168 protected bool _shaderDisabled;
169
170 // Token: 0x04007C4C RID: 31820
172 }
173}
class f__AnonymousType0<< Count > j__TPar
virtual Color GetColor(Player player, Color lightColor)
HairShaderData UseColor(Color color)
virtual void Apply(Player player, [Optional] DrawData? drawData)
HairShaderData UseSaturation(float saturation)
HairShaderData UseSecondaryColor(float r, float g, float b)
HairShaderData UseColor(float r, float g, float b)
HairShaderData UseSecondaryColor(Vector3 color)
HairShaderData UseSecondaryColor(Color color)
HairShaderData(Ref< Effect > shader, string passName)
HairShaderData UseImage(string path)
HairShaderData UseOpacity(float alpha)
HairShaderData UseColor(Vector3 color)
HairShaderData UseTargetPosition(Vector2 position)
readonly Ref< Effect > _shader
Definition ShaderData.cs:65
static Microsoft.Xna.Framework.Vector2 screenPosition
Definition Main.cs:1973
T Value
Definition Ref.cs:20