engage/generated/root/
akchannelemitter.rs1#[cfg(feature = "root-akchannelemitter-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/akchannelemitter/AkChannelEmitter.md"))]
11 #[::unity::class(namespace = "", name = "AkChannelEmitter")]
12 #[parent(crate::system::object::Object)]
13 pub struct AkChannelEmitter {
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-akchannelemitter-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akchannelemitter")]
27impl AkChannelEmitter {
28 #[doc = "`getCPtr(crate::root::akchannelemitter::AkChannelEmitter)` overload"]
29 pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akchannelemitter::AkChannelEmitter>) -> ::unity::IntPtr {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x2f10c40usize)as*mut u8, ::unity::IntPtr;
32(crate::root::akchannelemitter::AkChannelEmitter)::core::convert::Into::into(obj))
33 }
34 }
35}
36
37#[cfg(feature = "root-akchannelemitter")]
38pub trait IAkChannelEmitterMethods: IAkChannelEmitter {
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 = <AkChannelEmitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 ::unity::il2cpp_call!((::unity::module_base()+0x2f10c00usize)as*mut u8,();
44(AkChannelEmitter)__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 = <AkChannelEmitter 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 <AkChannelEmitter as ::unity::ClassIdentity>::NAME,
63 "setCPtr",
64 )
65 });
66 let __inner: extern "C" fn(AkChannelEmitter, ::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 = <AkChannelEmitter 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 <AkChannelEmitter as ::unity::ClassIdentity>::NAME,
89 "Finalize",
90 )
91 });
92 let __inner: extern "C" fn(AkChannelEmitter, ::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 = <AkChannelEmitter 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 <AkChannelEmitter as ::unity::ClassIdentity>::NAME,
114 "Dispose",
115 )
116 });
117 let __inner: extern "C" fn(AkChannelEmitter, ::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_position(crate::root::aktransform::AkTransform)` overload"]
124 fn set_position(self, value: impl ::core::convert::Into<crate::root::aktransform::AkTransform>) -> () {
125 unsafe {
126 let __receiver = <AkChannelEmitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127 ::unity::il2cpp_call!((::unity::module_base()+0x2f10ed0usize)as*mut u8,();
128(AkChannelEmitter)__receiver,(crate::root::aktransform::AkTransform)::core::convert::Into::into(value))
129 }
130 }
131 #[doc = "`get_position()` overload"]
132 fn get_position(self) -> crate::root::aktransform::AkTransform {
133 unsafe {
134 let __receiver = <AkChannelEmitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 ::unity::il2cpp_call!((::unity::module_base()+0x2f10f60usize)as*mut u8,crate::root::aktransform::AkTransform;
136(AkChannelEmitter)__receiver)
137 }
138 }
139 #[doc = "`set_uInputChannels(u32)` overload"]
140 fn set_u_input_channels(self, value: impl ::core::convert::Into<u32>) -> () {
141 unsafe {
142 let __receiver = <AkChannelEmitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143 ::unity::il2cpp_call!((::unity::module_base()+0x2f11040usize)as*mut u8,();
144(AkChannelEmitter)__receiver,(u32)::core::convert::Into::into(value))
145 }
146 }
147 #[doc = "`get_uInputChannels()` overload"]
148 fn get_u_input_channels(self) -> u32 {
149 unsafe {
150 let __receiver = <AkChannelEmitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151 ::unity::il2cpp_call!((::unity::module_base()+0x2f110c0usize)as*mut u8,u32;
152(AkChannelEmitter)__receiver)
153 }
154 }
155}
156
157#[cfg(feature = "root-akchannelemitter")]
158impl<__T: IAkChannelEmitter> IAkChannelEmitterMethods for __T {}
159
160#[cfg(feature = "root-akchannelemitter")]
161impl AkChannelEmitter {
162 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
164 }
165
166 pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
168 }
169
170 pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
172 }
173
174 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
176 }
177
178 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
180 }
181
182 pub fn set_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
184 }
185
186 pub fn get_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
188 }
189
190 pub fn set_u_input_channels_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
192 }
193
194 pub fn get_u_input_channels_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
196 }
197}
198
199#[cfg(feature = "root-akchannelemitter")]
200impl AkChannelEmitter {
201 #[doc = "Direct (non-virtual) call to `AkChannelEmitter`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
202 pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
203 let __mi = Self::set_c_ptr_method_info();
204 let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
205 __inner(this.into(), c_ptr, ::core::option::Option::None)
206 }
207
208 #[doc = "Direct (non-virtual) call to `AkChannelEmitter`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
209 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
210 let __mi = Self::finalize_method_info();
211 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
212 __inner(this.into(), ::core::option::Option::None)
213 }
214
215 #[doc = "Direct (non-virtual) call to `AkChannelEmitter`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
216 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
217 let __mi = Self::dispose_method_info();
218 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
219 __inner(this.into(), ::core::option::Option::None)
220 }
221}
222
223#[cfg(feature = "root-akchannelemitter")]
224impl AkChannelEmitter {
225 #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
226 pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
227 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
228 panic!(
229 "{}
230::{}
231 failed to instantiate",
232 ::core::stringify!(AkChannelEmitter),
233 ::core::stringify!(new),
234 )
235 });
236 <Self as IAkChannelEmitterMethods>::ctor(this, c_ptr, c_memory_own);
237 this
238 }
239}
240
241#[cfg(feature = "root-akchannelemitter")]
242#[doc(hidden)]
243pub mod prelude {
244 pub use super::{AkChannelEmitter, IAkChannelEmitter, IAkChannelEmitterMethods};
245 pub use crate::system::object::IObject;
246 #[cfg(feature = "system-object")]
247 pub use crate::system::object::IObjectMethods;
248}