engage/generated/root/
aktaskcontext.rs1#[cfg(feature = "root-aktaskcontext-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/aktaskcontext/AkTaskContext.md"))]
11 #[::unity::class(namespace = "", name = "AkTaskContext")]
12 #[parent(crate::system::object::Object)]
13 pub struct AkTaskContext {
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-aktaskcontext-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-aktaskcontext")]
27impl AkTaskContext {
28 #[doc = "`getCPtr(crate::root::aktaskcontext::AkTaskContext)` overload"]
29 pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::aktaskcontext::AkTaskContext>) -> ::unity::IntPtr {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x1d25e00usize)as*mut u8, ::unity::IntPtr;
32(crate::root::aktaskcontext::AkTaskContext)::core::convert::Into::into(obj))
33 }
34 }
35}
36
37#[cfg(feature = "root-aktaskcontext")]
38pub trait IAkTaskContextMethods: IAkTaskContext {
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 = <AkTaskContext as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 ::unity::il2cpp_call!((::unity::module_base()+0x1d25dc0usize)as*mut u8,();
44(AkTaskContext)__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 = <AkTaskContext 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 <AkTaskContext as ::unity::ClassIdentity>::NAME,
63 "setCPtr",
64 )
65 });
66 let __inner: extern "C" fn(AkTaskContext, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
67 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
68 __inner(__receiver, ::core::convert::Into::into(c_ptr), __mi)
69 }
70 }
71 }
72 #[doc = "`Finalize()` overload"]
73 fn finalize(self) -> () {
74 unsafe {
75 let __receiver = <AkTaskContext as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76 {
77 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
78 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
79 panic!(
80 "unity: virtual slot {}
81 out of range (vtable len {}
82) on the runtime class behind {}
83 (method `{}
84`)",
85 1usize,
86 __vt.len(),
87 <AkTaskContext as ::unity::ClassIdentity>::NAME,
88 "Finalize",
89 )
90 });
91 let __inner: extern "C" fn(AkTaskContext, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
92 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
93 __inner(__receiver, __mi)
94 }
95 }
96 }
97 #[doc = "`Dispose()` overload"]
98 fn dispose(self) -> () {
99 unsafe {
100 let __receiver = <AkTaskContext as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101 {
102 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
103 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
104 panic!(
105 "unity: virtual slot {}
106 out of range (vtable len {}
107) on the runtime class behind {}
108 (method `{}
109`)",
110 6usize,
111 __vt.len(),
112 <AkTaskContext as ::unity::ClassIdentity>::NAME,
113 "Dispose",
114 )
115 });
116 let __inner: extern "C" fn(AkTaskContext, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
117 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
118 __inner(__receiver, __mi)
119 }
120 }
121 }
122 #[doc = "`set_uIdxThread(u32)` overload"]
123 fn set_u_idx_thread(self, value: impl ::core::convert::Into<u32>) -> () {
124 unsafe {
125 let __receiver = <AkTaskContext as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126 ::unity::il2cpp_call!((::unity::module_base()+0x1d26080usize)as*mut u8,();
127(AkTaskContext)__receiver,(u32)::core::convert::Into::into(value))
128 }
129 }
130 #[doc = "`get_uIdxThread()` overload"]
131 fn get_u_idx_thread(self) -> u32 {
132 unsafe {
133 let __receiver = <AkTaskContext as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134 ::unity::il2cpp_call!((::unity::module_base()+0x1d26100usize)as*mut u8,u32;
135(AkTaskContext)__receiver)
136 }
137 }
138 #[doc = "`.ctor()` overload"]
139 fn ctor_2(self) -> () {
140 unsafe {
141 let __receiver = <AkTaskContext as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142 ::unity::il2cpp_call!((::unity::module_base()+0x1d26170usize)as*mut u8,();
143(AkTaskContext)__receiver)
144 }
145 }
146}
147
148#[cfg(feature = "root-aktaskcontext")]
149impl<__T: IAkTaskContext> IAkTaskContextMethods for __T {}
150
151#[cfg(feature = "root-aktaskcontext")]
152impl AkTaskContext {
153 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
155 }
156
157 pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
159 }
160
161 pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
163 }
164
165 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
167 }
168
169 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
171 }
172
173 pub fn set_u_idx_thread_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
175 }
176
177 pub fn get_u_idx_thread_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
179 }
180
181 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
183 }
184}
185
186#[cfg(feature = "root-aktaskcontext")]
187impl AkTaskContext {
188 #[doc = "Direct (non-virtual) call to `AkTaskContext`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
189 pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
190 let __mi = Self::set_c_ptr_method_info();
191 let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
192 __inner(this.into(), c_ptr, ::core::option::Option::None)
193 }
194
195 #[doc = "Direct (non-virtual) call to `AkTaskContext`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
196 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
197 let __mi = Self::finalize_method_info();
198 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
199 __inner(this.into(), ::core::option::Option::None)
200 }
201
202 #[doc = "Direct (non-virtual) call to `AkTaskContext`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
203 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
204 let __mi = Self::dispose_method_info();
205 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
206 __inner(this.into(), ::core::option::Option::None)
207 }
208}
209
210#[cfg(feature = "root-aktaskcontext")]
211impl AkTaskContext {
212 #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
213 pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
214 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
215 panic!(
216 "{}
217::{}
218 failed to instantiate",
219 ::core::stringify!(AkTaskContext),
220 ::core::stringify!(new),
221 )
222 });
223 <Self as IAkTaskContextMethods>::ctor(this, c_ptr, c_memory_own);
224 this
225 }
226
227 #[doc = "`.ctor()` — no args"]
228 pub fn new_2() -> Self {
229 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
230 panic!(
231 "{}
232::{}
233 failed to instantiate",
234 ::core::stringify!(AkTaskContext),
235 ::core::stringify!(new_2),
236 )
237 });
238 <Self as IAkTaskContextMethods>::ctor_2(this);
239 this
240 }
241}
242
243#[cfg(feature = "root-aktaskcontext")]
244#[doc(hidden)]
245pub mod prelude {
246 pub use super::{AkTaskContext, IAkTaskContext, IAkTaskContextMethods};
247 pub use crate::system::object::IObject;
248 #[cfg(feature = "system-object")]
249 pub use crate::system::object::IObjectMethods;
250}