engage/generated/unity_engine/resource_management/diagnostics/
diagnosticevent.rs1#[cfg(feature = "unity_engine-resource_management-diagnostics-diagnosticevent-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 valuetype::{IValueType, ValueType},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/resource_management/diagnostics/diagnosticevent/DiagnosticEvent.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct DiagnosticEvent {
17 pub m_graph: ::unity::Il2CppString,
18 pub m_dependencies: ::unity::Array<i32>,
19 pub m_object_id: i32,
20 pub m_display_name: ::unity::Il2CppString,
21 pub m_stream: i32,
22 pub m_frame: i32,
23 pub m_value: i32,
24 }
25 impl ::unity::ClassIdentity for DiagnosticEvent {
26 const NAME: &'static str = "DiagnosticEvent";
27 const NAMESPACE: &'static str = "UnityEngine.ResourceManagement.Diagnostics";
28
29 fn class() -> ::unity::Class {
30 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
31 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
32 }
33 }
34 impl ::unity::IlType for DiagnosticEvent {
35 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
36 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
37 }
38 }
39}
40
41#[cfg(feature = "unity_engine-resource_management-diagnostics-diagnosticevent-types")]
42pub use __types::*;
43
44#[cfg(feature = "unity_engine-resource_management-diagnostics-diagnosticevent")]
45#[doc(hidden)]
46#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
47mod __DiagnosticEvent_unity_raw {
48 use super::*;
49 #[doc(hidden)]
50 #[allow(non_snake_case)]
51 pub mod __lookup_get_graph {
52 use super::*;
53 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
54 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
55 ::unity::lookup::method_info_on_class_with_signature(
56 <DiagnosticEvent as ::unity::ClassIdentity>::class(),
57 "get_Graph",
58 0,
59 param_types,
60 false,
61 )
62 });
63 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
64 match &*METHOD {
65 ::core::result::Result::Ok(mi) => *mi,
66 ::core::result::Result::Err(e) => {
67 panic!(
68 "method lookup failed: {}
69::{}
70: {}
71",
72 <DiagnosticEvent as ::unity::ClassIdentity>::NAME,
73 "get_Graph",
74 e
75 )
76 },
77 }
78 }
79 }
80 #[doc(hidden)]
81 #[allow(non_snake_case)]
82 pub mod __lookup_get_object_id {
83 use super::*;
84 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
85 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
86 ::unity::lookup::method_info_on_class_with_signature(
87 <DiagnosticEvent as ::unity::ClassIdentity>::class(),
88 "get_ObjectId",
89 0,
90 param_types,
91 false,
92 )
93 });
94 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
95 match &*METHOD {
96 ::core::result::Result::Ok(mi) => *mi,
97 ::core::result::Result::Err(e) => {
98 panic!(
99 "method lookup failed: {}
100::{}
101: {}
102",
103 <DiagnosticEvent as ::unity::ClassIdentity>::NAME,
104 "get_ObjectId",
105 e
106 )
107 },
108 }
109 }
110 }
111 #[doc(hidden)]
112 #[allow(non_snake_case)]
113 pub mod __lookup_get_display_name {
114 use super::*;
115 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
116 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
117 ::unity::lookup::method_info_on_class_with_signature(
118 <DiagnosticEvent as ::unity::ClassIdentity>::class(),
119 "get_DisplayName",
120 0,
121 param_types,
122 false,
123 )
124 });
125 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
126 match &*METHOD {
127 ::core::result::Result::Ok(mi) => *mi,
128 ::core::result::Result::Err(e) => {
129 panic!(
130 "method lookup failed: {}
131::{}
132: {}
133",
134 <DiagnosticEvent as ::unity::ClassIdentity>::NAME,
135 "get_DisplayName",
136 e
137 )
138 },
139 }
140 }
141 }
142 #[doc(hidden)]
143 #[allow(non_snake_case)]
144 pub mod __lookup_get_dependencies {
145 use super::*;
146 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
147 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
148 ::unity::lookup::method_info_on_class_with_signature(
149 <DiagnosticEvent as ::unity::ClassIdentity>::class(),
150 "get_Dependencies",
151 0,
152 param_types,
153 false,
154 )
155 });
156 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157 match &*METHOD {
158 ::core::result::Result::Ok(mi) => *mi,
159 ::core::result::Result::Err(e) => {
160 panic!(
161 "method lookup failed: {}
162::{}
163: {}
164",
165 <DiagnosticEvent as ::unity::ClassIdentity>::NAME,
166 "get_Dependencies",
167 e
168 )
169 },
170 }
171 }
172 }
173 #[doc(hidden)]
174 #[allow(non_snake_case)]
175 pub mod __lookup_get_stream {
176 use super::*;
177 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
178 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
179 ::unity::lookup::method_info_on_class_with_signature(
180 <DiagnosticEvent as ::unity::ClassIdentity>::class(),
181 "get_Stream",
182 0,
183 param_types,
184 false,
185 )
186 });
187 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188 match &*METHOD {
189 ::core::result::Result::Ok(mi) => *mi,
190 ::core::result::Result::Err(e) => {
191 panic!(
192 "method lookup failed: {}
193::{}
194: {}
195",
196 <DiagnosticEvent as ::unity::ClassIdentity>::NAME,
197 "get_Stream",
198 e
199 )
200 },
201 }
202 }
203 }
204 #[doc(hidden)]
205 #[allow(non_snake_case)]
206 pub mod __lookup_get_frame {
207 use super::*;
208 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
209 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
210 ::unity::lookup::method_info_on_class_with_signature(
211 <DiagnosticEvent as ::unity::ClassIdentity>::class(),
212 "get_Frame",
213 0,
214 param_types,
215 false,
216 )
217 });
218 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219 match &*METHOD {
220 ::core::result::Result::Ok(mi) => *mi,
221 ::core::result::Result::Err(e) => {
222 panic!(
223 "method lookup failed: {}
224::{}
225: {}
226",
227 <DiagnosticEvent as ::unity::ClassIdentity>::NAME,
228 "get_Frame",
229 e
230 )
231 },
232 }
233 }
234 }
235 #[doc(hidden)]
236 #[allow(non_snake_case)]
237 pub mod __lookup_get_value {
238 use super::*;
239 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
240 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
241 ::unity::lookup::method_info_on_class_with_signature(
242 <DiagnosticEvent as ::unity::ClassIdentity>::class(),
243 "get_Value",
244 0,
245 param_types,
246 false,
247 )
248 });
249 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250 match &*METHOD {
251 ::core::result::Result::Ok(mi) => *mi,
252 ::core::result::Result::Err(e) => {
253 panic!(
254 "method lookup failed: {}
255::{}
256: {}
257",
258 <DiagnosticEvent as ::unity::ClassIdentity>::NAME,
259 "get_Value",
260 e
261 )
262 },
263 }
264 }
265 }
266 #[doc(hidden)]
267 #[allow(non_snake_case)]
268 pub mod __lookup_ctor {
269 use super::*;
270 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
271 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
272 <::unity::Il2CppString as ::unity::IlType>::il_type(),
273 <::unity::Il2CppString as ::unity::IlType>::il_type(),
274 <i32 as ::unity::IlType>::il_type(),
275 <i32 as ::unity::IlType>::il_type(),
276 <i32 as ::unity::IlType>::il_type(),
277 <i32 as ::unity::IlType>::il_type(),
278 <::unity::Array<i32> as ::unity::IlType>::il_type(),
279 ];
280 ::unity::lookup::method_info_on_class_with_signature(<DiagnosticEvent as ::unity::ClassIdentity>::class(), ".ctor", 7, param_types, false)
281 });
282 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283 match &*METHOD {
284 ::core::result::Result::Ok(mi) => *mi,
285 ::core::result::Result::Err(e) => {
286 panic!(
287 "method lookup failed: {}
288::{}
289: {}
290",
291 <DiagnosticEvent as ::unity::ClassIdentity>::NAME,
292 ".ctor",
293 e
294 )
295 },
296 }
297 }
298 }
299 #[doc(hidden)]
300 #[allow(non_snake_case)]
301 pub mod __lookup_serialize {
302 use super::*;
303 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
304 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
305 ::unity::lookup::method_info_on_class_with_signature(
306 <DiagnosticEvent as ::unity::ClassIdentity>::class(),
307 "Serialize",
308 0,
309 param_types,
310 false,
311 )
312 });
313 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314 match &*METHOD {
315 ::core::result::Result::Ok(mi) => *mi,
316 ::core::result::Result::Err(e) => {
317 panic!(
318 "method lookup failed: {}
319::{}
320: {}
321",
322 <DiagnosticEvent as ::unity::ClassIdentity>::NAME,
323 "Serialize",
324 e
325 )
326 },
327 }
328 }
329 }
330 #[doc(hidden)]
331 #[allow(non_snake_case)]
332 pub mod __lookup_deserialize {
333 use super::*;
334 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
335 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Array<u8> as ::unity::IlType>::il_type()];
336 ::unity::lookup::method_info_on_class_with_signature(
337 <DiagnosticEvent as ::unity::ClassIdentity>::class(),
338 "Deserialize",
339 1,
340 param_types,
341 true,
342 )
343 });
344 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345 match &*METHOD {
346 ::core::result::Result::Ok(mi) => *mi,
347 ::core::result::Result::Err(e) => {
348 panic!(
349 "method lookup failed: {}
350::{}
351: {}
352",
353 <DiagnosticEvent as ::unity::ClassIdentity>::NAME,
354 "Deserialize",
355 e
356 )
357 },
358 }
359 }
360 }
361}
362
363#[cfg(feature = "unity_engine-resource_management-diagnostics-diagnosticevent")]
364impl DiagnosticEvent {
365 #[doc = "`Deserialize(::unity::Array<u8>)` overload"]
366 pub fn deserialize(
367 data: impl ::core::convert::Into<::unity::Array<u8>>,
368 ) -> crate::unity_engine::resource_management::diagnostics::diagnosticevent::DiagnosticEvent {
369 unsafe {
370 ::unity::il2cpp_call!(__DiagnosticEvent_unity_raw::__lookup_deserialize::get_method_info().method_ptr,crate::unity_engine::resource_management::diagnostics::diagnosticevent::DiagnosticEvent;
371(::unity::Array<u8>)::core::convert::Into::into(data))
372 }
373 }
374}
375
376#[cfg(feature = "unity_engine-resource_management-diagnostics-diagnosticevent")]
377impl DiagnosticEvent {
378 #[doc = "`get_Graph()` overload"]
379 pub fn get_graph(&mut self) -> ::unity::Il2CppString {
380 unsafe {
381 ::unity::il2cpp_call!(::unity::callable_ptr(__DiagnosticEvent_unity_raw::__lookup_get_graph::get_method_info().method_ptr), ::unity::Il2CppString;
382(*mut DiagnosticEvent)self as*mut DiagnosticEvent)
383 }
384 }
385
386 #[doc = "`get_ObjectId()` overload"]
387 pub fn get_object_id(&mut self) -> i32 {
388 unsafe {
389 ::unity::il2cpp_call!(::unity::callable_ptr(__DiagnosticEvent_unity_raw::__lookup_get_object_id::get_method_info().method_ptr),i32;
390(*mut DiagnosticEvent)self as*mut DiagnosticEvent)
391 }
392 }
393
394 #[doc = "`get_DisplayName()` overload"]
395 pub fn get_display_name(&mut self) -> ::unity::Il2CppString {
396 unsafe {
397 ::unity::il2cpp_call!(::unity::callable_ptr(__DiagnosticEvent_unity_raw::__lookup_get_display_name::get_method_info().method_ptr), ::unity::Il2CppString;
398(*mut DiagnosticEvent)self as*mut DiagnosticEvent)
399 }
400 }
401
402 #[doc = "`get_Dependencies()` overload"]
403 pub fn get_dependencies(&mut self) -> ::unity::Array<i32> {
404 unsafe {
405 ::unity::il2cpp_call!(::unity::callable_ptr(__DiagnosticEvent_unity_raw::__lookup_get_dependencies::get_method_info().method_ptr), ::unity::Array<i32> ;
406(*mut DiagnosticEvent)self as*mut DiagnosticEvent)
407 }
408 }
409
410 #[doc = "`get_Stream()` overload"]
411 pub fn get_stream(&mut self) -> i32 {
412 unsafe {
413 ::unity::il2cpp_call!(::unity::callable_ptr(__DiagnosticEvent_unity_raw::__lookup_get_stream::get_method_info().method_ptr),i32;
414(*mut DiagnosticEvent)self as*mut DiagnosticEvent)
415 }
416 }
417
418 #[doc = "`get_Frame()` overload"]
419 pub fn get_frame(&mut self) -> i32 {
420 unsafe {
421 ::unity::il2cpp_call!(::unity::callable_ptr(__DiagnosticEvent_unity_raw::__lookup_get_frame::get_method_info().method_ptr),i32;
422(*mut DiagnosticEvent)self as*mut DiagnosticEvent)
423 }
424 }
425
426 #[doc = "`get_Value()` overload"]
427 pub fn get_value(&mut self) -> i32 {
428 unsafe {
429 ::unity::il2cpp_call!(::unity::callable_ptr(__DiagnosticEvent_unity_raw::__lookup_get_value::get_method_info().method_ptr),i32;
430(*mut DiagnosticEvent)self as*mut DiagnosticEvent)
431 }
432 }
433
434 #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString, i32, i32, i32, i32, ::unity::Array<i32>)` overload"]
435 pub fn ctor(
436 &mut self,
437 graph: impl ::core::convert::Into<::unity::Il2CppString>,
438 name: impl ::core::convert::Into<::unity::Il2CppString>,
439 id: impl ::core::convert::Into<i32>,
440 stream: impl ::core::convert::Into<i32>,
441 frame: impl ::core::convert::Into<i32>,
442 value: impl ::core::convert::Into<i32>,
443 deps: impl ::core::convert::Into<::unity::Array<i32>>,
444 ) -> () {
445 unsafe {
446 ::unity::il2cpp_call!(::unity::callable_ptr(__DiagnosticEvent_unity_raw::__lookup_ctor::get_method_info().method_ptr),();
447(*mut DiagnosticEvent)self as*mut DiagnosticEvent,(::unity::Il2CppString)::core::convert::Into::into(graph),(::unity::Il2CppString)::core::convert::Into::into(name),(i32)::core::convert::Into::into(id),(i32)::core::convert::Into::into(stream),(i32)::core::convert::Into::into(frame),(i32)::core::convert::Into::into(value),(::unity::Array<i32>)::core::convert::Into::into(deps))
448 }
449 }
450
451 #[doc = "`Serialize()` overload"]
452 pub fn serialize(&mut self) -> ::unity::Array<u8> {
453 unsafe {
454 ::unity::il2cpp_call!(::unity::callable_ptr(__DiagnosticEvent_unity_raw::__lookup_serialize::get_method_info().method_ptr), ::unity::Array<u8> ;
455(*mut DiagnosticEvent)self as*mut DiagnosticEvent)
456 }
457 }
458}
459
460#[cfg(feature = "unity_engine-resource_management-diagnostics-diagnosticevent")]
461impl DiagnosticEvent {
462 pub fn get_graph_method_info() -> &'static ::unity::il2cpp::MethodInfo {
463 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
464 }
465
466 pub fn get_object_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
467 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
468 }
469
470 pub fn get_display_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
471 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
472 }
473
474 pub fn get_dependencies_method_info() -> &'static ::unity::il2cpp::MethodInfo {
475 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
476 }
477
478 pub fn get_stream_method_info() -> &'static ::unity::il2cpp::MethodInfo {
479 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
480 }
481
482 pub fn get_frame_method_info() -> &'static ::unity::il2cpp::MethodInfo {
483 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
484 }
485
486 pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
487 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
488 }
489
490 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
491 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
492 }
493
494 pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
495 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
496 }
497
498 pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
499 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
500 }
501}
502
503#[cfg(feature = "unity_engine-resource_management-diagnostics-diagnosticevent")]
504#[doc(hidden)]
505pub mod prelude {
506 pub use super::DiagnosticEvent;
507 #[cfg(feature = "system-object")]
508 pub use crate::system::object::IObjectMethods;
509 #[cfg(feature = "system-valuetype")]
510 pub use crate::system::valuetype::IValueTypeMethods;
511 pub use crate::system::{object::IObject, valuetype::IValueType};
512}