Skip to main content

engage/generated/root/
akenvironment.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akenvironment-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            behaviour::{Behaviour, IBehaviour},
12            component::{Component, IComponent},
13            monobehaviour::{IMonoBehaviour, MonoBehaviour},
14            object_2::{IObject_2, Object_2},
15        },
16    };
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akenvironment/AkEnvironment_AkEnvironment_CompareBySelectionAlgorithm.md"))]
19    #[::unity::class(namespace = "", name = "AkEnvironment.AkEnvironment_CompareBySelectionAlgorithm")]
20    #[parent(crate::root::akenvironment::AkEnvironment_AkEnvironment_CompareByPriority)]
21    pub struct AkEnvironment_AkEnvironment_CompareBySelectionAlgorithm {}
22
23    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akenvironment/AkEnvironment.md"))]
24    #[::unity::class(namespace = "", name = "AkEnvironment")]
25    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
26    pub struct AkEnvironment {
27        #[static_field]
28        #[rename(name = "MAX_NB_ENVIRONMENTS")]
29        pub max_nb_environments: i32,
30        #[static_field]
31        #[rename(name = "s_compareByPriority")]
32        pub s_compare_by_priority: crate::root::akenvironment::AkEnvironment_AkEnvironment_CompareByPriority,
33        #[static_field]
34        #[rename(name = "s_compareBySelectionAlgorithm")]
35        pub s_compare_by_selection_algorithm: crate::root::akenvironment::AkEnvironment_AkEnvironment_CompareBySelectionAlgorithm,
36        #[offset(24)]
37        #[rename(name = "excludeOthers")]
38        pub exclude_others: bool,
39        #[offset(25)]
40        #[rename(name = "isDefault")]
41        pub is_default: bool,
42        #[offset(48)]
43        #[rename(name = "priority")]
44        pub priority: i32,
45        #[offset(52)]
46        #[rename(name = "auxBusIdInternal")]
47        pub aux_bus_id_internal: i32,
48        #[offset(56)]
49        #[rename(name = "valueGuidInternal")]
50        pub value_guid_internal: ::unity::Array<u8>,
51    }
52
53    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akenvironment/AkEnvironment_AkEnvironment_CompareByPriority.md"))]
54    #[::unity::class(namespace = "", name = "AkEnvironment.AkEnvironment_CompareByPriority")]
55    #[parent(crate::system::object::Object)]
56    pub struct AkEnvironment_AkEnvironment_CompareByPriority {}
57}
58
59#[cfg(feature = "root-akenvironment-types")]
60pub use __types::*;
61
62#[cfg(feature = "root-akenvironment")]
63pub trait IAkEnvironment_AkEnvironment_CompareBySelectionAlgorithmMethods: IAkEnvironment_AkEnvironment_CompareBySelectionAlgorithm {
64    #[doc = "`Compare(crate::root::akenvironment::AkEnvironment, crate::root::akenvironment::AkEnvironment)` overload"]
65    fn compare(
66        self,
67        a: impl ::core::convert::Into<crate::root::akenvironment::AkEnvironment>,
68        b: impl ::core::convert::Into<crate::root::akenvironment::AkEnvironment>,
69    ) -> i32 {
70        unsafe {
71            let __receiver = <AkEnvironment_AkEnvironment_CompareBySelectionAlgorithm as ::unity::FromIlInstance>::from_il_instance(
72                <Self as ::unity::SystemObject>::as_instance(self),
73            );
74            {
75                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
76                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
77                    panic!(
78                        "unity: virtual slot {}
79 out of range (vtable len {}
80) on the runtime class behind {}
81 (method `{}
82`)",
83                        5usize,
84                        __vt.len(),
85                        <AkEnvironment_AkEnvironment_CompareBySelectionAlgorithm as ::unity::ClassIdentity>::NAME,
86                        "Compare",
87                    )
88                });
89                let __inner: extern "C" fn(
90                    AkEnvironment_AkEnvironment_CompareBySelectionAlgorithm,
91                    crate::root::akenvironment::AkEnvironment,
92                    crate::root::akenvironment::AkEnvironment,
93                    ::unity::OptionalMethod,
94                ) -> i32 = ::core::mem::transmute(__vi.method_ptr);
95                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
96                __inner(__receiver, ::core::convert::Into::into(a), ::core::convert::Into::into(b), __mi)
97            }
98        }
99    }
100    #[doc = "`.ctor()` overload"]
101    fn ctor(self) -> () {
102        unsafe {
103            let __receiver = <AkEnvironment_AkEnvironment_CompareBySelectionAlgorithm as ::unity::FromIlInstance>::from_il_instance(
104                <Self as ::unity::SystemObject>::as_instance(self),
105            );
106            ::unity::il2cpp_call!((::unity::module_base()+0x1b9e710usize)as*mut u8,();
107(AkEnvironment_AkEnvironment_CompareBySelectionAlgorithm)__receiver)
108        }
109    }
110}
111
112#[cfg(feature = "root-akenvironment")]
113impl<__T: IAkEnvironment_AkEnvironment_CompareBySelectionAlgorithm> IAkEnvironment_AkEnvironment_CompareBySelectionAlgorithmMethods for __T {}
114
115#[cfg(feature = "root-akenvironment")]
116impl AkEnvironment_AkEnvironment_CompareBySelectionAlgorithm {
117    pub fn compare_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
119    }
120
121    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
123    }
124}
125
126#[cfg(feature = "root-akenvironment")]
127impl AkEnvironment_AkEnvironment_CompareBySelectionAlgorithm {
128    #[doc = "Direct (non-virtual) call to `AkEnvironment_AkEnvironment_CompareBySelectionAlgorithm`'s own `Compare`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
129    pub unsafe fn compare(
130        this: impl ::core::convert::Into<::unity::IlInstance>,
131        a: crate::root::akenvironment::AkEnvironment,
132        b: crate::root::akenvironment::AkEnvironment,
133    ) -> i32 {
134        let __mi = Self::compare_method_info();
135        let __inner: extern "C" fn(
136            ::unity::IlInstance,
137            crate::root::akenvironment::AkEnvironment,
138            crate::root::akenvironment::AkEnvironment,
139            ::unity::OptionalMethod,
140        ) -> i32 = ::core::mem::transmute(__mi.method_ptr);
141        __inner(this.into(), a, b, ::core::option::Option::None)
142    }
143}
144
145#[cfg(feature = "root-akenvironment")]
146impl AkEnvironment_AkEnvironment_CompareBySelectionAlgorithm {
147    #[doc = "`.ctor()` — no args"]
148    pub fn new() -> Self {
149        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
150            panic!(
151                "{}
152::{}
153 failed to instantiate",
154                ::core::stringify!(AkEnvironment_AkEnvironment_CompareBySelectionAlgorithm),
155                ::core::stringify!(new),
156            )
157        });
158        <Self as IAkEnvironment_AkEnvironment_CompareBySelectionAlgorithmMethods>::ctor(this);
159        this
160    }
161}
162
163#[cfg(feature = "root-akenvironment")]
164impl AkEnvironment {
165    #[doc = "`.cctor()` overload"]
166    pub fn cctor() -> () {
167        unsafe {
168            ::unity::il2cpp_call!((::unity::module_base()+0x2f1a160usize)as*mut u8,();
169            )
170        }
171    }
172}
173
174#[cfg(feature = "root-akenvironment")]
175pub trait IAkEnvironmentMethods: IAkEnvironment {
176    #[doc = "`get_Collider()` overload"]
177    fn get_collider(self) -> crate::unity_engine::collider::Collider {
178        unsafe {
179            let __receiver = <AkEnvironment as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180            ::unity::il2cpp_call!((::unity::module_base()+0x2f19f50usize)as*mut u8,crate::unity_engine::collider::Collider;
181(AkEnvironment)__receiver)
182        }
183    }
184    #[doc = "`set_Collider(crate::unity_engine::collider::Collider)` overload"]
185    fn set_collider(self, value: impl ::core::convert::Into<crate::unity_engine::collider::Collider>) -> () {
186        unsafe {
187            let __receiver = <AkEnvironment as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
188            ::unity::il2cpp_call!((::unity::module_base()+0x2f19f60usize)as*mut u8,();
189(AkEnvironment)__receiver,(crate::unity_engine::collider::Collider)::core::convert::Into::into(value))
190        }
191    }
192    #[doc = "`Awake()` overload"]
193    fn awake(self) -> () {
194        unsafe {
195            let __receiver = <AkEnvironment as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
196            ::unity::il2cpp_call!((::unity::module_base()+0x2f19f70usize)as*mut u8,();
197(AkEnvironment)__receiver)
198        }
199    }
200    #[doc = "`get_m_auxBusID()` overload"]
201    fn get_m_aux_bus_id(self) -> i32 {
202        unsafe {
203            let __receiver = <AkEnvironment as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
204            ::unity::il2cpp_call!((::unity::module_base()+0x2f19fe0usize)as*mut u8,i32;
205(AkEnvironment)__receiver)
206        }
207    }
208    #[doc = "`get_valueGuid()` overload"]
209    fn get_value_guid(self) -> ::unity::Array<u8> {
210        unsafe {
211            let __receiver = <AkEnvironment as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
212            ::unity::il2cpp_call!((::unity::module_base()+0x2f1a000usize)as*mut u8, ::unity::Array<u8> ;
213(AkEnvironment)__receiver)
214        }
215    }
216    #[doc = "`GetAuxBusID()` overload"]
217    fn get_aux_bus_id(self) -> u32 {
218        unsafe {
219            let __receiver = <AkEnvironment as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
220            ::unity::il2cpp_call!((::unity::module_base()+0x2f1a0c0usize)as*mut u8,u32;
221(AkEnvironment)__receiver)
222        }
223    }
224    #[doc = "`.ctor()` overload"]
225    fn ctor(self) -> () {
226        unsafe {
227            let __receiver = <AkEnvironment as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
228            ::unity::il2cpp_call!((::unity::module_base()+0x2f1a0e0usize)as*mut u8,();
229(AkEnvironment)__receiver)
230        }
231    }
232}
233
234#[cfg(feature = "root-akenvironment")]
235impl<__T: IAkEnvironment> IAkEnvironmentMethods for __T {}
236
237#[cfg(feature = "root-akenvironment")]
238impl AkEnvironment {
239    pub fn get_collider_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
241    }
242
243    pub fn set_collider_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
245    }
246
247    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
249    }
250
251    pub fn get_m_aux_bus_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
253    }
254
255    pub fn get_value_guid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
257    }
258
259    pub fn get_aux_bus_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
261    }
262
263    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
265    }
266
267    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
269    }
270}
271
272#[cfg(feature = "root-akenvironment")]
273impl AkEnvironment {
274    #[doc = "`.ctor()` — no args"]
275    pub fn new() -> Self {
276        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
277            panic!(
278                "{}
279::{}
280 failed to instantiate",
281                ::core::stringify!(AkEnvironment),
282                ::core::stringify!(new),
283            )
284        });
285        <Self as IAkEnvironmentMethods>::ctor(this);
286        this
287    }
288}
289
290#[cfg(feature = "root-akenvironment")]
291pub trait IAkEnvironment_AkEnvironment_CompareByPriorityMethods: IAkEnvironment_AkEnvironment_CompareByPriority {
292    #[doc = "`Compare(crate::root::akenvironment::AkEnvironment, crate::root::akenvironment::AkEnvironment)` overload"]
293    fn compare(
294        self,
295        a: impl ::core::convert::Into<crate::root::akenvironment::AkEnvironment>,
296        b: impl ::core::convert::Into<crate::root::akenvironment::AkEnvironment>,
297    ) -> i32 {
298        unsafe {
299            let __receiver = <AkEnvironment_AkEnvironment_CompareByPriority as ::unity::FromIlInstance>::from_il_instance(
300                <Self as ::unity::SystemObject>::as_instance(self),
301            );
302            {
303                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
304                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
305                    panic!(
306                        "unity: virtual slot {}
307 out of range (vtable len {}
308) on the runtime class behind {}
309 (method `{}
310`)",
311                        5usize,
312                        __vt.len(),
313                        <AkEnvironment_AkEnvironment_CompareByPriority as ::unity::ClassIdentity>::NAME,
314                        "Compare",
315                    )
316                });
317                let __inner: extern "C" fn(
318                    AkEnvironment_AkEnvironment_CompareByPriority,
319                    crate::root::akenvironment::AkEnvironment,
320                    crate::root::akenvironment::AkEnvironment,
321                    ::unity::OptionalMethod,
322                ) -> i32 = ::core::mem::transmute(__vi.method_ptr);
323                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
324                __inner(__receiver, ::core::convert::Into::into(a), ::core::convert::Into::into(b), __mi)
325            }
326        }
327    }
328    #[doc = "`.ctor()` overload"]
329    fn ctor(self) -> () {
330        unsafe {
331            let __receiver = <AkEnvironment_AkEnvironment_CompareByPriority as ::unity::FromIlInstance>::from_il_instance(
332                <Self as ::unity::SystemObject>::as_instance(self),
333            );
334            ::unity::il2cpp_call!((::unity::module_base()+0x1b9e600usize)as*mut u8,();
335(AkEnvironment_AkEnvironment_CompareByPriority)__receiver)
336        }
337    }
338}
339
340#[cfg(feature = "root-akenvironment")]
341impl<__T: IAkEnvironment_AkEnvironment_CompareByPriority> IAkEnvironment_AkEnvironment_CompareByPriorityMethods for __T {}
342
343#[cfg(feature = "root-akenvironment")]
344impl AkEnvironment_AkEnvironment_CompareByPriority {
345    pub fn compare_method_info() -> &'static ::unity::il2cpp::MethodInfo {
346        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
347    }
348
349    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
350        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
351    }
352}
353
354#[cfg(feature = "root-akenvironment")]
355impl AkEnvironment_AkEnvironment_CompareByPriority {
356    #[doc = "Direct (non-virtual) call to `AkEnvironment_AkEnvironment_CompareByPriority`'s own `Compare`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
357    pub unsafe fn compare(
358        this: impl ::core::convert::Into<::unity::IlInstance>,
359        a: crate::root::akenvironment::AkEnvironment,
360        b: crate::root::akenvironment::AkEnvironment,
361    ) -> i32 {
362        let __mi = Self::compare_method_info();
363        let __inner: extern "C" fn(
364            ::unity::IlInstance,
365            crate::root::akenvironment::AkEnvironment,
366            crate::root::akenvironment::AkEnvironment,
367            ::unity::OptionalMethod,
368        ) -> i32 = ::core::mem::transmute(__mi.method_ptr);
369        __inner(this.into(), a, b, ::core::option::Option::None)
370    }
371}
372
373#[cfg(feature = "root-akenvironment")]
374impl AkEnvironment_AkEnvironment_CompareByPriority {
375    #[doc = "`.ctor()` — no args"]
376    pub fn new() -> Self {
377        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
378            panic!(
379                "{}
380::{}
381 failed to instantiate",
382                ::core::stringify!(AkEnvironment_AkEnvironment_CompareByPriority),
383                ::core::stringify!(new),
384            )
385        });
386        <Self as IAkEnvironment_AkEnvironment_CompareByPriorityMethods>::ctor(this);
387        this
388    }
389}
390
391#[cfg(feature = "root-akenvironment")]
392#[doc(hidden)]
393pub mod prelude {
394    pub use super::{
395        AkEnvironment, AkEnvironment_AkEnvironment_CompareByPriority, AkEnvironment_AkEnvironment_CompareBySelectionAlgorithm, IAkEnvironment,
396        IAkEnvironmentMethods, IAkEnvironment_AkEnvironment_CompareByPriority, IAkEnvironment_AkEnvironment_CompareByPriorityMethods,
397        IAkEnvironment_AkEnvironment_CompareBySelectionAlgorithm, IAkEnvironment_AkEnvironment_CompareBySelectionAlgorithmMethods,
398    };
399    #[cfg(feature = "system-object")]
400    pub use crate::system::object::IObjectMethods;
401    #[cfg(feature = "unity_engine-behaviour")]
402    pub use crate::unity_engine::behaviour::IBehaviourMethods;
403    #[cfg(feature = "unity_engine-component")]
404    pub use crate::unity_engine::component::IComponentMethods;
405    #[cfg(feature = "unity_engine-monobehaviour")]
406    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
407    #[cfg(feature = "unity_engine-object_2")]
408    pub use crate::unity_engine::object_2::IObject_2Methods;
409    pub use crate::{
410        system::object::IObject,
411        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
412    };
413}