engage/generated/root/
akramp.rs1#[cfg(feature = "root-akramp-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/akramp/AkRamp.md"))]
11 #[::unity::class(namespace = "", name = "AkRamp")]
12 #[parent(crate::system::object::Object)]
13 pub struct AkRamp {
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-akramp-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akramp")]
27impl AkRamp {
28 #[doc = "`getCPtr(crate::root::akramp::AkRamp)` overload"]
29 pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akramp::AkRamp>) -> ::unity::IntPtr {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x2f303f0usize)as*mut u8, ::unity::IntPtr;
32(crate::root::akramp::AkRamp)::core::convert::Into::into(obj))
33 }
34 }
35}
36
37#[cfg(feature = "root-akramp")]
38pub trait IAkRampMethods: IAkRamp {
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 = <AkRamp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 ::unity::il2cpp_call!((::unity::module_base()+0x2f303b0usize)as*mut u8,();
44(AkRamp)__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 = <AkRamp 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 <AkRamp as ::unity::ClassIdentity>::NAME,
63 "setCPtr",
64 )
65 });
66 let __inner: extern "C" fn(AkRamp, ::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 = <AkRamp 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 <AkRamp as ::unity::ClassIdentity>::NAME,
88 "Finalize",
89 )
90 });
91 let __inner: extern "C" fn(AkRamp, ::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 = <AkRamp 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 <AkRamp as ::unity::ClassIdentity>::NAME,
113 "Dispose",
114 )
115 });
116 let __inner: extern "C" fn(AkRamp, ::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 = "`.ctor()` overload"]
123 fn ctor_2(self) -> () {
124 unsafe {
125 let __receiver = <AkRamp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126 ::unity::il2cpp_call!((::unity::module_base()+0x2f30680usize)as*mut u8,();
127(AkRamp)__receiver)
128 }
129 }
130 #[doc = "`.ctor(f32, f32)` overload"]
131 fn ctor_3(self, in_f_prev: impl ::core::convert::Into<f32>, in_f_next: impl ::core::convert::Into<f32>) -> () {
132 unsafe {
133 let __receiver = <AkRamp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134 ::unity::il2cpp_call!((::unity::module_base()+0x2f30710usize)as*mut u8,();
135(AkRamp)__receiver,(f32)::core::convert::Into::into(in_f_prev),(f32)::core::convert::Into::into(in_f_next))
136 }
137 }
138 #[doc = "`set_fPrev(f32)` overload"]
139 fn set_f_prev(self, value: impl ::core::convert::Into<f32>) -> () {
140 unsafe {
141 let __receiver = <AkRamp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142 ::unity::il2cpp_call!((::unity::module_base()+0x2f307b0usize)as*mut u8,();
143(AkRamp)__receiver,(f32)::core::convert::Into::into(value))
144 }
145 }
146 #[doc = "`get_fPrev()` overload"]
147 fn get_f_prev(self) -> f32 {
148 unsafe {
149 let __receiver = <AkRamp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150 ::unity::il2cpp_call!((::unity::module_base()+0x2f30830usize)as*mut u8,f32;
151(AkRamp)__receiver)
152 }
153 }
154 #[doc = "`set_fNext(f32)` overload"]
155 fn set_f_next(self, value: impl ::core::convert::Into<f32>) -> () {
156 unsafe {
157 let __receiver = <AkRamp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158 ::unity::il2cpp_call!((::unity::module_base()+0x2f308a0usize)as*mut u8,();
159(AkRamp)__receiver,(f32)::core::convert::Into::into(value))
160 }
161 }
162 #[doc = "`get_fNext()` overload"]
163 fn get_f_next(self) -> f32 {
164 unsafe {
165 let __receiver = <AkRamp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166 ::unity::il2cpp_call!((::unity::module_base()+0x2f30920usize)as*mut u8,f32;
167(AkRamp)__receiver)
168 }
169 }
170}
171
172#[cfg(feature = "root-akramp")]
173impl<__T: IAkRamp> IAkRampMethods for __T {}
174
175#[cfg(feature = "root-akramp")]
176impl AkRamp {
177 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
179 }
180
181 pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
183 }
184
185 pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
187 }
188
189 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
191 }
192
193 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
195 }
196
197 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
199 }
200
201 pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
203 }
204
205 pub fn set_f_prev_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
207 }
208
209 pub fn get_f_prev_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
211 }
212
213 pub fn set_f_next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
215 }
216
217 pub fn get_f_next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
218 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
219 }
220}
221
222#[cfg(feature = "root-akramp")]
223impl AkRamp {
224 #[doc = "Direct (non-virtual) call to `AkRamp`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
225 pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
226 let __mi = Self::set_c_ptr_method_info();
227 let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
228 __inner(this.into(), c_ptr, ::core::option::Option::None)
229 }
230
231 #[doc = "Direct (non-virtual) call to `AkRamp`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
232 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
233 let __mi = Self::finalize_method_info();
234 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
235 __inner(this.into(), ::core::option::Option::None)
236 }
237
238 #[doc = "Direct (non-virtual) call to `AkRamp`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
239 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
240 let __mi = Self::dispose_method_info();
241 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
242 __inner(this.into(), ::core::option::Option::None)
243 }
244}
245
246#[cfg(feature = "root-akramp")]
247impl AkRamp {
248 #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
249 pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
250 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
251 panic!(
252 "{}
253::{}
254 failed to instantiate",
255 ::core::stringify!(AkRamp),
256 ::core::stringify!(new),
257 )
258 });
259 <Self as IAkRampMethods>::ctor(this, c_ptr, c_memory_own);
260 this
261 }
262
263 #[doc = "`.ctor()` — no args"]
264 pub fn new_2() -> Self {
265 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
266 panic!(
267 "{}
268::{}
269 failed to instantiate",
270 ::core::stringify!(AkRamp),
271 ::core::stringify!(new_2),
272 )
273 });
274 <Self as IAkRampMethods>::ctor_2(this);
275 this
276 }
277
278 #[doc = "`.ctor(f32, f32)` — overload selector"]
279 pub fn new_3(in_f_prev: f32, in_f_next: f32) -> Self {
280 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
281 panic!(
282 "{}
283::{}
284 failed to instantiate",
285 ::core::stringify!(AkRamp),
286 ::core::stringify!(new_3),
287 )
288 });
289 <Self as IAkRampMethods>::ctor_3(this, in_f_prev, in_f_next);
290 this
291 }
292}
293
294#[cfg(feature = "root-akramp")]
295#[doc(hidden)]
296pub mod prelude {
297 pub use super::{AkRamp, IAkRamp, IAkRampMethods};
298 pub use crate::system::object::IObject;
299 #[cfg(feature = "system-object")]
300 pub use crate::system::object::IObjectMethods;
301}