Skip to main content

engage/generated/root/
wwisestategroupreference.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-wwisestategroupreference-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/wwisestategroupreference/WwiseStateGroupReference.md"))]
18    #[::unity::class(namespace = "", name = "WwiseStateGroupReference")]
19    #[parent(crate::root::wwiseobjectreference::WwiseObjectReference)]
20    pub struct WwiseStateGroupReference {}
21}
22
23#[cfg(feature = "root-wwisestategroupreference-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-wwisestategroupreference")]
27pub trait IWwiseStateGroupReferenceMethods: IWwiseStateGroupReference {
28    #[doc = "`get_WwiseObjectType()` overload"]
29    fn get_wwise_object_type(self) -> crate::root::wwiseobjecttype::WwiseObjectType {
30        unsafe {
31            let __receiver =
32                <WwiseStateGroupReference 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(5usize).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                        5usize,
43                        __vt.len(),
44                        <WwiseStateGroupReference as ::unity::ClassIdentity>::NAME,
45                        "get_WwiseObjectType",
46                    )
47                });
48                let __inner: extern "C" fn(WwiseStateGroupReference, ::unity::OptionalMethod) -> crate::root::wwiseobjecttype::WwiseObjectType =
49                    ::core::mem::transmute(__vi.method_ptr);
50                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
51                __inner(__receiver, __mi)
52            }
53        }
54    }
55    #[doc = "`.ctor()` overload"]
56    fn ctor(self) -> () {
57        unsafe {
58            let __receiver =
59                <WwiseStateGroupReference as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60            ::unity::il2cpp_call!((::unity::module_base()+0x293ff20usize)as*mut u8,();
61(WwiseStateGroupReference)__receiver)
62        }
63    }
64}
65
66#[cfg(feature = "root-wwisestategroupreference")]
67impl<__T: IWwiseStateGroupReference> IWwiseStateGroupReferenceMethods for __T {}
68
69#[cfg(feature = "root-wwisestategroupreference")]
70impl WwiseStateGroupReference {
71    pub fn get_wwise_object_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
72        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
73    }
74
75    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
76        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
77    }
78}
79
80#[cfg(feature = "root-wwisestategroupreference")]
81impl WwiseStateGroupReference {
82    #[doc = "Direct (non-virtual) call to `WwiseStateGroupReference`'s own `get_WwiseObjectType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
83    pub unsafe fn get_wwise_object_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::root::wwiseobjecttype::WwiseObjectType {
84        let __mi = Self::get_wwise_object_type_method_info();
85        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::root::wwiseobjecttype::WwiseObjectType =
86            ::core::mem::transmute(__mi.method_ptr);
87        __inner(this.into(), ::core::option::Option::None)
88    }
89}
90
91#[cfg(feature = "root-wwisestategroupreference")]
92impl WwiseStateGroupReference {
93    #[doc = "`.ctor()` — no args"]
94    pub fn new() -> Self {
95        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
96            panic!(
97                "{}
98::{}
99 failed to instantiate",
100                ::core::stringify!(WwiseStateGroupReference),
101                ::core::stringify!(new),
102            )
103        });
104        <Self as IWwiseStateGroupReferenceMethods>::ctor(this);
105        this
106    }
107}
108
109#[cfg(feature = "root-wwisestategroupreference")]
110#[doc(hidden)]
111pub mod prelude {
112    pub use super::{IWwiseStateGroupReference, IWwiseStateGroupReferenceMethods, WwiseStateGroupReference};
113    #[cfg(feature = "root-wwiseobjectreference")]
114    pub use crate::root::wwiseobjectreference::IWwiseObjectReferenceMethods;
115    #[cfg(feature = "system-object")]
116    pub use crate::system::object::IObjectMethods;
117    #[cfg(feature = "unity_engine-object_2")]
118    pub use crate::unity_engine::object_2::IObject_2Methods;
119    #[cfg(feature = "unity_engine-scriptableobject")]
120    pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
121    pub use crate::{
122        root::wwiseobjectreference::IWwiseObjectReference,
123        system::object::IObject,
124        unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject},
125    };
126}