Skip to main content

engage/generated/unity_engine/
integratedsubsystem.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-integratedsubsystem-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/integratedsubsystem/IntegratedSubsystem.md"))]
11    #[::unity::class(namespace = "UnityEngine", name = "IntegratedSubsystem")]
12    #[parent(crate::system::object::Object)]
13    pub struct IntegratedSubsystem {
14        #[offset(16)]
15        #[rename(name = "m_Ptr")]
16        pub m_ptr: ::unity::IntPtr,
17        #[offset(24)]
18        #[rename(name = "m_SubsystemDescriptor")]
19        pub m_subsystem_descriptor: crate::unity_engine::isubsystemdescriptor_interface::ISubsystemDescriptor_Interface,
20    }
21}
22
23#[cfg(feature = "unity_engine-integratedsubsystem-types")]
24pub use __types::*;
25
26#[cfg(feature = "unity_engine-integratedsubsystem")]
27pub trait IIntegratedSubsystemMethods: IIntegratedSubsystem {
28    #[doc = "`SetHandle(crate::unity_engine::integratedsubsystem::IntegratedSubsystem)` overload"]
29    fn set_handle(self, subsystem: impl ::core::convert::Into<crate::unity_engine::integratedsubsystem::IntegratedSubsystem>) -> () {
30        unsafe {
31            let __receiver = <IntegratedSubsystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32            ::unity::il2cpp_call!((::unity::module_base()+0x3f3a690usize)as*mut u8,();
33(IntegratedSubsystem)__receiver,(crate::unity_engine::integratedsubsystem::IntegratedSubsystem)::core::convert::Into::into(subsystem))
34        }
35    }
36    #[doc = "`get_running()` overload"]
37    fn get_running(self) -> bool {
38        unsafe {
39            let __receiver = <IntegratedSubsystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40            {
41                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
42                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
43                    panic!(
44                        "unity: virtual slot {}
45 out of range (vtable len {}
46) on the runtime class behind {}
47 (method `{}
48`)",
49                        4usize,
50                        __vt.len(),
51                        <IntegratedSubsystem as ::unity::ClassIdentity>::NAME,
52                        "get_running",
53                    )
54                });
55                let __inner: extern "C" fn(IntegratedSubsystem, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
56                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
57                __inner(__receiver, __mi)
58            }
59        }
60    }
61    #[doc = "`get_valid()` overload"]
62    fn get_valid(self) -> bool {
63        unsafe {
64            let __receiver = <IntegratedSubsystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65            ::unity::il2cpp_call!((::unity::module_base()+0x3f3a780usize)as*mut u8,bool;
66(IntegratedSubsystem)__receiver)
67        }
68    }
69    #[doc = "`IsRunning()` overload"]
70    fn is_running(self) -> bool {
71        unsafe {
72            let __receiver = <IntegratedSubsystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73            ::unity::il2cpp_call!((::unity::module_base()+0x3f3a7d0usize)as*mut u8,bool;
74(IntegratedSubsystem)__receiver)
75        }
76    }
77    #[doc = "`.ctor()` overload"]
78    fn ctor(self) -> () {
79        unsafe {
80            let __receiver = <IntegratedSubsystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81            ::unity::il2cpp_call!((::unity::module_base()+0x3f3a820usize)as*mut u8,();
82(IntegratedSubsystem)__receiver)
83        }
84    }
85}
86
87#[cfg(feature = "unity_engine-integratedsubsystem")]
88impl<__T: IIntegratedSubsystem> IIntegratedSubsystemMethods for __T {}
89
90#[cfg(feature = "unity_engine-integratedsubsystem")]
91impl IntegratedSubsystem {
92    pub fn set_handle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
93        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
94    }
95
96    pub fn get_running_method_info() -> &'static ::unity::il2cpp::MethodInfo {
97        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
98    }
99
100    pub fn get_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
102    }
103
104    pub fn is_running_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
106    }
107
108    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
110    }
111}
112
113#[cfg(feature = "unity_engine-integratedsubsystem")]
114impl IntegratedSubsystem {
115    #[doc = "Direct (non-virtual) call to `IntegratedSubsystem`'s own `get_running`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
116    pub unsafe fn get_running(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
117        let __mi = Self::get_running_method_info();
118        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
119        __inner(this.into(), ::core::option::Option::None)
120    }
121}
122
123#[cfg(feature = "unity_engine-integratedsubsystem")]
124impl IntegratedSubsystem {
125    #[doc = "`.ctor()` — no args"]
126    pub fn new() -> Self {
127        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
128            panic!(
129                "{}
130::{}
131 failed to instantiate",
132                ::core::stringify!(IntegratedSubsystem),
133                ::core::stringify!(new),
134            )
135        });
136        <Self as IIntegratedSubsystemMethods>::ctor(this);
137        this
138    }
139}
140
141#[cfg(feature = "unity_engine-integratedsubsystem")]
142#[doc(hidden)]
143pub mod prelude {
144    pub use super::{IIntegratedSubsystem, IIntegratedSubsystemMethods, IntegratedSubsystem};
145    pub use crate::system::object::IObject;
146    #[cfg(feature = "system-object")]
147    pub use crate::system::object::IObjectMethods;
148}