Skip to main content

engage/generated/unity_engine/addressable_assets/resource_locators/
resourcelocationmap.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-addressable_assets-resource_locators-resourcelocationmap-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/addressable_assets/resource_locators/resourcelocationmap/ResourceLocationMap.md"))]
11    #[::unity::class(namespace = "UnityEngine.AddressableAssets.ResourceLocators", name = "ResourceLocationMap")]
12    #[parent(crate::system::object::Object)]
13    pub struct ResourceLocationMap {}
14}
15
16#[cfg(feature = "unity_engine-addressable_assets-resource_locators-resourcelocationmap-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-addressable_assets-resource_locators-resourcelocationmap")]
20pub trait IResourceLocationMapMethods: IResourceLocationMap {
21    #[doc = "`.ctor(::unity::Il2CppString, i32)` overload"]
22    fn ctor(self, id: impl ::core::convert::Into<::unity::Il2CppString>, capacity: impl ::core::convert::Into<i32>) -> () {
23        unsafe {
24            let __receiver = <ResourceLocationMap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
25            ::unity::il2cpp_call!((::unity::module_base()+0x2db4ff0usize)as*mut u8,();
26(ResourceLocationMap)__receiver,(::unity::Il2CppString)::core::convert::Into::into(id),(i32)::core::convert::Into::into(capacity))
27        }
28    }
29    #[doc = "`get_LocatorId()` overload"]
30    fn get_locator_id(self) -> ::unity::Il2CppString {
31        unsafe {
32            let __receiver = <ResourceLocationMap 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(4usize).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                        4usize,
43                        __vt.len(),
44                        <ResourceLocationMap as ::unity::ClassIdentity>::NAME,
45                        "get_LocatorId",
46                    )
47                });
48                let __inner: extern "C" fn(ResourceLocationMap, ::unity::OptionalMethod) -> ::unity::Il2CppString =
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 = "`set_LocatorId(::unity::Il2CppString)` overload"]
56    fn set_locator_id(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
57        unsafe {
58            let __receiver = <ResourceLocationMap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            ::unity::il2cpp_call!((::unity::module_base()+0x2dbc940usize)as*mut u8,();
60(ResourceLocationMap)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
61        }
62    }
63    #[doc = "`.ctor(::unity::Il2CppString, crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::addressable_assets::resource_locators::resourcelocationdata::ResourceLocationData>)` overload"]
64    fn ctor_2(
65        self,
66        id: impl ::core::convert::Into<::unity::Il2CppString>,
67        locations: impl ::core::convert::Into<
68            crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
69                crate::unity_engine::addressable_assets::resource_locators::resourcelocationdata::ResourceLocationData,
70            >,
71        >,
72    ) -> () {
73        unsafe {
74            let __receiver = <ResourceLocationMap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            ::unity::il2cpp_call!((::unity::module_base()+0x2db8ed0usize)as*mut u8,();
76(ResourceLocationMap)__receiver,(::unity::Il2CppString)::core::convert::Into::into(id),(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::addressable_assets::resource_locators::resourcelocationdata::ResourceLocationData>)::core::convert::Into::into(locations))
77        }
78    }
79    #[doc = "`get_Locations()` overload"]
80    fn get_locations(
81        self,
82    ) -> crate::system::collections::generic::dictionary_2::Dictionary_2<
83        crate::system::object::Object,
84        crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
85            crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
86        >,
87    > {
88        unsafe {
89            let __receiver = <ResourceLocationMap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90            ::unity::il2cpp_call!((::unity::module_base()+0x2dbcab0usize)as*mut u8,crate::system::collections::generic::dictionary_2::Dictionary_2<crate::system::object::Object,crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation> > ;
91(ResourceLocationMap)__receiver)
92        }
93    }
94    #[doc = "`set_Locations(crate::system::collections::generic::dictionary_2::Dictionary_2<crate::system::object::Object,crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>>)` overload"]
95    fn set_locations(
96        self,
97        value: impl ::core::convert::Into<
98            crate::system::collections::generic::dictionary_2::Dictionary_2<
99                crate::system::object::Object,
100                crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
101                    crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
102                >,
103            >,
104        >,
105    ) -> () {
106        unsafe {
107            let __receiver = <ResourceLocationMap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108            ::unity::il2cpp_call!((::unity::module_base()+0x2dbcac0usize)as*mut u8,();
109(ResourceLocationMap)__receiver,(crate::system::collections::generic::dictionary_2::Dictionary_2<crate::system::object::Object,crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation> >)::core::convert::Into::into(value))
110        }
111    }
112    #[doc = "`get_Keys()` overload"]
113    fn get_keys(self) -> crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::system::object::Object> {
114        unsafe {
115            let __receiver = <ResourceLocationMap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116            {
117                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
118                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
119                    panic!(
120                        "unity: virtual slot {}
121 out of range (vtable len {}
122) on the runtime class behind {}
123 (method `{}
124`)",
125                        5usize,
126                        __vt.len(),
127                        <ResourceLocationMap as ::unity::ClassIdentity>::NAME,
128                        "get_Keys",
129                    )
130                });
131                let __inner: extern "C" fn(
132                    ResourceLocationMap,
133                    ::unity::OptionalMethod,
134                )
135                    -> crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::system::object::Object> =
136                    ::core::mem::transmute(__vi.method_ptr);
137                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
138                __inner(__receiver, __mi)
139            }
140        }
141    }
142    #[doc = "`Locate(crate::system::object::Object, ::unity::SystemType, *mutcrate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>)` overload"]
143    fn locate(
144        self,
145        key: impl ::core::convert::Into<crate::system::object::Object>,
146        r#type: impl ::core::convert::Into<::unity::SystemType>,
147    ) -> (
148        bool,
149        crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
150            crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
151        >,
152    ) {
153        unsafe {
154            let __receiver = <ResourceLocationMap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155            let mut __out_0 = ::core::mem::MaybeUninit::<
156                crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
157                    crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
158                >,
159            >::uninit();
160            let __ret = {
161                {
162                    let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
163                    let __vi = *__vt.get(6usize).unwrap_or_else(|| {
164                        panic!(
165                            "unity: virtual slot {}
166 out of range (vtable len {}
167) on the runtime class behind {}
168 (method `{}
169`)",
170                            6usize,
171                            __vt.len(),
172                            <ResourceLocationMap as ::unity::ClassIdentity>::NAME,
173                            "Locate",
174                        )
175                    });
176                    let __inner: extern "C" fn(
177                        ResourceLocationMap,
178                        crate::system::object::Object,
179                        ::unity::SystemType,
180                        *mut crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
181                            crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
182                        >,
183                        ::unity::OptionalMethod,
184                    ) -> bool = ::core::mem::transmute(__vi.method_ptr);
185                    let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
186                    __inner(
187                        __receiver,
188                        ::core::convert::Into::into(key),
189                        ::core::convert::Into::into(r#type),
190                        __out_0.as_mut_ptr(),
191                        __mi,
192                    )
193                }
194            };
195            (__ret, __out_0.assume_init())
196        }
197    }
198    #[doc = "`Add(crate::system::object::Object, crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation)` overload"]
199    fn add(
200        self,
201        key: impl ::core::convert::Into<crate::system::object::Object>,
202        location: impl ::core::convert::Into<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>,
203    ) -> () {
204        unsafe {
205            let __receiver = <ResourceLocationMap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
206            ::unity::il2cpp_call!((::unity::module_base()+0x2dbc950usize)as*mut u8,();
207(ResourceLocationMap)__receiver,(crate::system::object::Object)::core::convert::Into::into(key),(crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation)::core::convert::Into::into(location))
208        }
209    }
210    #[doc = "`Add(crate::system::object::Object, crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>)` overload"]
211    fn add_2(
212        self,
213        key: impl ::core::convert::Into<crate::system::object::Object>,
214        locations: impl ::core::convert::Into<
215            crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
216                crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
217            >,
218        >,
219    ) -> () {
220        unsafe {
221            let __receiver = <ResourceLocationMap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
222            ::unity::il2cpp_call!((::unity::module_base()+0x2db5320usize)as*mut u8,();
223(ResourceLocationMap)__receiver,(crate::system::object::Object)::core::convert::Into::into(key),(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>)::core::convert::Into::into(locations))
224        }
225    }
226}
227
228#[cfg(feature = "unity_engine-addressable_assets-resource_locators-resourcelocationmap")]
229impl<__T: IResourceLocationMap> IResourceLocationMapMethods for __T {}
230
231#[cfg(feature = "unity_engine-addressable_assets-resource_locators-resourcelocationmap")]
232impl ResourceLocationMap {
233    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
234        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
235    }
236
237    pub fn get_locator_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
238        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
239    }
240
241    pub fn set_locator_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
243    }
244
245    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
247    }
248
249    pub fn get_locations_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
251    }
252
253    pub fn set_locations_method_info() -> &'static ::unity::il2cpp::MethodInfo {
254        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
255    }
256
257    pub fn get_keys_method_info() -> &'static ::unity::il2cpp::MethodInfo {
258        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
259    }
260
261    pub fn locate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
263    }
264
265    pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
267    }
268
269    pub fn add_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
271    }
272}
273
274#[cfg(feature = "unity_engine-addressable_assets-resource_locators-resourcelocationmap")]
275impl ResourceLocationMap {
276    #[doc = "Direct (non-virtual) call to `ResourceLocationMap`'s own `get_LocatorId`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
277    pub unsafe fn get_locator_id(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
278        let __mi = Self::get_locator_id_method_info();
279        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
280        __inner(this.into(), ::core::option::Option::None)
281    }
282
283    #[doc = "Direct (non-virtual) call to `ResourceLocationMap`'s own `get_Keys`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
284    pub unsafe fn get_keys(
285        this: impl ::core::convert::Into<::unity::IlInstance>,
286    ) -> crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::system::object::Object> {
287        let __mi = Self::get_keys_method_info();
288        let __inner: extern "C" fn(
289            ::unity::IlInstance,
290            ::unity::OptionalMethod,
291        ) -> crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::system::object::Object> =
292            ::core::mem::transmute(__mi.method_ptr);
293        __inner(this.into(), ::core::option::Option::None)
294    }
295
296    #[doc = "Direct (non-virtual) call to `ResourceLocationMap`'s own `Locate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
297    pub unsafe fn locate(
298        this: impl ::core::convert::Into<::unity::IlInstance>,
299        key: crate::system::object::Object,
300        r#type: ::unity::SystemType,
301        locations: *mut crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
302            crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
303        >,
304    ) -> bool {
305        let __mi = Self::locate_method_info();
306        let __inner: extern "C" fn(
307            ::unity::IlInstance,
308            crate::system::object::Object,
309            ::unity::SystemType,
310            *mut crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
311                crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
312            >,
313            ::unity::OptionalMethod,
314        ) -> bool = ::core::mem::transmute(__mi.method_ptr);
315        __inner(this.into(), key, r#type, locations, ::core::option::Option::None)
316    }
317}
318
319#[cfg(feature = "unity_engine-addressable_assets-resource_locators-resourcelocationmap")]
320impl ResourceLocationMap {
321    #[doc = "`.ctor(::unity::Il2CppString, i32)` — overload selector"]
322    pub fn new(id: ::unity::Il2CppString, capacity: i32) -> Self {
323        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
324            panic!(
325                "{}
326::{}
327 failed to instantiate",
328                ::core::stringify!(ResourceLocationMap),
329                ::core::stringify!(new),
330            )
331        });
332        <Self as IResourceLocationMapMethods>::ctor(this, id, capacity);
333        this
334    }
335
336    #[doc = "`.ctor(::unity::Il2CppString, crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::addressable_assets::resource_locators::resourcelocationdata::ResourceLocationData>)` — overload selector"]
337    pub fn new_2(
338        id: ::unity::Il2CppString,
339        locations: crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
340            crate::unity_engine::addressable_assets::resource_locators::resourcelocationdata::ResourceLocationData,
341        >,
342    ) -> Self {
343        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
344            panic!(
345                "{}
346::{}
347 failed to instantiate",
348                ::core::stringify!(ResourceLocationMap),
349                ::core::stringify!(new_2),
350            )
351        });
352        <Self as IResourceLocationMapMethods>::ctor_2(this, id, locations);
353        this
354    }
355}
356
357#[cfg(feature = "unity_engine-addressable_assets-resource_locators-resourcelocationmap")]
358#[doc(hidden)]
359pub mod prelude {
360    pub use super::{IResourceLocationMap, IResourceLocationMapMethods, ResourceLocationMap};
361    pub use crate::system::object::IObject;
362    #[cfg(feature = "system-object")]
363    pub use crate::system::object::IObjectMethods;
364}