Skip to main content

engage/generated/root/
wwiseswitchreference.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-wwiseswitchreference-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        root::{
10            wwisegroupvalueobjectreference::{IWwiseGroupValueObjectReference, WwiseGroupValueObjectReference},
11            wwiseobjectreference::{IWwiseObjectReference, WwiseObjectReference},
12        },
13        system::object::{IObject, Object},
14        unity_engine::{
15            object_2::{IObject_2, Object_2},
16            scriptableobject::{IScriptableObject, ScriptableObject},
17        },
18    };
19
20    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/wwiseswitchreference/WwiseSwitchReference.md"))]
21    #[::unity::class(namespace = "", name = "WwiseSwitchReference")]
22    #[parent(crate::root::wwisegroupvalueobjectreference::WwiseGroupValueObjectReference)]
23    pub struct WwiseSwitchReference {
24        #[offset(48)]
25        #[rename(name = "WwiseSwitchGroupReference")]
26        pub wwise_switch_group_reference: crate::root::wwiseswitchgroupreference::WwiseSwitchGroupReference,
27    }
28}
29
30#[cfg(feature = "root-wwiseswitchreference-types")]
31pub use __types::*;
32
33#[cfg(feature = "root-wwiseswitchreference")]
34pub trait IWwiseSwitchReferenceMethods: IWwiseSwitchReference {
35    #[doc = "`get_WwiseObjectType()` overload"]
36    fn get_wwise_object_type(self) -> crate::root::wwiseobjecttype::WwiseObjectType {
37        unsafe {
38            let __receiver = <WwiseSwitchReference as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39            {
40                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
41                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
42                    panic!(
43                        "unity: virtual slot {}
44 out of range (vtable len {}
45) on the runtime class behind {}
46 (method `{}
47`)",
48                        5usize,
49                        __vt.len(),
50                        <WwiseSwitchReference as ::unity::ClassIdentity>::NAME,
51                        "get_WwiseObjectType",
52                    )
53                });
54                let __inner: extern "C" fn(WwiseSwitchReference, ::unity::OptionalMethod) -> crate::root::wwiseobjecttype::WwiseObjectType =
55                    ::core::mem::transmute(__vi.method_ptr);
56                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
57                __inner(__receiver, __mi)
58            }
59        }
60    }
61    #[doc = "`get_GroupObjectReference()` overload"]
62    fn get_group_object_reference(self) -> crate::root::wwiseobjectreference::WwiseObjectReference {
63        unsafe {
64            let __receiver = <WwiseSwitchReference as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65            {
66                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
67                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
68                    panic!(
69                        "unity: virtual slot {}
70 out of range (vtable len {}
71) on the runtime class behind {}
72 (method `{}
73`)",
74                        6usize,
75                        __vt.len(),
76                        <WwiseSwitchReference as ::unity::ClassIdentity>::NAME,
77                        "get_GroupObjectReference",
78                    )
79                });
80                let __inner: extern "C" fn(WwiseSwitchReference, ::unity::OptionalMethod) -> crate::root::wwiseobjectreference::WwiseObjectReference =
81                    ::core::mem::transmute(__vi.method_ptr);
82                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
83                __inner(__receiver, __mi)
84            }
85        }
86    }
87    #[doc = "`set_GroupObjectReference(crate::root::wwiseobjectreference::WwiseObjectReference)` overload"]
88    fn set_group_object_reference(self, value: impl ::core::convert::Into<crate::root::wwiseobjectreference::WwiseObjectReference>) -> () {
89        unsafe {
90            let __receiver = <WwiseSwitchReference as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91            {
92                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
93                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
94                    panic!(
95                        "unity: virtual slot {}
96 out of range (vtable len {}
97) on the runtime class behind {}
98 (method `{}
99`)",
100                        7usize,
101                        __vt.len(),
102                        <WwiseSwitchReference as ::unity::ClassIdentity>::NAME,
103                        "set_GroupObjectReference",
104                    )
105                });
106                let __inner: extern "C" fn(
107                    WwiseSwitchReference,
108                    crate::root::wwiseobjectreference::WwiseObjectReference,
109                    ::unity::OptionalMethod,
110                ) -> () = ::core::mem::transmute(__vi.method_ptr);
111                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
112                __inner(__receiver, ::core::convert::Into::into(value), __mi)
113            }
114        }
115    }
116    #[doc = "`get_GroupWwiseObjectType()` overload"]
117    fn get_group_wwise_object_type(self) -> crate::root::wwiseobjecttype::WwiseObjectType {
118        unsafe {
119            let __receiver = <WwiseSwitchReference as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120            {
121                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
122                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
123                    panic!(
124                        "unity: virtual slot {}
125 out of range (vtable len {}
126) on the runtime class behind {}
127 (method `{}
128`)",
129                        8usize,
130                        __vt.len(),
131                        <WwiseSwitchReference as ::unity::ClassIdentity>::NAME,
132                        "get_GroupWwiseObjectType",
133                    )
134                });
135                let __inner: extern "C" fn(WwiseSwitchReference, ::unity::OptionalMethod) -> crate::root::wwiseobjecttype::WwiseObjectType =
136                    ::core::mem::transmute(__vi.method_ptr);
137                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
138                __inner(__receiver, __mi)
139            }
140        }
141    }
142    #[doc = "`.ctor()` overload"]
143    fn ctor(self) -> () {
144        unsafe {
145            let __receiver = <WwiseSwitchReference as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
146            ::unity::il2cpp_call!((::unity::module_base()+0x2940260usize)as*mut u8,();
147(WwiseSwitchReference)__receiver)
148        }
149    }
150}
151
152#[cfg(feature = "root-wwiseswitchreference")]
153impl<__T: IWwiseSwitchReference> IWwiseSwitchReferenceMethods for __T {}
154
155#[cfg(feature = "root-wwiseswitchreference")]
156impl WwiseSwitchReference {
157    pub fn get_wwise_object_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
159    }
160
161    pub fn get_group_object_reference_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
163    }
164
165    pub fn set_group_object_reference_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
167    }
168
169    pub fn get_group_wwise_object_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
171    }
172
173    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
175    }
176}
177
178#[cfg(feature = "root-wwiseswitchreference")]
179impl WwiseSwitchReference {
180    #[doc = "Direct (non-virtual) call to `WwiseSwitchReference`'s own `get_WwiseObjectType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
181    pub unsafe fn get_wwise_object_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::root::wwiseobjecttype::WwiseObjectType {
182        let __mi = Self::get_wwise_object_type_method_info();
183        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::root::wwiseobjecttype::WwiseObjectType =
184            ::core::mem::transmute(__mi.method_ptr);
185        __inner(this.into(), ::core::option::Option::None)
186    }
187
188    #[doc = "Direct (non-virtual) call to `WwiseSwitchReference`'s own `get_GroupObjectReference`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
189    pub unsafe fn get_group_object_reference(
190        this: impl ::core::convert::Into<::unity::IlInstance>,
191    ) -> crate::root::wwiseobjectreference::WwiseObjectReference {
192        let __mi = Self::get_group_object_reference_method_info();
193        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::root::wwiseobjectreference::WwiseObjectReference =
194            ::core::mem::transmute(__mi.method_ptr);
195        __inner(this.into(), ::core::option::Option::None)
196    }
197
198    #[doc = "Direct (non-virtual) call to `WwiseSwitchReference`'s own `set_GroupObjectReference`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
199    pub unsafe fn set_group_object_reference(
200        this: impl ::core::convert::Into<::unity::IlInstance>,
201        value: crate::root::wwiseobjectreference::WwiseObjectReference,
202    ) -> () {
203        let __mi = Self::set_group_object_reference_method_info();
204        let __inner: extern "C" fn(::unity::IlInstance, crate::root::wwiseobjectreference::WwiseObjectReference, ::unity::OptionalMethod) -> () =
205            ::core::mem::transmute(__mi.method_ptr);
206        __inner(this.into(), value, ::core::option::Option::None)
207    }
208
209    #[doc = "Direct (non-virtual) call to `WwiseSwitchReference`'s own `get_GroupWwiseObjectType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
210    pub unsafe fn get_group_wwise_object_type(
211        this: impl ::core::convert::Into<::unity::IlInstance>,
212    ) -> crate::root::wwiseobjecttype::WwiseObjectType {
213        let __mi = Self::get_group_wwise_object_type_method_info();
214        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::root::wwiseobjecttype::WwiseObjectType =
215            ::core::mem::transmute(__mi.method_ptr);
216        __inner(this.into(), ::core::option::Option::None)
217    }
218}
219
220#[cfg(feature = "root-wwiseswitchreference")]
221impl WwiseSwitchReference {
222    #[doc = "`.ctor()` — no args"]
223    pub fn new() -> Self {
224        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
225            panic!(
226                "{}
227::{}
228 failed to instantiate",
229                ::core::stringify!(WwiseSwitchReference),
230                ::core::stringify!(new),
231            )
232        });
233        <Self as IWwiseSwitchReferenceMethods>::ctor(this);
234        this
235    }
236}
237
238#[cfg(feature = "root-wwiseswitchreference")]
239#[doc(hidden)]
240pub mod prelude {
241    pub use super::{IWwiseSwitchReference, IWwiseSwitchReferenceMethods, WwiseSwitchReference};
242    #[cfg(feature = "root-wwisegroupvalueobjectreference")]
243    pub use crate::root::wwisegroupvalueobjectreference::IWwiseGroupValueObjectReferenceMethods;
244    #[cfg(feature = "root-wwiseobjectreference")]
245    pub use crate::root::wwiseobjectreference::IWwiseObjectReferenceMethods;
246    #[cfg(feature = "system-object")]
247    pub use crate::system::object::IObjectMethods;
248    #[cfg(feature = "unity_engine-object_2")]
249    pub use crate::unity_engine::object_2::IObject_2Methods;
250    #[cfg(feature = "unity_engine-scriptableobject")]
251    pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
252    pub use crate::{
253        root::{wwisegroupvalueobjectreference::IWwiseGroupValueObjectReference, wwiseobjectreference::IWwiseObjectReference},
254        system::object::IObject,
255        unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject},
256    };
257}