Skip to main content

engage/generated/combat/
adhocassetloader.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-adhocassetloader-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::singletonmonobehaviour_1::{ISingletonMonoBehaviour_1, SingletonMonoBehaviour_1},
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/combat/adhocassetloader/AdhocAssetLoader_Asset.md"))]
20    #[::unity::class(namespace = "Combat", name = "AdhocAssetLoader.Asset")]
21    #[parent(crate::system::object::Object)]
22    pub struct AdhocAssetLoader_Asset {
23        #[offset(40)]
24        #[rename(name = "m_FileHandle")]
25        pub m_file_handle: crate::app::tresourcehandle_1::TResourceHandle_1<crate::unity_engine::gameobject::GameObject>,
26    }
27
28    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/adhocassetloader/AdhocAssetLoader.md"))]
29    #[::unity::class(namespace = "Combat", name = "AdhocAssetLoader")]
30    #[parent(crate::app::singletonmonobehaviour_1::SingletonMonoBehaviour_1<crate::combat::adhocassetloader::AdhocAssetLoader>)]
31    pub struct AdhocAssetLoader {
32        #[offset(32)]
33        #[rename(name = "assets")]
34        pub assets: crate::system::collections::generic::list_1::List_1<crate::combat::adhocassetloader::AdhocAssetLoader_Asset>,
35    }
36}
37
38#[cfg(feature = "combat-adhocassetloader-types")]
39pub use __types::*;
40
41#[cfg(feature = "combat-adhocassetloader")]
42pub trait IAdhocAssetLoader_AssetMethods: IAdhocAssetLoader_Asset {
43    #[doc = "`get_NameHash()` overload"]
44    fn get_name_hash(self) -> i32 {
45        unsafe {
46            let __receiver =
47                <AdhocAssetLoader_Asset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            ::unity::il2cpp_call!((::unity::module_base()+0x1b9a8d0usize)as*mut u8,i32;
49(AdhocAssetLoader_Asset)__receiver)
50        }
51    }
52    #[doc = "`set_NameHash(i32)` overload"]
53    fn set_name_hash(self, value: impl ::core::convert::Into<i32>) -> () {
54        unsafe {
55            let __receiver =
56                <AdhocAssetLoader_Asset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57            ::unity::il2cpp_call!((::unity::module_base()+0x1b9a8e0usize)as*mut u8,();
58(AdhocAssetLoader_Asset)__receiver,(i32)::core::convert::Into::into(value))
59        }
60    }
61    #[doc = "`get_AddressablePath()` overload"]
62    fn get_addressable_path(self) -> ::unity::Il2CppString {
63        unsafe {
64            let __receiver =
65                <AdhocAssetLoader_Asset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66            ::unity::il2cpp_call!((::unity::module_base()+0x1b9a8f0usize)as*mut u8, ::unity::Il2CppString;
67(AdhocAssetLoader_Asset)__receiver)
68        }
69    }
70    #[doc = "`set_AddressablePath(::unity::Il2CppString)` overload"]
71    fn set_addressable_path(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
72        unsafe {
73            let __receiver =
74                <AdhocAssetLoader_Asset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            ::unity::il2cpp_call!((::unity::module_base()+0x1b9a900usize)as*mut u8,();
76(AdhocAssetLoader_Asset)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
77        }
78    }
79    #[doc = "`get_Prefab()` overload"]
80    fn get_prefab(self) -> crate::unity_engine::gameobject::GameObject {
81        unsafe {
82            let __receiver =
83                <AdhocAssetLoader_Asset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84            ::unity::il2cpp_call!((::unity::module_base()+0x1b9a910usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
85(AdhocAssetLoader_Asset)__receiver)
86        }
87    }
88    #[doc = "`set_Prefab(crate::unity_engine::gameobject::GameObject)` overload"]
89    fn set_prefab(self, value: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
90        unsafe {
91            let __receiver =
92                <AdhocAssetLoader_Asset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93            ::unity::il2cpp_call!((::unity::module_base()+0x1b9a920usize)as*mut u8,();
94(AdhocAssetLoader_Asset)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(value))
95        }
96    }
97    #[doc = "`Is(i32)` overload"]
98    fn is(self, hash: impl ::core::convert::Into<i32>) -> bool {
99        unsafe {
100            let __receiver =
101                <AdhocAssetLoader_Asset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102            ::unity::il2cpp_call!((::unity::module_base()+0x1b9a930usize)as*mut u8,bool;
103(AdhocAssetLoader_Asset)__receiver,(i32)::core::convert::Into::into(hash))
104        }
105    }
106    #[doc = "`.ctor(::unity::Il2CppString, i32)` overload"]
107    fn ctor(self, name: impl ::core::convert::Into<::unity::Il2CppString>, hash: impl ::core::convert::Into<i32>) -> () {
108        unsafe {
109            let __receiver =
110                <AdhocAssetLoader_Asset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111            ::unity::il2cpp_call!((::unity::module_base()+0x1b9a940usize)as*mut u8,();
112(AdhocAssetLoader_Asset)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(i32)::core::convert::Into::into(hash))
113        }
114    }
115    #[doc = "`Load()` overload"]
116    fn load(self) -> () {
117        unsafe {
118            let __receiver =
119                <AdhocAssetLoader_Asset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120            ::unity::il2cpp_call!((::unity::module_base()+0x1b9aa00usize)as*mut u8,();
121(AdhocAssetLoader_Asset)__receiver)
122        }
123    }
124    #[doc = "`IsReady()` overload"]
125    fn is_ready(self) -> bool {
126        unsafe {
127            let __receiver =
128                <AdhocAssetLoader_Asset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129            ::unity::il2cpp_call!((::unity::module_base()+0x1b9aa60usize)as*mut u8,bool;
130(AdhocAssetLoader_Asset)__receiver)
131        }
132    }
133    #[doc = "`Dispose()` overload"]
134    fn dispose(self) -> () {
135        unsafe {
136            let __receiver =
137                <AdhocAssetLoader_Asset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
138            {
139                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
140                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
141                    panic!(
142                        "unity: virtual slot {}
143 out of range (vtable len {}
144) on the runtime class behind {}
145 (method `{}
146`)",
147                        4usize,
148                        __vt.len(),
149                        <AdhocAssetLoader_Asset as ::unity::ClassIdentity>::NAME,
150                        "Dispose",
151                    )
152                });
153                let __inner: extern "C" fn(AdhocAssetLoader_Asset, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
154                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
155                __inner(__receiver, __mi)
156            }
157        }
158    }
159}
160
161#[cfg(feature = "combat-adhocassetloader")]
162impl<__T: IAdhocAssetLoader_Asset> IAdhocAssetLoader_AssetMethods for __T {}
163
164#[cfg(feature = "combat-adhocassetloader")]
165impl AdhocAssetLoader_Asset {
166    pub fn get_name_hash_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
168    }
169
170    pub fn set_name_hash_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
172    }
173
174    pub fn get_addressable_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
176    }
177
178    pub fn set_addressable_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
180    }
181
182    pub fn get_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
184    }
185
186    pub fn set_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
188    }
189
190    pub fn is_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
192    }
193
194    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
196    }
197
198    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
199        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
200    }
201
202    pub fn is_ready_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
204    }
205
206    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
208    }
209}
210
211#[cfg(feature = "combat-adhocassetloader")]
212impl AdhocAssetLoader_Asset {
213    #[doc = "Direct (non-virtual) call to `AdhocAssetLoader_Asset`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
214    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
215        let __mi = Self::dispose_method_info();
216        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
217        __inner(this.into(), ::core::option::Option::None)
218    }
219}
220
221#[cfg(feature = "combat-adhocassetloader")]
222impl AdhocAssetLoader_Asset {
223    #[doc = "`.ctor(::unity::Il2CppString, i32)` — overload selector"]
224    pub fn new(name: ::unity::Il2CppString, hash: i32) -> Self {
225        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
226            panic!(
227                "{}
228::{}
229 failed to instantiate",
230                ::core::stringify!(AdhocAssetLoader_Asset),
231                ::core::stringify!(new),
232            )
233        });
234        <Self as IAdhocAssetLoader_AssetMethods>::ctor(this, name, hash);
235        this
236    }
237}
238
239#[cfg(feature = "combat-adhocassetloader")]
240pub trait IAdhocAssetLoaderMethods: IAdhocAssetLoader {
241    #[doc = "`OnDestroy()` overload"]
242    fn on_destroy(self) -> () {
243        unsafe {
244            let __receiver = <AdhocAssetLoader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245            ::unity::il2cpp_call!((::unity::module_base()+0x2bc9d80usize)as*mut u8,();
246(AdhocAssetLoader)__receiver)
247        }
248    }
249    #[doc = "`get_Item(::unity::Il2CppString)` overload"]
250    fn get_item(self, path: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::gameobject::GameObject {
251        unsafe {
252            let __receiver = <AdhocAssetLoader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
253            ::unity::il2cpp_call!((::unity::module_base()+0x2bc9e90usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
254(AdhocAssetLoader)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path))
255        }
256    }
257    #[doc = "`Add(::unity::Il2CppString)` overload"]
258    fn add(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
259        unsafe {
260            let __receiver = <AdhocAssetLoader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
261            ::unity::il2cpp_call!((::unity::module_base()+0x2bc9f70usize)as*mut u8,();
262(AdhocAssetLoader)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
263        }
264    }
265    #[doc = "`Preload()` overload"]
266    fn preload(self) -> () {
267        unsafe {
268            let __receiver = <AdhocAssetLoader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
269            ::unity::il2cpp_call!((::unity::module_base()+0x2bca190usize)as*mut u8,();
270(AdhocAssetLoader)__receiver)
271        }
272    }
273    #[doc = "`IsReady()` overload"]
274    fn is_ready(self) -> bool {
275        unsafe {
276            let __receiver = <AdhocAssetLoader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
277            ::unity::il2cpp_call!((::unity::module_base()+0x2bca2a0usize)as*mut u8,bool;
278(AdhocAssetLoader)__receiver)
279        }
280    }
281    #[doc = "`.ctor()` overload"]
282    fn ctor(self) -> () {
283        unsafe {
284            let __receiver = <AdhocAssetLoader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
285            ::unity::il2cpp_call!((::unity::module_base()+0x2bca360usize)as*mut u8,();
286(AdhocAssetLoader)__receiver)
287        }
288    }
289}
290
291#[cfg(feature = "combat-adhocassetloader")]
292impl<__T: IAdhocAssetLoader> IAdhocAssetLoaderMethods for __T {}
293
294#[cfg(feature = "combat-adhocassetloader")]
295impl AdhocAssetLoader {
296    pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
298    }
299
300    pub fn get_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
302    }
303
304    pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
306    }
307
308    pub fn preload_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
310    }
311
312    pub fn is_ready_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
314    }
315
316    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
318    }
319}
320
321#[cfg(feature = "combat-adhocassetloader")]
322impl AdhocAssetLoader {
323    #[doc = "`.ctor()` — no args"]
324    pub fn new() -> Self {
325        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
326            panic!(
327                "{}
328::{}
329 failed to instantiate",
330                ::core::stringify!(AdhocAssetLoader),
331                ::core::stringify!(new),
332            )
333        });
334        <Self as IAdhocAssetLoaderMethods>::ctor(this);
335        this
336    }
337}
338
339#[cfg(feature = "combat-adhocassetloader")]
340#[doc(hidden)]
341pub mod prelude {
342    pub use super::{
343        AdhocAssetLoader, AdhocAssetLoader_Asset, IAdhocAssetLoader, IAdhocAssetLoaderMethods, IAdhocAssetLoader_Asset,
344        IAdhocAssetLoader_AssetMethods,
345    };
346    #[cfg(feature = "app-singletonmonobehaviour_1")]
347    pub use crate::app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1Methods;
348    #[cfg(feature = "system-object")]
349    pub use crate::system::object::IObjectMethods;
350    #[cfg(feature = "unity_engine-behaviour")]
351    pub use crate::unity_engine::behaviour::IBehaviourMethods;
352    #[cfg(feature = "unity_engine-component")]
353    pub use crate::unity_engine::component::IComponentMethods;
354    #[cfg(feature = "unity_engine-monobehaviour")]
355    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
356    #[cfg(feature = "unity_engine-object_2")]
357    pub use crate::unity_engine::object_2::IObject_2Methods;
358    pub use crate::{
359        app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1,
360        system::object::IObject,
361        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
362    };
363}