Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-addressable_assets-resource_locators-resourcelocationdata-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/resourcelocationdata/ResourceLocationData.md"))]
11    #[::unity::class(namespace = "UnityEngine.AddressableAssets.ResourceLocators", name = "ResourceLocationData")]
12    #[parent(crate::system::object::Object)]
13    pub struct ResourceLocationData {
14        #[offset(16)]
15        #[rename(name = "m_Keys")]
16        pub m_keys: ::unity::Array<::unity::Il2CppString>,
17        #[offset(24)]
18        #[rename(name = "m_InternalId")]
19        pub m_internal_id: ::unity::Il2CppString,
20        #[offset(32)]
21        #[rename(name = "m_Provider")]
22        pub m_provider: ::unity::Il2CppString,
23        #[offset(40)]
24        #[rename(name = "m_Dependencies")]
25        pub m_dependencies: ::unity::Array<::unity::Il2CppString>,
26        #[offset(48)]
27        #[rename(name = "m_ResourceType")]
28        pub m_resource_type: crate::unity_engine::resource_management::util::serializedtype::SerializedType,
29        #[offset(80)]
30        #[rename(name = "SerializedData")]
31        pub serialized_data: ::unity::Array<u8>,
32        #[offset(88)]
33        #[rename(name = "_Data")]
34        pub data_field: ::unity::IlInstance,
35    }
36}
37
38#[cfg(feature = "unity_engine-addressable_assets-resource_locators-resourcelocationdata-types")]
39pub use __types::*;
40
41#[cfg(feature = "unity_engine-addressable_assets-resource_locators-resourcelocationdata")]
42pub trait IResourceLocationDataMethods: IResourceLocationData {
43    #[doc = "`get_Keys()` overload"]
44    fn get_keys(self) -> ::unity::Array<::unity::Il2CppString> {
45        unsafe {
46            let __receiver = <ResourceLocationData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47            ::unity::il2cpp_call!((::unity::module_base()+0x2dbbda0usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
48(ResourceLocationData)__receiver)
49        }
50    }
51    #[doc = "`get_InternalId()` overload"]
52    fn get_internal_id(self) -> ::unity::Il2CppString {
53        unsafe {
54            let __receiver = <ResourceLocationData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
55            ::unity::il2cpp_call!((::unity::module_base()+0x2dbbdb0usize)as*mut u8, ::unity::Il2CppString;
56(ResourceLocationData)__receiver)
57        }
58    }
59    #[doc = "`get_Provider()` overload"]
60    fn get_provider(self) -> ::unity::Il2CppString {
61        unsafe {
62            let __receiver = <ResourceLocationData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63            ::unity::il2cpp_call!((::unity::module_base()+0x2dbbdc0usize)as*mut u8, ::unity::Il2CppString;
64(ResourceLocationData)__receiver)
65        }
66    }
67    #[doc = "`get_Dependencies()` overload"]
68    fn get_dependencies(self) -> ::unity::Array<::unity::Il2CppString> {
69        unsafe {
70            let __receiver = <ResourceLocationData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71            ::unity::il2cpp_call!((::unity::module_base()+0x2dbbdd0usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
72(ResourceLocationData)__receiver)
73        }
74    }
75    #[doc = "`get_ResourceType()` overload"]
76    fn get_resource_type(self) -> ::unity::SystemType {
77        unsafe {
78            let __receiver = <ResourceLocationData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79            ::unity::il2cpp_call!((::unity::module_base()+0x2dbbde0usize)as*mut u8, ::unity::SystemType;
80(ResourceLocationData)__receiver)
81        }
82    }
83    #[doc = "`get_Data()` overload"]
84    fn get_data(self) -> crate::system::object::Object {
85        unsafe {
86            let __receiver = <ResourceLocationData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87            ::unity::il2cpp_call!((::unity::module_base()+0x2db8d50usize)as*mut u8,crate::system::object::Object;
88(ResourceLocationData)__receiver)
89        }
90    }
91    #[doc = "`set_Data(crate::system::object::Object)` overload"]
92    fn set_data(self, value: impl ::core::convert::Into<crate::system::object::Object>) -> () {
93        unsafe {
94            let __receiver = <ResourceLocationData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95            ::unity::il2cpp_call!((::unity::module_base()+0x2dbbdf0usize)as*mut u8,();
96(ResourceLocationData)__receiver,(crate::system::object::Object)::core::convert::Into::into(value))
97        }
98    }
99    #[doc = "`.ctor(::unity::Array<::unity::Il2CppString>, ::unity::Il2CppString, ::unity::SystemType, ::unity::SystemType, ::unity::Array<::unity::Il2CppString>)` overload"]
100    fn ctor(
101        self,
102        keys: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>,
103        id: impl ::core::convert::Into<::unity::Il2CppString>,
104        provider: impl ::core::convert::Into<::unity::SystemType>,
105        t: impl ::core::convert::Into<::unity::SystemType>,
106        dependencies: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>,
107    ) -> () {
108        unsafe {
109            let __receiver = <ResourceLocationData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
110            ::unity::il2cpp_call!((::unity::module_base()+0x2dbc790usize)as*mut u8,();
111(ResourceLocationData)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(keys),(::unity::Il2CppString)::core::convert::Into::into(id),(::unity::SystemType)::core::convert::Into::into(provider),(::unity::SystemType)::core::convert::Into::into(t),(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(dependencies))
112        }
113    }
114}
115
116#[cfg(feature = "unity_engine-addressable_assets-resource_locators-resourcelocationdata")]
117impl<__T: IResourceLocationData> IResourceLocationDataMethods for __T {}
118
119#[cfg(feature = "unity_engine-addressable_assets-resource_locators-resourcelocationdata")]
120impl ResourceLocationData {
121    pub fn get_keys_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
123    }
124
125    pub fn get_internal_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
126        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
127    }
128
129    pub fn get_provider_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
131    }
132
133    pub fn get_dependencies_method_info() -> &'static ::unity::il2cpp::MethodInfo {
134        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
135    }
136
137    pub fn get_resource_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
138        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
139    }
140
141    pub fn get_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
143    }
144
145    pub fn set_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
146        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
147    }
148
149    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
151    }
152}
153
154#[cfg(feature = "unity_engine-addressable_assets-resource_locators-resourcelocationdata")]
155impl ResourceLocationData {
156    #[doc = "`.ctor(::unity::Array<::unity::Il2CppString>, ::unity::Il2CppString, ::unity::SystemType, ::unity::SystemType, ::unity::Array<::unity::Il2CppString>)` — overload selector"]
157    pub fn new(
158        keys: ::unity::Array<::unity::Il2CppString>,
159        id: ::unity::Il2CppString,
160        provider: ::unity::SystemType,
161        t: ::unity::SystemType,
162        dependencies: ::unity::Array<::unity::Il2CppString>,
163    ) -> Self {
164        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
165            panic!(
166                "{}
167::{}
168 failed to instantiate",
169                ::core::stringify!(ResourceLocationData),
170                ::core::stringify!(new),
171            )
172        });
173        <Self as IResourceLocationDataMethods>::ctor(this, keys, id, provider, t, dependencies);
174        this
175    }
176}
177
178#[cfg(feature = "unity_engine-addressable_assets-resource_locators-resourcelocationdata")]
179#[doc(hidden)]
180pub mod prelude {
181    pub use super::{IResourceLocationData, IResourceLocationDataMethods, ResourceLocationData};
182    pub use crate::system::object::IObject;
183    #[cfg(feature = "system-object")]
184    pub use crate::system::object::IObjectMethods;
185}