engage/generated/root/
akmidipost.rs1#[cfg(feature = "root-akmidipost-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 root::akmidievent::{AkMIDIEvent, IAkMIDIEvent},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akmidipost/AkMIDIPost.md"))]
14 #[::unity::class(namespace = "", name = "AkMIDIPost")]
15 #[parent(crate::root::akmidievent::AkMIDIEvent)]
16 pub struct AkMIDIPost {
17 #[offset(32)]
18 #[rename(name = "swigCPtr")]
19 pub swig_c_ptr: ::unity::IntPtr,
20 }
21}
22
23#[cfg(feature = "root-akmidipost-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akmidipost")]
27impl AkMIDIPost {
28 #[doc = "`getCPtr(crate::root::akmidipost::AkMIDIPost)` overload"]
29 pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akmidipost::AkMIDIPost>) -> ::unity::IntPtr {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x2f25870usize)as*mut u8, ::unity::IntPtr;
32(crate::root::akmidipost::AkMIDIPost)::core::convert::Into::into(obj))
33 }
34 }
35
36 #[doc = "`GetSizeOf()` overload"]
37 pub fn get_size_of() -> i32 {
38 unsafe {
39 ::unity::il2cpp_call!((::unity::module_base()+0x2f25e70usize)as*mut u8,i32;
40 )
41 }
42 }
43}
44
45#[cfg(feature = "root-akmidipost")]
46pub trait IAkMIDIPostMethods: IAkMIDIPost {
47 #[doc = "`.ctor(::unity::IntPtr, bool)` overload"]
48 fn ctor(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>, c_memory_own: impl ::core::convert::Into<bool>) -> () {
49 unsafe {
50 let __receiver = <AkMIDIPost as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x2f257d0usize)as*mut u8,();
52(AkMIDIPost)__receiver,(::unity::IntPtr)::core::convert::Into::into(c_ptr),(bool)::core::convert::Into::into(c_memory_own))
53 }
54 }
55 #[doc = "`setCPtr(::unity::IntPtr)` overload"]
56 fn set_c_ptr(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
57 unsafe {
58 let __receiver = <AkMIDIPost as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59 {
60 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
61 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
62 panic!(
63 "unity: virtual slot {}
64 out of range (vtable len {}
65) on the runtime class behind {}
66 (method `{}
67`)",
68 5usize,
69 __vt.len(),
70 <AkMIDIPost as ::unity::ClassIdentity>::NAME,
71 "setCPtr",
72 )
73 });
74 let __inner: extern "C" fn(AkMIDIPost, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
75 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
76 __inner(__receiver, ::core::convert::Into::into(c_ptr), __mi)
77 }
78 }
79 }
80 #[doc = "`Finalize()` overload"]
81 fn finalize(self) -> () {
82 unsafe {
83 let __receiver = <AkMIDIPost as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84 {
85 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
86 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
87 panic!(
88 "unity: virtual slot {}
89 out of range (vtable len {}
90) on the runtime class behind {}
91 (method `{}
92`)",
93 1usize,
94 __vt.len(),
95 <AkMIDIPost as ::unity::ClassIdentity>::NAME,
96 "Finalize",
97 )
98 });
99 let __inner: extern "C" fn(AkMIDIPost, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
100 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
101 __inner(__receiver, __mi)
102 }
103 }
104 }
105 #[doc = "`Dispose()` overload"]
106 fn dispose(self) -> () {
107 unsafe {
108 let __receiver = <AkMIDIPost as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109 {
110 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
111 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
112 panic!(
113 "unity: virtual slot {}
114 out of range (vtable len {}
115) on the runtime class behind {}
116 (method `{}
117`)",
118 6usize,
119 __vt.len(),
120 <AkMIDIPost as ::unity::ClassIdentity>::NAME,
121 "Dispose",
122 )
123 });
124 let __inner: extern "C" fn(AkMIDIPost, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
125 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
126 __inner(__receiver, __mi)
127 }
128 }
129 }
130 #[doc = "`set_uOffset(u32)` overload"]
131 fn set_u_offset(self, value: impl ::core::convert::Into<u32>) -> () {
132 unsafe {
133 let __receiver = <AkMIDIPost as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134 ::unity::il2cpp_call!((::unity::module_base()+0x2f25be0usize)as*mut u8,();
135(AkMIDIPost)__receiver,(u32)::core::convert::Into::into(value))
136 }
137 }
138 #[doc = "`get_uOffset()` overload"]
139 fn get_u_offset(self) -> u32 {
140 unsafe {
141 let __receiver = <AkMIDIPost as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142 ::unity::il2cpp_call!((::unity::module_base()+0x2f25c60usize)as*mut u8,u32;
143(AkMIDIPost)__receiver)
144 }
145 }
146 #[doc = "`PostOnEvent(u32, crate::unity_engine::gameobject::GameObject, u32)` overload"]
147 fn post_on_event(
148 self,
149 in_event_id: impl ::core::convert::Into<u32>,
150 in_game_object_id: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
151 in_u_num_posts: impl ::core::convert::Into<u32>,
152 ) -> crate::root::akresult::AKRESULT {
153 unsafe {
154 let __receiver = <AkMIDIPost as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155 ::unity::il2cpp_call!((::unity::module_base()+0x2f25cd0usize)as*mut u8,crate::root::akresult::AKRESULT;
156(AkMIDIPost)__receiver,(u32)::core::convert::Into::into(in_event_id),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(in_game_object_id),(u32)::core::convert::Into::into(in_u_num_posts))
157 }
158 }
159 #[doc = "`Clone(crate::root::akmidipost::AkMIDIPost)` overload"]
160 fn clone(self, other: impl ::core::convert::Into<crate::root::akmidipost::AkMIDIPost>) -> () {
161 unsafe {
162 let __receiver = <AkMIDIPost as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163 ::unity::il2cpp_call!((::unity::module_base()+0x2f25db0usize)as*mut u8,();
164(AkMIDIPost)__receiver,(crate::root::akmidipost::AkMIDIPost)::core::convert::Into::into(other))
165 }
166 }
167 #[doc = "`.ctor()` overload"]
168 fn ctor_2(self) -> () {
169 unsafe {
170 let __receiver = <AkMIDIPost as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171 ::unity::il2cpp_call!((::unity::module_base()+0x2f25ee0usize)as*mut u8,();
172(AkMIDIPost)__receiver)
173 }
174 }
175}
176
177#[cfg(feature = "root-akmidipost")]
178impl<__T: IAkMIDIPost> IAkMIDIPostMethods for __T {}
179
180#[cfg(feature = "root-akmidipost")]
181impl AkMIDIPost {
182 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
184 }
185
186 pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
188 }
189
190 pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
192 }
193
194 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
196 }
197
198 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
199 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
200 }
201
202 pub fn set_u_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
204 }
205
206 pub fn get_u_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
208 }
209
210 pub fn post_on_event_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
212 }
213
214 pub fn clone_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
216 }
217
218 pub fn get_size_of_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
220 }
221
222 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
224 }
225}
226
227#[cfg(feature = "root-akmidipost")]
228impl AkMIDIPost {
229 #[doc = "Direct (non-virtual) call to `AkMIDIPost`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
230 pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
231 let __mi = Self::set_c_ptr_method_info();
232 let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
233 __inner(this.into(), c_ptr, ::core::option::Option::None)
234 }
235
236 #[doc = "Direct (non-virtual) call to `AkMIDIPost`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
237 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
238 let __mi = Self::finalize_method_info();
239 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
240 __inner(this.into(), ::core::option::Option::None)
241 }
242
243 #[doc = "Direct (non-virtual) call to `AkMIDIPost`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
244 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
245 let __mi = Self::dispose_method_info();
246 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
247 __inner(this.into(), ::core::option::Option::None)
248 }
249}
250
251#[cfg(feature = "root-akmidipost")]
252impl AkMIDIPost {
253 #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
254 pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
255 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
256 panic!(
257 "{}
258::{}
259 failed to instantiate",
260 ::core::stringify!(AkMIDIPost),
261 ::core::stringify!(new),
262 )
263 });
264 <Self as IAkMIDIPostMethods>::ctor(this, c_ptr, c_memory_own);
265 this
266 }
267
268 #[doc = "`.ctor()` — no args"]
269 pub fn new_2() -> Self {
270 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
271 panic!(
272 "{}
273::{}
274 failed to instantiate",
275 ::core::stringify!(AkMIDIPost),
276 ::core::stringify!(new_2),
277 )
278 });
279 <Self as IAkMIDIPostMethods>::ctor_2(this);
280 this
281 }
282}
283
284#[cfg(feature = "root-akmidipost")]
285#[doc(hidden)]
286pub mod prelude {
287 pub use super::{AkMIDIPost, IAkMIDIPost, IAkMIDIPostMethods};
288 #[cfg(feature = "root-akmidievent")]
289 pub use crate::root::akmidievent::IAkMIDIEventMethods;
290 #[cfg(feature = "system-object")]
291 pub use crate::system::object::IObjectMethods;
292 pub use crate::{root::akmidievent::IAkMIDIEvent, system::object::IObject};
293}