engage/generated/root/
akchannelemitterarray.rs1#[cfg(feature = "root-akchannelemitterarray-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/akchannelemitterarray/AkChannelEmitterArray.md"))]
11 #[::unity::class(namespace = "", name = "AkChannelEmitterArray")]
12 #[parent(crate::system::object::Object)]
13 pub struct AkChannelEmitterArray {
14 #[offset(16)]
15 #[rename(name = "m_Buffer")]
16 pub m_buffer: ::unity::IntPtr,
17 #[offset(24)]
18 #[rename(name = "m_Current")]
19 pub m_current: ::unity::IntPtr,
20 #[offset(32)]
21 #[rename(name = "m_MaxCount")]
22 pub m_max_count: u32,
23 }
24}
25
26#[cfg(feature = "root-akchannelemitterarray-types")]
27pub use __types::*;
28
29#[cfg(feature = "root-akchannelemitterarray")]
30pub trait IAkChannelEmitterArrayMethods: IAkChannelEmitterArray {
31 #[doc = "`.ctor(u32)` overload"]
32 fn ctor(self, in_count: impl ::core::convert::Into<u32>) -> () {
33 unsafe {
34 let __receiver = <AkChannelEmitterArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35 ::unity::il2cpp_call!((::unity::module_base()+0x2f11130usize)as*mut u8,();
36(AkChannelEmitterArray)__receiver,(u32)::core::convert::Into::into(in_count))
37 }
38 }
39 #[doc = "`get_Count()` overload"]
40 fn get_count(self) -> u32 {
41 unsafe {
42 let __receiver = <AkChannelEmitterArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 ::unity::il2cpp_call!((::unity::module_base()+0x2f111c0usize)as*mut u8,u32;
44(AkChannelEmitterArray)__receiver)
45 }
46 }
47 #[doc = "`set_Count(u32)` overload"]
48 fn set_count(self, value: impl ::core::convert::Into<u32>) -> () {
49 unsafe {
50 let __receiver = <AkChannelEmitterArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x2f111d0usize)as*mut u8,();
52(AkChannelEmitterArray)__receiver,(u32)::core::convert::Into::into(value))
53 }
54 }
55 #[doc = "`Dispose()` overload"]
56 fn dispose(self) -> () {
57 unsafe {
58 let __receiver = <AkChannelEmitterArray 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(4usize).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 4usize,
69 __vt.len(),
70 <AkChannelEmitterArray as ::unity::ClassIdentity>::NAME,
71 "Dispose",
72 )
73 });
74 let __inner: extern "C" fn(AkChannelEmitterArray, ::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, __mi)
77 }
78 }
79 }
80 #[doc = "`Finalize()` overload"]
81 fn finalize(self) -> () {
82 unsafe {
83 let __receiver = <AkChannelEmitterArray 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 <AkChannelEmitterArray as ::unity::ClassIdentity>::NAME,
96 "Finalize",
97 )
98 });
99 let __inner: extern "C" fn(AkChannelEmitterArray, ::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 = "`Reset()` overload"]
106 fn reset(self) -> () {
107 unsafe {
108 let __receiver = <AkChannelEmitterArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109 ::unity::il2cpp_call!((::unity::module_base()+0x2f11360usize)as*mut u8,();
110(AkChannelEmitterArray)__receiver)
111 }
112 }
113 #[doc = "`Add(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, u32)` overload"]
114 fn add(
115 self,
116 in_pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
117 in_forward: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
118 in_top: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
119 in_channel_mask: impl ::core::convert::Into<u32>,
120 ) -> () {
121 unsafe {
122 let __receiver = <AkChannelEmitterArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123 ::unity::il2cpp_call!((::unity::module_base()+0x2f11370usize)as*mut u8,();
124(AkChannelEmitterArray)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(in_pos),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(in_forward),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(in_top),(u32)::core::convert::Into::into(in_channel_mask))
125 }
126 }
127}
128
129#[cfg(feature = "root-akchannelemitterarray")]
130impl<__T: IAkChannelEmitterArray> IAkChannelEmitterArrayMethods for __T {}
131
132#[cfg(feature = "root-akchannelemitterarray")]
133impl AkChannelEmitterArray {
134 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
136 }
137
138 pub fn get_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
140 }
141
142 pub fn set_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
144 }
145
146 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
148 }
149
150 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
152 }
153
154 pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
156 }
157
158 pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
160 }
161}
162
163#[cfg(feature = "root-akchannelemitterarray")]
164impl AkChannelEmitterArray {
165 #[doc = "Direct (non-virtual) call to `AkChannelEmitterArray`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
166 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
167 let __mi = Self::dispose_method_info();
168 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
169 __inner(this.into(), ::core::option::Option::None)
170 }
171
172 #[doc = "Direct (non-virtual) call to `AkChannelEmitterArray`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
173 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
174 let __mi = Self::finalize_method_info();
175 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
176 __inner(this.into(), ::core::option::Option::None)
177 }
178}
179
180#[cfg(feature = "root-akchannelemitterarray")]
181impl AkChannelEmitterArray {
182 #[doc = "`.ctor(u32)` — overload selector"]
183 pub fn new(in_count: u32) -> Self {
184 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
185 panic!(
186 "{}
187::{}
188 failed to instantiate",
189 ::core::stringify!(AkChannelEmitterArray),
190 ::core::stringify!(new),
191 )
192 });
193 <Self as IAkChannelEmitterArrayMethods>::ctor(this, in_count);
194 this
195 }
196}
197
198#[cfg(feature = "root-akchannelemitterarray")]
199#[doc(hidden)]
200pub mod prelude {
201 pub use super::{AkChannelEmitterArray, IAkChannelEmitterArray, IAkChannelEmitterArrayMethods};
202 pub use crate::system::object::IObject;
203 #[cfg(feature = "system-object")]
204 pub use crate::system::object::IObjectMethods;
205}