Skip to main content

engage/generated/root/
akinitializer.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akinitializer-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/akinitializer/AkInitializer.md"))]
19    #[::unity::class(namespace = "", name = "AkInitializer")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct AkInitializer {
22        #[static_field]
23        #[rename(name = "ms_Instance")]
24        pub ms_instance: crate::root::akinitializer::AkInitializer,
25        #[offset(24)]
26        #[rename(name = "InitializationSettings")]
27        pub initialization_settings: crate::root::akwwiseinitializationsettings::AkWwiseInitializationSettings,
28    }
29}
30
31#[cfg(feature = "root-akinitializer-types")]
32pub use __types::*;
33
34#[cfg(feature = "root-akinitializer")]
35pub trait IAkInitializerMethods: IAkInitializer {
36    #[doc = "`Awake()` overload"]
37    fn awake(self) -> () {
38        unsafe {
39            let __receiver = <AkInitializer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40            ::unity::il2cpp_call!((::unity::module_base()+0x2f21cd0usize)as*mut u8,();
41(AkInitializer)__receiver)
42        }
43    }
44    #[doc = "`OnEnable()` overload"]
45    fn on_enable(self) -> () {
46        unsafe {
47            let __receiver = <AkInitializer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            ::unity::il2cpp_call!((::unity::module_base()+0x2f21dc0usize)as*mut u8,();
49(AkInitializer)__receiver)
50        }
51    }
52    #[doc = "`OnDisable()` overload"]
53    fn on_disable(self) -> () {
54        unsafe {
55            let __receiver = <AkInitializer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            ::unity::il2cpp_call!((::unity::module_base()+0x2f21ec0usize)as*mut u8,();
57(AkInitializer)__receiver)
58        }
59    }
60    #[doc = "`OnDestroy()` overload"]
61    fn on_destroy(self) -> () {
62        unsafe {
63            let __receiver = <AkInitializer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            ::unity::il2cpp_call!((::unity::module_base()+0x2f21f80usize)as*mut u8,();
65(AkInitializer)__receiver)
66        }
67    }
68    #[doc = "`OnApplicationPause(bool)` overload"]
69    fn on_application_pause(self, pause_status: impl ::core::convert::Into<bool>) -> () {
70        unsafe {
71            let __receiver = <AkInitializer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            ::unity::il2cpp_call!((::unity::module_base()+0x2f22040usize)as*mut u8,();
73(AkInitializer)__receiver,(bool)::core::convert::Into::into(pause_status))
74        }
75    }
76    #[doc = "`OnApplicationFocus(bool)` overload"]
77    fn on_application_focus(self, focus: impl ::core::convert::Into<bool>) -> () {
78        unsafe {
79            let __receiver = <AkInitializer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80            ::unity::il2cpp_call!((::unity::module_base()+0x2f22110usize)as*mut u8,();
81(AkInitializer)__receiver,(bool)::core::convert::Into::into(focus))
82        }
83    }
84    #[doc = "`OnApplicationQuit()` overload"]
85    fn on_application_quit(self) -> () {
86        unsafe {
87            let __receiver = <AkInitializer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88            ::unity::il2cpp_call!((::unity::module_base()+0x2f221e0usize)as*mut u8,();
89(AkInitializer)__receiver)
90        }
91    }
92    #[doc = "`LateUpdate()` overload"]
93    fn late_update(self) -> () {
94        unsafe {
95            let __receiver = <AkInitializer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96            ::unity::il2cpp_call!((::unity::module_base()+0x2f222a0usize)as*mut u8,();
97(AkInitializer)__receiver)
98        }
99    }
100    #[doc = "`.ctor()` overload"]
101    fn ctor(self) -> () {
102        unsafe {
103            let __receiver = <AkInitializer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104            ::unity::il2cpp_call!((::unity::module_base()+0x2f22360usize)as*mut u8,();
105(AkInitializer)__receiver)
106        }
107    }
108}
109
110#[cfg(feature = "root-akinitializer")]
111impl<__T: IAkInitializer> IAkInitializerMethods for __T {}
112
113#[cfg(feature = "root-akinitializer")]
114impl AkInitializer {
115    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
117    }
118
119    pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
120        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
121    }
122
123    pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
125    }
126
127    pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
129    }
130
131    pub fn on_application_pause_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
133    }
134
135    pub fn on_application_focus_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
137    }
138
139    pub fn on_application_quit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
141    }
142
143    pub fn late_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
145    }
146
147    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
149    }
150}
151
152#[cfg(feature = "root-akinitializer")]
153impl AkInitializer {
154    #[doc = "`.ctor()` — no args"]
155    pub fn new() -> Self {
156        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
157            panic!(
158                "{}
159::{}
160 failed to instantiate",
161                ::core::stringify!(AkInitializer),
162                ::core::stringify!(new),
163            )
164        });
165        <Self as IAkInitializerMethods>::ctor(this);
166        this
167    }
168}
169
170#[cfg(feature = "root-akinitializer")]
171#[doc(hidden)]
172pub mod prelude {
173    pub use super::{AkInitializer, IAkInitializer, IAkInitializerMethods};
174    #[cfg(feature = "system-object")]
175    pub use crate::system::object::IObjectMethods;
176    #[cfg(feature = "unity_engine-behaviour")]
177    pub use crate::unity_engine::behaviour::IBehaviourMethods;
178    #[cfg(feature = "unity_engine-component")]
179    pub use crate::unity_engine::component::IComponentMethods;
180    #[cfg(feature = "unity_engine-monobehaviour")]
181    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
182    #[cfg(feature = "unity_engine-object_2")]
183    pub use crate::unity_engine::object_2::IObject_2Methods;
184    pub use crate::{
185        system::object::IObject,
186        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
187    };
188}