Skip to main content

engage/generated/root/
wwisegroupvalueobjectreference.rs

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