Skip to main content

engage/generated/tm_pro/
tmp_resourcemanager.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-tmp_resourcemanager-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/tm_pro/tmp_resourcemanager/TMP_ResourceManager.md"))]
11    #[::unity::class(namespace = "TMPro", name = "TMP_ResourceManager")]
12    #[parent(crate::system::object::Object)]
13    pub struct TMP_ResourceManager {
14        #[static_field]
15        #[rename(name = "s_instance")]
16        pub s_instance: crate::tm_pro::tmp_resourcemanager::TMP_ResourceManager,
17        #[static_field]
18        #[rename(name = "s_TextSettings")]
19        pub s_text_settings: crate::tm_pro::tmp_settings::TMP_Settings,
20        #[static_field]
21        #[rename(name = "s_FontAssetReferences")]
22        pub s_font_asset_references: crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_fontasset::TMP_FontAsset>,
23        #[static_field]
24        #[rename(name = "s_FontAssetReferenceLookup")]
25        pub s_font_asset_reference_lookup:
26            crate::system::collections::generic::dictionary_2::Dictionary_2<i32, crate::tm_pro::tmp_fontasset::TMP_FontAsset>,
27    }
28}
29
30#[cfg(feature = "tm_pro-tmp_resourcemanager-types")]
31pub use __types::*;
32
33#[cfg(feature = "tm_pro-tmp_resourcemanager")]
34impl TMP_ResourceManager {
35    #[doc = "`.cctor()` overload"]
36    pub fn cctor() -> () {
37        unsafe {
38            ::unity::il2cpp_call!((::unity::module_base()+0x282a0d0usize)as*mut u8,();
39            )
40        }
41    }
42
43    #[doc = "`GetTextSettings()` overload"]
44    pub fn get_text_settings() -> crate::tm_pro::tmp_settings::TMP_Settings {
45        unsafe {
46            ::unity::il2cpp_call!((::unity::module_base()+0x282a200usize)as*mut u8,crate::tm_pro::tmp_settings::TMP_Settings;
47            )
48        }
49    }
50
51    #[doc = "`AddFontAsset(crate::tm_pro::tmp_fontasset::TMP_FontAsset)` overload"]
52    pub fn add_font_asset(font_asset: impl ::core::convert::Into<crate::tm_pro::tmp_fontasset::TMP_FontAsset>) -> () {
53        unsafe {
54            ::unity::il2cpp_call!((::unity::module_base()+0x282a340usize)as*mut u8,();
55(crate::tm_pro::tmp_fontasset::TMP_FontAsset)::core::convert::Into::into(font_asset))
56        }
57    }
58
59    #[doc = "`TryGetFontAsset(i32, *mutcrate::tm_pro::tmp_fontasset::TMP_FontAsset)` overload"]
60    pub fn try_get_font_asset(hashcode: impl ::core::convert::Into<i32>) -> (bool, crate::tm_pro::tmp_fontasset::TMP_FontAsset) {
61        unsafe {
62            let mut __out_0 = ::core::mem::MaybeUninit::<crate::tm_pro::tmp_fontasset::TMP_FontAsset>::uninit();
63            let __ret = {
64                ::unity::il2cpp_call!((::unity::module_base()+0x282a460usize)as*mut u8,bool;
65(i32)::core::convert::Into::into(hashcode),(*mut crate::tm_pro::tmp_fontasset::TMP_FontAsset)__out_0.as_mut_ptr())
66            };
67            (__ret, __out_0.assume_init())
68        }
69    }
70
71    #[doc = "`RebuildFontAssetCache(i32)` overload"]
72    pub fn rebuild_font_asset_cache(instance_id: impl ::core::convert::Into<i32>) -> () {
73        unsafe {
74            ::unity::il2cpp_call!((::unity::module_base()+0x282a510usize)as*mut u8,();
75(i32)::core::convert::Into::into(instance_id))
76        }
77    }
78}
79
80#[cfg(feature = "tm_pro-tmp_resourcemanager")]
81pub trait ITMP_ResourceManagerMethods: ITMP_ResourceManager {
82    #[doc = "`.ctor()` overload"]
83    fn ctor(self) -> () {
84        unsafe {
85            let __receiver = <TMP_ResourceManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86            ::unity::il2cpp_call!((::unity::module_base()+0x282a1f0usize)as*mut u8,();
87(TMP_ResourceManager)__receiver)
88        }
89    }
90}
91
92#[cfg(feature = "tm_pro-tmp_resourcemanager")]
93impl<__T: ITMP_ResourceManager> ITMP_ResourceManagerMethods for __T {}
94
95#[cfg(feature = "tm_pro-tmp_resourcemanager")]
96impl TMP_ResourceManager {
97    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
99    }
100
101    pub fn get_text_settings_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
103    }
104
105    pub fn add_font_asset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
107    }
108
109    pub fn try_get_font_asset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
111    }
112
113    pub fn rebuild_font_asset_cache_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
115    }
116
117    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
119    }
120}
121
122#[cfg(feature = "tm_pro-tmp_resourcemanager")]
123impl TMP_ResourceManager {
124    #[doc = "`.ctor()` — no args"]
125    pub fn new() -> Self {
126        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
127            panic!(
128                "{}
129::{}
130 failed to instantiate",
131                ::core::stringify!(TMP_ResourceManager),
132                ::core::stringify!(new),
133            )
134        });
135        <Self as ITMP_ResourceManagerMethods>::ctor(this);
136        this
137    }
138}
139
140#[cfg(feature = "tm_pro-tmp_resourcemanager")]
141#[doc(hidden)]
142pub mod prelude {
143    pub use super::{ITMP_ResourceManager, ITMP_ResourceManagerMethods, TMP_ResourceManager};
144    pub use crate::system::object::IObject;
145    #[cfg(feature = "system-object")]
146    pub use crate::system::object::IObjectMethods;
147}