Skip to main content

engage/generated/unity_engine/addressable_assets/
platformmappingservice.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-addressable_assets-platformmappingservice-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/platformmappingservice/PlatformMappingService.md"))]
11    #[::unity::class(namespace = "UnityEngine.AddressableAssets", name = "PlatformMappingService")]
12    #[parent(crate::system::object::Object)]
13    pub struct PlatformMappingService {
14        #[static_field]
15        #[rename(name = "s_RuntimeTargetMapping")]
16        pub s_runtime_target_mapping: crate::system::collections::generic::dictionary_2::Dictionary_2<
17            crate::unity_engine::runtimeplatform::RuntimePlatform,
18            crate::unity_engine::addressable_assets::addressablesplatform::AddressablesPlatform,
19        >,
20    }
21}
22
23#[cfg(feature = "unity_engine-addressable_assets-platformmappingservice-types")]
24pub use __types::*;
25
26#[cfg(feature = "unity_engine-addressable_assets-platformmappingservice")]
27impl PlatformMappingService {
28    #[doc = "`GetAddressablesPlatformInternal(crate::unity_engine::runtimeplatform::RuntimePlatform)` overload"]
29    pub fn get_addressables_platform_internal(
30        platform: impl ::core::convert::Into<crate::unity_engine::runtimeplatform::RuntimePlatform>,
31    ) -> crate::unity_engine::addressable_assets::addressablesplatform::AddressablesPlatform {
32        unsafe {
33            ::unity::il2cpp_call!((::unity::module_base()+0x2dbb8b0usize)as*mut u8,crate::unity_engine::addressable_assets::addressablesplatform::AddressablesPlatform;
34(crate::unity_engine::runtimeplatform::RuntimePlatform)::core::convert::Into::into(platform))
35        }
36    }
37
38    #[doc = "`GetAddressablesPlatformPathInternal(crate::unity_engine::runtimeplatform::RuntimePlatform)` overload"]
39    pub fn get_addressables_platform_path_internal(
40        platform: impl ::core::convert::Into<crate::unity_engine::runtimeplatform::RuntimePlatform>,
41    ) -> ::unity::Il2CppString {
42        unsafe {
43            ::unity::il2cpp_call!((::unity::module_base()+0x2dbb9a0usize)as*mut u8, ::unity::Il2CppString;
44(crate::unity_engine::runtimeplatform::RuntimePlatform)::core::convert::Into::into(platform))
45        }
46    }
47
48    #[doc = "`GetPlatform()` overload"]
49    pub fn get_platform() -> crate::unity_engine::addressable_assets::addressablesplatform::AddressablesPlatform {
50        unsafe {
51            ::unity::il2cpp_call!((::unity::module_base()+0x2dbbb30usize)as*mut u8,crate::unity_engine::addressable_assets::addressablesplatform::AddressablesPlatform;
52            )
53        }
54    }
55
56    #[doc = "`GetPlatformPathSubFolder()` overload"]
57    pub fn get_platform_path_sub_folder() -> ::unity::Il2CppString {
58        unsafe {
59            ::unity::il2cpp_call!((::unity::module_base()+0x2daaea0usize)as*mut u8, ::unity::Il2CppString;
60            )
61        }
62    }
63
64    #[doc = "`.cctor()` overload"]
65    pub fn cctor() -> () {
66        unsafe {
67            ::unity::il2cpp_call!((::unity::module_base()+0x2dbbbc0usize)as*mut u8,();
68            )
69        }
70    }
71}
72
73#[cfg(feature = "unity_engine-addressable_assets-platformmappingservice")]
74pub trait IPlatformMappingServiceMethods: IPlatformMappingService {
75    #[doc = "`.ctor()` overload"]
76    fn ctor(self) -> () {
77        unsafe {
78            let __receiver =
79                <PlatformMappingService as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80            ::unity::il2cpp_call!((::unity::module_base()+0x2dbbbb0usize)as*mut u8,();
81(PlatformMappingService)__receiver)
82        }
83    }
84}
85
86#[cfg(feature = "unity_engine-addressable_assets-platformmappingservice")]
87impl<__T: IPlatformMappingService> IPlatformMappingServiceMethods for __T {}
88
89#[cfg(feature = "unity_engine-addressable_assets-platformmappingservice")]
90impl PlatformMappingService {
91    pub fn get_addressables_platform_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
93    }
94
95    pub fn get_addressables_platform_path_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
96        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
97    }
98
99    pub fn get_platform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
101    }
102
103    pub fn get_platform_path_sub_folder_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
105    }
106
107    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
108        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
109    }
110
111    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
112        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
113    }
114}
115
116#[cfg(feature = "unity_engine-addressable_assets-platformmappingservice")]
117impl PlatformMappingService {
118    #[doc = "`.ctor()` — no args"]
119    pub fn new() -> Self {
120        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
121            panic!(
122                "{}
123::{}
124 failed to instantiate",
125                ::core::stringify!(PlatformMappingService),
126                ::core::stringify!(new),
127            )
128        });
129        <Self as IPlatformMappingServiceMethods>::ctor(this);
130        this
131    }
132}
133
134#[cfg(feature = "unity_engine-addressable_assets-platformmappingservice")]
135#[doc(hidden)]
136pub mod prelude {
137    pub use super::{IPlatformMappingService, IPlatformMappingServiceMethods, PlatformMappingService};
138    pub use crate::system::object::IObject;
139    #[cfg(feature = "system-object")]
140    pub use crate::system::object::IObjectMethods;
141}