Skip to main content

engage/generated/root/
akbank.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akbank-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        root::aktriggerhandler::{AkTriggerHandler, IAkTriggerHandler},
10        system::object::{IObject, Object},
11        unity_engine::{
12            behaviour::{Behaviour, IBehaviour},
13            component::{Component, IComponent},
14            monobehaviour::{IMonoBehaviour, MonoBehaviour},
15            object_2::{IObject_2, Object_2},
16        },
17    };
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akbank/AkBank.md"))]
20    #[::unity::class(namespace = "", name = "AkBank")]
21    #[parent(crate::root::aktriggerhandler::AkTriggerHandler)]
22    pub struct AkBank {
23        #[offset(56)]
24        #[rename(name = "decodeBank")]
25        pub decode_bank: bool,
26        #[offset(57)]
27        #[rename(name = "loadAsynchronous")]
28        pub load_asynchronous: bool,
29        #[offset(58)]
30        #[rename(name = "saveDecodedBank")]
31        pub save_decoded_bank: bool,
32        #[offset(64)]
33        #[rename(name = "unloadTriggerList")]
34        pub unload_trigger_list: crate::system::collections::generic::list_1::List_1<i32>,
35        #[offset(72)]
36        #[rename(name = "bankNameInternal")]
37        pub bank_name_internal: ::unity::Il2CppString,
38        #[offset(80)]
39        #[rename(name = "valueGuidInternal")]
40        pub value_guid_internal: ::unity::Array<u8>,
41    }
42}
43
44#[cfg(feature = "root-akbank-types")]
45pub use __types::*;
46
47#[cfg(feature = "root-akbank")]
48pub trait IAkBankMethods: IAkBank {
49    #[doc = "`Awake()` overload"]
50    fn awake(self) -> () {
51        unsafe {
52            let __receiver = <AkBank as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53            {
54                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
55                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
56                    panic!(
57                        "unity: virtual slot {}
58 out of range (vtable len {}
59) on the runtime class behind {}
60 (method `{}
61`)",
62                        5usize,
63                        __vt.len(),
64                        <AkBank as ::unity::ClassIdentity>::NAME,
65                        "Awake",
66                    )
67                });
68                let __inner: extern "C" fn(AkBank, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
69                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
70                __inner(__receiver, __mi)
71            }
72        }
73    }
74    #[doc = "`Start()` overload"]
75    fn start(self) -> () {
76        unsafe {
77            let __receiver = <AkBank as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78            {
79                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
80                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
81                    panic!(
82                        "unity: virtual slot {}
83 out of range (vtable len {}
84) on the runtime class behind {}
85 (method `{}
86`)",
87                        6usize,
88                        __vt.len(),
89                        <AkBank as ::unity::ClassIdentity>::NAME,
90                        "Start",
91                    )
92                });
93                let __inner: extern "C" fn(AkBank, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
94                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
95                __inner(__receiver, __mi)
96            }
97        }
98    }
99    #[doc = "`HandleEvent(crate::unity_engine::gameobject::GameObject)` overload"]
100    fn handle_event(self, in_game_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
101        unsafe {
102            let __receiver = <AkBank as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103            {
104                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
105                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
106                    panic!(
107                        "unity: virtual slot {}
108 out of range (vtable len {}
109) on the runtime class behind {}
110 (method `{}
111`)",
112                        4usize,
113                        __vt.len(),
114                        <AkBank as ::unity::ClassIdentity>::NAME,
115                        "HandleEvent",
116                    )
117                });
118                let __inner: extern "C" fn(AkBank, crate::unity_engine::gameobject::GameObject, ::unity::OptionalMethod) -> () =
119                    ::core::mem::transmute(__vi.method_ptr);
120                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
121                __inner(__receiver, ::core::convert::Into::into(in_game_object), __mi)
122            }
123        }
124    }
125    #[doc = "`UnloadBank(crate::unity_engine::gameobject::GameObject)` overload"]
126    fn unload_bank(self, in_game_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
127        unsafe {
128            let __receiver = <AkBank as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129            ::unity::il2cpp_call!((::unity::module_base()+0x2bd1c70usize)as*mut u8,();
130(AkBank)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(in_game_object))
131        }
132    }
133    #[doc = "`OnDestroy()` overload"]
134    fn on_destroy(self) -> () {
135        unsafe {
136            let __receiver = <AkBank as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137            {
138                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
139                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
140                    panic!(
141                        "unity: virtual slot {}
142 out of range (vtable len {}
143) on the runtime class behind {}
144 (method `{}
145`)",
146                        7usize,
147                        __vt.len(),
148                        <AkBank as ::unity::ClassIdentity>::NAME,
149                        "OnDestroy",
150                    )
151                });
152                let __inner: extern "C" fn(AkBank, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
153                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
154                __inner(__receiver, __mi)
155            }
156        }
157    }
158    #[doc = "`get_bankName()` overload"]
159    fn get_bank_name(self) -> ::unity::Il2CppString {
160        unsafe {
161            let __receiver = <AkBank as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162            ::unity::il2cpp_call!((::unity::module_base()+0x2bd1d50usize)as*mut u8, ::unity::Il2CppString;
163(AkBank)__receiver)
164        }
165    }
166    #[doc = "`get_valueGuid()` overload"]
167    fn get_value_guid(self) -> ::unity::Array<u8> {
168        unsafe {
169            let __receiver = <AkBank as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170            ::unity::il2cpp_call!((::unity::module_base()+0x2bd1dc0usize)as*mut u8, ::unity::Array<u8> ;
171(AkBank)__receiver)
172        }
173    }
174    #[doc = "`.ctor()` overload"]
175    fn ctor(self) -> () {
176        unsafe {
177            let __receiver = <AkBank as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178            ::unity::il2cpp_call!((::unity::module_base()+0x2bd1e80usize)as*mut u8,();
179(AkBank)__receiver)
180        }
181    }
182}
183
184#[cfg(feature = "root-akbank")]
185impl<__T: IAkBank> IAkBankMethods for __T {}
186
187#[cfg(feature = "root-akbank")]
188impl AkBank {
189    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
191    }
192
193    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
195    }
196
197    pub fn handle_event_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
199    }
200
201    pub fn unload_bank_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
203    }
204
205    pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
207    }
208
209    pub fn get_bank_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
211    }
212
213    pub fn get_value_guid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
215    }
216
217    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
218        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
219    }
220}
221
222#[cfg(feature = "root-akbank")]
223impl AkBank {
224    #[doc = "Direct (non-virtual) call to `AkBank`'s own `Awake`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
225    pub unsafe fn awake(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
226        let __mi = Self::awake_method_info();
227        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
228        __inner(this.into(), ::core::option::Option::None)
229    }
230
231    #[doc = "Direct (non-virtual) call to `AkBank`'s own `Start`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
232    pub unsafe fn start(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
233        let __mi = Self::start_method_info();
234        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
235        __inner(this.into(), ::core::option::Option::None)
236    }
237
238    #[doc = "Direct (non-virtual) call to `AkBank`'s own `HandleEvent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
239    pub unsafe fn handle_event(
240        this: impl ::core::convert::Into<::unity::IlInstance>,
241        in_game_object: crate::unity_engine::gameobject::GameObject,
242    ) -> () {
243        let __mi = Self::handle_event_method_info();
244        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::gameobject::GameObject, ::unity::OptionalMethod) -> () =
245            ::core::mem::transmute(__mi.method_ptr);
246        __inner(this.into(), in_game_object, ::core::option::Option::None)
247    }
248
249    #[doc = "Direct (non-virtual) call to `AkBank`'s own `OnDestroy`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
250    pub unsafe fn on_destroy(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
251        let __mi = Self::on_destroy_method_info();
252        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
253        __inner(this.into(), ::core::option::Option::None)
254    }
255}
256
257#[cfg(feature = "root-akbank")]
258impl AkBank {
259    #[doc = "`.ctor()` — no args"]
260    pub fn new() -> Self {
261        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
262            panic!(
263                "{}
264::{}
265 failed to instantiate",
266                ::core::stringify!(AkBank),
267                ::core::stringify!(new),
268            )
269        });
270        <Self as IAkBankMethods>::ctor(this);
271        this
272    }
273}
274
275#[cfg(feature = "root-akbank")]
276#[doc(hidden)]
277pub mod prelude {
278    pub use super::{AkBank, IAkBank, IAkBankMethods};
279    #[cfg(feature = "root-aktriggerhandler")]
280    pub use crate::root::aktriggerhandler::IAkTriggerHandlerMethods;
281    #[cfg(feature = "system-object")]
282    pub use crate::system::object::IObjectMethods;
283    #[cfg(feature = "unity_engine-behaviour")]
284    pub use crate::unity_engine::behaviour::IBehaviourMethods;
285    #[cfg(feature = "unity_engine-component")]
286    pub use crate::unity_engine::component::IComponentMethods;
287    #[cfg(feature = "unity_engine-monobehaviour")]
288    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
289    #[cfg(feature = "unity_engine-object_2")]
290    pub use crate::unity_engine::object_2::IObject_2Methods;
291    pub use crate::{
292        root::aktriggerhandler::IAkTriggerHandler,
293        system::object::IObject,
294        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
295    };
296}