Skip to main content

engage/generated/root/
akthreadproperties.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akthreadproperties-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/root/akthreadproperties/AkThreadProperties.md"))]
11    #[::unity::class(namespace = "", name = "AkThreadProperties")]
12    #[parent(crate::system::object::Object)]
13    pub struct AkThreadProperties {
14        #[offset(16)]
15        #[rename(name = "swigCPtr")]
16        pub swig_c_ptr: ::unity::IntPtr,
17        #[offset(24)]
18        #[rename(name = "swigCMemOwn")]
19        pub swig_c_mem_own: bool,
20    }
21}
22
23#[cfg(feature = "root-akthreadproperties-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akthreadproperties")]
27impl AkThreadProperties {
28    #[doc = "`getCPtr(crate::root::akthreadproperties::AkThreadProperties)` overload"]
29    pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akthreadproperties::AkThreadProperties>) -> ::unity::IntPtr {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x1d14b70usize)as*mut u8, ::unity::IntPtr;
32(crate::root::akthreadproperties::AkThreadProperties)::core::convert::Into::into(obj))
33        }
34    }
35}
36
37#[cfg(feature = "root-akthreadproperties")]
38pub trait IAkThreadPropertiesMethods: IAkThreadProperties {
39    #[doc = "`.ctor(::unity::IntPtr, bool)` overload"]
40    fn ctor(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>, c_memory_own: impl ::core::convert::Into<bool>) -> () {
41        unsafe {
42            let __receiver = <AkThreadProperties as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x1d26210usize)as*mut u8,();
44(AkThreadProperties)__receiver,(::unity::IntPtr)::core::convert::Into::into(c_ptr),(bool)::core::convert::Into::into(c_memory_own))
45        }
46    }
47    #[doc = "`setCPtr(::unity::IntPtr)` overload"]
48    fn set_c_ptr(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
49        unsafe {
50            let __receiver = <AkThreadProperties as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            {
52                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
53                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
54                    panic!(
55                        "unity: virtual slot {}
56 out of range (vtable len {}
57) on the runtime class behind {}
58 (method `{}
59`)",
60                        5usize,
61                        __vt.len(),
62                        <AkThreadProperties as ::unity::ClassIdentity>::NAME,
63                        "setCPtr",
64                    )
65                });
66                let __inner: extern "C" fn(AkThreadProperties, ::unity::IntPtr, ::unity::OptionalMethod) -> () =
67                    ::core::mem::transmute(__vi.method_ptr);
68                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
69                __inner(__receiver, ::core::convert::Into::into(c_ptr), __mi)
70            }
71        }
72    }
73    #[doc = "`Finalize()` overload"]
74    fn finalize(self) -> () {
75        unsafe {
76            let __receiver = <AkThreadProperties as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
77            {
78                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
79                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
80                    panic!(
81                        "unity: virtual slot {}
82 out of range (vtable len {}
83) on the runtime class behind {}
84 (method `{}
85`)",
86                        1usize,
87                        __vt.len(),
88                        <AkThreadProperties as ::unity::ClassIdentity>::NAME,
89                        "Finalize",
90                    )
91                });
92                let __inner: extern "C" fn(AkThreadProperties, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
93                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
94                __inner(__receiver, __mi)
95            }
96        }
97    }
98    #[doc = "`Dispose()` overload"]
99    fn dispose(self) -> () {
100        unsafe {
101            let __receiver = <AkThreadProperties as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102            {
103                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
104                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
105                    panic!(
106                        "unity: virtual slot {}
107 out of range (vtable len {}
108) on the runtime class behind {}
109 (method `{}
110`)",
111                        6usize,
112                        __vt.len(),
113                        <AkThreadProperties as ::unity::ClassIdentity>::NAME,
114                        "Dispose",
115                    )
116                });
117                let __inner: extern "C" fn(AkThreadProperties, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
118                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
119                __inner(__receiver, __mi)
120            }
121        }
122    }
123    #[doc = "`set_nPriority(i32)` overload"]
124    fn set_n_priority(self, value: impl ::core::convert::Into<i32>) -> () {
125        unsafe {
126            let __receiver = <AkThreadProperties as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127            ::unity::il2cpp_call!((::unity::module_base()+0x1d26470usize)as*mut u8,();
128(AkThreadProperties)__receiver,(i32)::core::convert::Into::into(value))
129        }
130    }
131    #[doc = "`get_nPriority()` overload"]
132    fn get_n_priority(self) -> i32 {
133        unsafe {
134            let __receiver = <AkThreadProperties as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135            ::unity::il2cpp_call!((::unity::module_base()+0x1d264f0usize)as*mut u8,i32;
136(AkThreadProperties)__receiver)
137        }
138    }
139    #[doc = "`set_uStackSize(u32)` overload"]
140    fn set_u_stack_size(self, value: impl ::core::convert::Into<u32>) -> () {
141        unsafe {
142            let __receiver = <AkThreadProperties as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143            ::unity::il2cpp_call!((::unity::module_base()+0x1d26560usize)as*mut u8,();
144(AkThreadProperties)__receiver,(u32)::core::convert::Into::into(value))
145        }
146    }
147    #[doc = "`get_uStackSize()` overload"]
148    fn get_u_stack_size(self) -> u32 {
149        unsafe {
150            let __receiver = <AkThreadProperties as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151            ::unity::il2cpp_call!((::unity::module_base()+0x1d265e0usize)as*mut u8,u32;
152(AkThreadProperties)__receiver)
153        }
154    }
155    #[doc = "`set_iIdealCore(i32)` overload"]
156    fn set_i_ideal_core(self, value: impl ::core::convert::Into<i32>) -> () {
157        unsafe {
158            let __receiver = <AkThreadProperties as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159            ::unity::il2cpp_call!((::unity::module_base()+0x1d26650usize)as*mut u8,();
160(AkThreadProperties)__receiver,(i32)::core::convert::Into::into(value))
161        }
162    }
163    #[doc = "`get_iIdealCore()` overload"]
164    fn get_i_ideal_core(self) -> i32 {
165        unsafe {
166            let __receiver = <AkThreadProperties as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167            ::unity::il2cpp_call!((::unity::module_base()+0x1d266d0usize)as*mut u8,i32;
168(AkThreadProperties)__receiver)
169        }
170    }
171    #[doc = "`set_affinityMask(u32)` overload"]
172    fn set_affinity_mask(self, value: impl ::core::convert::Into<u32>) -> () {
173        unsafe {
174            let __receiver = <AkThreadProperties as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175            ::unity::il2cpp_call!((::unity::module_base()+0x1d26740usize)as*mut u8,();
176(AkThreadProperties)__receiver,(u32)::core::convert::Into::into(value))
177        }
178    }
179    #[doc = "`get_affinityMask()` overload"]
180    fn get_affinity_mask(self) -> u32 {
181        unsafe {
182            let __receiver = <AkThreadProperties as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183            ::unity::il2cpp_call!((::unity::module_base()+0x1d267c0usize)as*mut u8,u32;
184(AkThreadProperties)__receiver)
185        }
186    }
187    #[doc = "`.ctor()` overload"]
188    fn ctor_2(self) -> () {
189        unsafe {
190            let __receiver = <AkThreadProperties as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191            ::unity::il2cpp_call!((::unity::module_base()+0x1d26830usize)as*mut u8,();
192(AkThreadProperties)__receiver)
193        }
194    }
195}
196
197#[cfg(feature = "root-akthreadproperties")]
198impl<__T: IAkThreadProperties> IAkThreadPropertiesMethods for __T {}
199
200#[cfg(feature = "root-akthreadproperties")]
201impl AkThreadProperties {
202    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
204    }
205
206    pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
208    }
209
210    pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
212    }
213
214    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
216    }
217
218    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
220    }
221
222    pub fn set_n_priority_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
224    }
225
226    pub fn get_n_priority_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
228    }
229
230    pub fn set_u_stack_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
232    }
233
234    pub fn get_u_stack_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
236    }
237
238    pub fn set_i_ideal_core_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
240    }
241
242    pub fn get_i_ideal_core_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
244    }
245
246    pub fn set_affinity_mask_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
248    }
249
250    pub fn get_affinity_mask_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
252    }
253
254    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
256    }
257}
258
259#[cfg(feature = "root-akthreadproperties")]
260impl AkThreadProperties {
261    #[doc = "Direct (non-virtual) call to `AkThreadProperties`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
262    pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
263        let __mi = Self::set_c_ptr_method_info();
264        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
265        __inner(this.into(), c_ptr, ::core::option::Option::None)
266    }
267
268    #[doc = "Direct (non-virtual) call to `AkThreadProperties`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
269    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
270        let __mi = Self::finalize_method_info();
271        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
272        __inner(this.into(), ::core::option::Option::None)
273    }
274
275    #[doc = "Direct (non-virtual) call to `AkThreadProperties`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
276    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
277        let __mi = Self::dispose_method_info();
278        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
279        __inner(this.into(), ::core::option::Option::None)
280    }
281}
282
283#[cfg(feature = "root-akthreadproperties")]
284impl AkThreadProperties {
285    #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
286    pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
287        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
288            panic!(
289                "{}
290::{}
291 failed to instantiate",
292                ::core::stringify!(AkThreadProperties),
293                ::core::stringify!(new),
294            )
295        });
296        <Self as IAkThreadPropertiesMethods>::ctor(this, c_ptr, c_memory_own);
297        this
298    }
299
300    #[doc = "`.ctor()` — no args"]
301    pub fn new_2() -> Self {
302        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
303            panic!(
304                "{}
305::{}
306 failed to instantiate",
307                ::core::stringify!(AkThreadProperties),
308                ::core::stringify!(new_2),
309            )
310        });
311        <Self as IAkThreadPropertiesMethods>::ctor_2(this);
312        this
313    }
314}
315
316#[cfg(feature = "root-akthreadproperties")]
317#[doc(hidden)]
318pub mod prelude {
319    pub use super::{AkThreadProperties, IAkThreadProperties, IAkThreadPropertiesMethods};
320    pub use crate::system::object::IObject;
321    #[cfg(feature = "system-object")]
322    pub use crate::system::object::IObjectMethods;
323}