terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
Light.cs
Go to the documentation of this file.
1using System;
8
9namespace UnityEngine
10{
12 [NativeHeader("Runtime/Camera/Light.h")]
13 [NativeHeader("Runtime/Export/Graphics/Light.bindings.h")]
15 [global::Cpp2ILInjected.Token(Token = "0x2000044")]
16 public sealed class Light : Behaviour
17 {
18 [global::Cpp2ILInjected.Token(Token = "0x17000015")]
19 public extern LightShadows shadows
20 {
21 [NativeMethod("GetShadowType")]
22 [global::Cpp2ILInjected.Token(Token = "0x6000092")]
23 [global::Cpp2ILInjected.Address(RVA = "0x1F6CE20", Offset = "0x1F6CE20", Length = "0x3C")]
24 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
25 {
28 }, ReturnType = typeof(void))]
29 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
30 {
33 }, ReturnType = typeof(void))]
34 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
35 {
38 }, ReturnType = typeof(void))]
39 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
40 {
43 }, ReturnType = typeof(void))]
44 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
45 {
48 }, ReturnType = typeof(void))]
49 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 5)]
50 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
51 [MethodImpl(4096)]
52 get;
53 }
54
55 [global::Cpp2ILInjected.Token(Token = "0x17000016")]
56 public extern float cookieSize
57 {
58 [global::Cpp2ILInjected.Token(Token = "0x6000093")]
59 [global::Cpp2ILInjected.Address(RVA = "0x1F6CE5C", Offset = "0x1F6CE5C", Length = "0x3C")]
60 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
61 {
64 }, ReturnType = typeof(void))]
65 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
66 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
67 [MethodImpl(4096)]
68 get;
69 }
70
71 [global::Cpp2ILInjected.Token(Token = "0x17000017")]
72 public extern Texture cookie
73 {
74 [global::Cpp2ILInjected.Token(Token = "0x6000094")]
75 [global::Cpp2ILInjected.Address(RVA = "0x1F6CE98", Offset = "0x1F6CE98", Length = "0x3C")]
76 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
77 {
80 }, ReturnType = typeof(void))]
81 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
82 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
83 [MethodImpl(4096)]
84 get;
85 }
86
87 [NativeProperty("LightType")]
88 [global::Cpp2ILInjected.Token(Token = "0x17000018")]
89 public extern LightType type
90 {
91 [global::Cpp2ILInjected.Token(Token = "0x6000095")]
92 [global::Cpp2ILInjected.Address(RVA = "0x1F6CED4", Offset = "0x1F6CED4", Length = "0x3C")]
93 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
94 {
97 }, ReturnType = typeof(void))]
98 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "UnityEngine.Experimental.GlobalIllumination.Lightmapping.<>c", Member = "<.cctor>b__7_0", MemberParameters = new object[]
99 {
100 typeof(Light[]),
102 }, ReturnType = typeof(void))]
103 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
104 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
105 [MethodImpl(4096)]
106 get;
107 }
108
109 [global::Cpp2ILInjected.Token(Token = "0x17000019")]
110 public extern float spotAngle
111 {
112 [global::Cpp2ILInjected.Token(Token = "0x6000096")]
113 [global::Cpp2ILInjected.Address(RVA = "0x1F6CF10", Offset = "0x1F6CF10", Length = "0x3C")]
114 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "ExtractInnerCone", MemberParameters = new object[] { typeof(Light) }, ReturnType = typeof(float))]
115 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
116 {
117 typeof(Light),
119 }, ReturnType = typeof(void))]
120 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
121 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
122 [MethodImpl(4096)]
123 get;
124 }
125
126 [global::Cpp2ILInjected.Token(Token = "0x1700001A")]
127 public Color color
128 {
129 [global::Cpp2ILInjected.Token(Token = "0x6000097")]
130 [global::Cpp2ILInjected.Address(RVA = "0x1F6CF4C", Offset = "0x1F6CF4C", Length = "0x58")]
131 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
132 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "ExtractIndirect", MemberParameters = new object[] { typeof(Light) }, ReturnType = typeof(LinearColor))]
133 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
134 {
135 typeof(Light),
137 }, ReturnType = typeof(void))]
138 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
139 {
140 typeof(Light),
142 }, ReturnType = typeof(void))]
143 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
144 {
145 typeof(Light),
147 }, ReturnType = typeof(void))]
148 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
149 {
150 typeof(Light),
152 }, ReturnType = typeof(void))]
153 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
154 {
155 typeof(Light),
157 }, ReturnType = typeof(void))]
158 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 6)]
159 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
160 get
161 {
162 throw null;
163 }
164 }
165
166 [global::Cpp2ILInjected.Token(Token = "0x1700001B")]
167 public extern float colorTemperature
168 {
169 [global::Cpp2ILInjected.Token(Token = "0x6000098")]
170 [global::Cpp2ILInjected.Address(RVA = "0x1F6CFE8", Offset = "0x1F6CFE8", Length = "0x3C")]
171 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "ExtractColorTemperature", MemberParameters = new object[] { typeof(Light) }, ReturnType = typeof(Color))]
172 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
173 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
174 [MethodImpl(4096)]
175 get;
176 }
177
178 [global::Cpp2ILInjected.Token(Token = "0x1700001C")]
179 public extern bool useColorTemperature
180 {
181 [global::Cpp2ILInjected.Token(Token = "0x6000099")]
182 [global::Cpp2ILInjected.Address(RVA = "0x1F6D024", Offset = "0x1F6D024", Length = "0x3C")]
183 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "ExtractColorTemperature", MemberParameters = new object[] { typeof(Light) }, ReturnType = typeof(Color))]
184 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
185 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
186 [MethodImpl(4096)]
187 get;
188 }
189
190 [global::Cpp2ILInjected.Token(Token = "0x1700001D")]
191 public extern float intensity
192 {
193 [global::Cpp2ILInjected.Token(Token = "0x600009A")]
194 [global::Cpp2ILInjected.Address(RVA = "0x1F6D060", Offset = "0x1F6D060", Length = "0x3C")]
195 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "ExtractIndirect", MemberParameters = new object[] { typeof(Light) }, ReturnType = typeof(LinearColor))]
196 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
197 {
198 typeof(Light),
200 }, ReturnType = typeof(void))]
201 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
202 {
203 typeof(Light),
205 }, ReturnType = typeof(void))]
206 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
207 {
208 typeof(Light),
210 }, ReturnType = typeof(void))]
211 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
212 {
213 typeof(Light),
215 }, ReturnType = typeof(void))]
216 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
217 {
218 typeof(Light),
220 }, ReturnType = typeof(void))]
221 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 6)]
222 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
223 [MethodImpl(4096)]
224 get;
225 }
226
227 [global::Cpp2ILInjected.Token(Token = "0x1700001E")]
228 public extern float bounceIntensity
229 {
230 [global::Cpp2ILInjected.Token(Token = "0x600009B")]
231 [global::Cpp2ILInjected.Address(RVA = "0x1F6D09C", Offset = "0x1F6D09C", Length = "0x3C")]
232 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "ExtractIndirect", MemberParameters = new object[] { typeof(Light) }, ReturnType = typeof(LinearColor))]
233 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
234 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
235 [MethodImpl(4096)]
236 get;
237 }
238
239 [global::Cpp2ILInjected.Token(Token = "0x1700001F")]
240 public extern float range
241 {
242 [global::Cpp2ILInjected.Token(Token = "0x600009C")]
243 [global::Cpp2ILInjected.Address(RVA = "0x1F6D0D8", Offset = "0x1F6D0D8", Length = "0x3C")]
244 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
245 {
246 typeof(Light),
248 }, ReturnType = typeof(void))]
249 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
250 {
251 typeof(Light),
253 }, ReturnType = typeof(void))]
254 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
255 {
256 typeof(Light),
258 }, ReturnType = typeof(void))]
259 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
260 {
261 typeof(Light),
263 }, ReturnType = typeof(void))]
264 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
265 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
266 [MethodImpl(4096)]
267 get;
268 }
269
270 [global::Cpp2ILInjected.Token(Token = "0x17000020")]
271 public LightBakingOutput bakingOutput
272 {
273 [global::Cpp2ILInjected.Token(Token = "0x600009D")]
274 [global::Cpp2ILInjected.Address(RVA = "0x1F6D114", Offset = "0x1F6D114", Length = "0x68")]
275 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
276 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
277 {
278 typeof(Light),
280 }, ReturnType = typeof(void))]
281 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
282 {
283 typeof(Light),
285 }, ReturnType = typeof(void))]
286 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
287 {
288 typeof(Light),
290 }, ReturnType = typeof(void))]
291 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
292 {
293 typeof(Light),
295 }, ReturnType = typeof(void))]
296 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightmapperUtils), Member = "Extract", MemberParameters = new object[]
297 {
298 typeof(Light),
300 }, ReturnType = typeof(void))]
301 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 5)]
302 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
303 get
304 {
305 throw null;
306 }
307 }
308
309 [global::Cpp2ILInjected.Token(Token = "0x600009E")]
310 [global::Cpp2ILInjected.Address(RVA = "0x1F6CFA4", Offset = "0x1F6CFA4", Length = "0x44")]
311 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
312 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
313 [MethodImpl(4096)]
314 private extern void get_color_Injected(out Color ret);
315
316 [global::Cpp2ILInjected.Token(Token = "0x600009F")]
317 [global::Cpp2ILInjected.Address(RVA = "0x1F6D17C", Offset = "0x1F6D17C", Length = "0x44")]
318 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
319 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
320 [MethodImpl(4096)]
322
323 [global::Cpp2ILInjected.Token(Token = "0x400020F")]
324 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
325 private int m_BakedIndex;
326 }
327}
class f__AnonymousType0<< Count > j__TPar
float cookieSize
Definition Light.cs:57
LightType type
Definition Light.cs:90
LightShadows shadows
Definition Light.cs:20
void get_color_Injected(out Color ret)
void get_bakingOutput_Injected(out LightBakingOutput ret)
Texture cookie
Definition Light.cs:73