engage/generated/unity_engine/addressable_assets/utility/
diagnosticinfo.rs1#[cfg(feature = "unity_engine-addressable_assets-utility-diagnosticinfo-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/addressable_assets/utility/diagnosticinfo/DiagnosticInfo.md"))]
11 #[::unity::class(namespace = "UnityEngine.AddressableAssets.Utility", name = "DiagnosticInfo")]
12 #[parent(crate::system::object::Object)]
13 pub struct DiagnosticInfo {
14 #[offset(16)]
15 #[rename(name = "DisplayName")]
16 pub display_name: ::unity::Il2CppString,
17 #[offset(24)]
18 #[rename(name = "ObjectId")]
19 pub object_id: i32,
20 #[offset(32)]
21 #[rename(name = "Dependencies")]
22 pub dependencies: ::unity::Array<i32>,
23 }
24}
25
26#[cfg(feature = "unity_engine-addressable_assets-utility-diagnosticinfo-types")]
27pub use __types::*;
28
29#[cfg(feature = "unity_engine-addressable_assets-utility-diagnosticinfo")]
30pub trait IDiagnosticInfoMethods: IDiagnosticInfo {
31 #[doc = "`CreateEvent(::unity::Il2CppString, crate::unity_engine::resource_management::resourcemanager::ResourceManager_DiagnosticEventType, i32, i32)` overload"]
32 fn create_event(
33 self,
34 category: impl ::core::convert::Into<::unity::Il2CppString>,
35 event_type: impl ::core::convert::Into<crate::unity_engine::resource_management::resourcemanager::ResourceManager_DiagnosticEventType>,
36 frame: impl ::core::convert::Into<i32>,
37 val: impl ::core::convert::Into<i32>,
38 ) -> crate::unity_engine::resource_management::diagnostics::diagnosticevent::DiagnosticEvent {
39 unsafe {
40 let __receiver = <DiagnosticInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41 ::unity::il2cpp_call!((::unity::module_base()+0x2db5b90usize)as*mut u8,crate::unity_engine::resource_management::diagnostics::diagnosticevent::DiagnosticEvent;
42(DiagnosticInfo)__receiver,(::unity::Il2CppString)::core::convert::Into::into(category),(crate::unity_engine::resource_management::resourcemanager::ResourceManager_DiagnosticEventType)::core::convert::Into::into(event_type),(i32)::core::convert::Into::into(frame),(i32)::core::convert::Into::into(val))
43 }
44 }
45 #[doc = "`.ctor()` overload"]
46 fn ctor(self) -> () {
47 unsafe {
48 let __receiver = <DiagnosticInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49 ::unity::il2cpp_call!((::unity::module_base()+0x2db5be0usize)as*mut u8,();
50(DiagnosticInfo)__receiver)
51 }
52 }
53}
54
55#[cfg(feature = "unity_engine-addressable_assets-utility-diagnosticinfo")]
56impl<__T: IDiagnosticInfo> IDiagnosticInfoMethods for __T {}
57
58#[cfg(feature = "unity_engine-addressable_assets-utility-diagnosticinfo")]
59impl DiagnosticInfo {
60 pub fn create_event_method_info() -> &'static ::unity::il2cpp::MethodInfo {
61 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
62 }
63
64 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
65 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
66 }
67}
68
69#[cfg(feature = "unity_engine-addressable_assets-utility-diagnosticinfo")]
70impl DiagnosticInfo {
71 #[doc = "`.ctor()` — no args"]
72 pub fn new() -> Self {
73 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
74 panic!(
75 "{}
76::{}
77 failed to instantiate",
78 ::core::stringify!(DiagnosticInfo),
79 ::core::stringify!(new),
80 )
81 });
82 <Self as IDiagnosticInfoMethods>::ctor(this);
83 this
84 }
85}
86
87#[cfg(feature = "unity_engine-addressable_assets-utility-diagnosticinfo")]
88#[doc(hidden)]
89pub mod prelude {
90 pub use super::{DiagnosticInfo, IDiagnosticInfo, IDiagnosticInfoMethods};
91 pub use crate::system::object::IObject;
92 #[cfg(feature = "system-object")]
93 pub use crate::system::object::IObjectMethods;
94}