engage/generated/unity_engine/
integratedsubsystemdescriptor.rs1#[cfg(feature = "unity_engine-integratedsubsystemdescriptor-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/integratedsubsystemdescriptor/IntegratedSubsystemDescriptor.md"))]
11 #[::unity::class(namespace = "UnityEngine", name = "IntegratedSubsystemDescriptor")]
12 #[parent(crate::system::object::Object)]
13 pub struct IntegratedSubsystemDescriptor {
14 #[offset(16)]
15 #[rename(name = "m_Ptr")]
16 pub m_ptr: ::unity::IntPtr,
17 }
18}
19
20#[cfg(feature = "unity_engine-integratedsubsystemdescriptor-types")]
21pub use __types::*;
22
23#[cfg(feature = "unity_engine-integratedsubsystemdescriptor")]
24pub trait IIntegratedSubsystemDescriptorMethods: IIntegratedSubsystemDescriptor {
25 #[doc = "`get_id()` overload"]
26 fn get_id(self) -> ::unity::Il2CppString {
27 unsafe {
28 let __receiver =
29 <IntegratedSubsystemDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
30 {
31 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
32 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
33 panic!(
34 "unity: virtual slot {}
35 out of range (vtable len {}
36) on the runtime class behind {}
37 (method `{}
38`)",
39 4usize,
40 __vt.len(),
41 <IntegratedSubsystemDescriptor as ::unity::ClassIdentity>::NAME,
42 "get_id",
43 )
44 });
45 let __inner: extern "C" fn(IntegratedSubsystemDescriptor, ::unity::OptionalMethod) -> ::unity::Il2CppString =
46 ::core::mem::transmute(__vi.method_ptr);
47 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
48 __inner(__receiver, __mi)
49 }
50 }
51 }
52 #[doc = "`.ctor()` overload"]
53 fn ctor(self) -> () {
54 unsafe {
55 let __receiver =
56 <IntegratedSubsystemDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 ::unity::il2cpp_call!((::unity::module_base()+0x3f3a8d0usize)as*mut u8,();
58(IntegratedSubsystemDescriptor)__receiver)
59 }
60 }
61}
62
63#[cfg(feature = "unity_engine-integratedsubsystemdescriptor")]
64impl<__T: IIntegratedSubsystemDescriptor> IIntegratedSubsystemDescriptorMethods for __T {}
65
66#[cfg(feature = "unity_engine-integratedsubsystemdescriptor")]
67impl IntegratedSubsystemDescriptor {
68 pub fn get_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
69 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
70 }
71
72 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
74 }
75}
76
77#[cfg(feature = "unity_engine-integratedsubsystemdescriptor")]
78impl IntegratedSubsystemDescriptor {
79 #[doc = "Direct (non-virtual) call to `IntegratedSubsystemDescriptor`'s own `get_id`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
80 pub unsafe fn get_id(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
81 let __mi = Self::get_id_method_info();
82 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
83 __inner(this.into(), ::core::option::Option::None)
84 }
85}
86
87#[cfg(feature = "unity_engine-integratedsubsystemdescriptor")]
88impl IntegratedSubsystemDescriptor {
89 #[doc = "`.ctor()` — no args"]
90 pub fn new() -> Self {
91 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
92 panic!(
93 "{}
94::{}
95 failed to instantiate",
96 ::core::stringify!(IntegratedSubsystemDescriptor),
97 ::core::stringify!(new),
98 )
99 });
100 <Self as IIntegratedSubsystemDescriptorMethods>::ctor(this);
101 this
102 }
103}
104
105#[cfg(feature = "unity_engine-integratedsubsystemdescriptor")]
106#[doc(hidden)]
107pub mod prelude {
108 pub use super::{IIntegratedSubsystemDescriptor, IIntegratedSubsystemDescriptorMethods, IntegratedSubsystemDescriptor};
109 pub use crate::system::object::IObject;
110 #[cfg(feature = "system-object")]
111 pub use crate::system::object::IObjectMethods;
112}