engage/generated/root/
locale.rs1#[cfg(feature = "root-locale-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/root/locale/Locale.md"))]
11 #[::unity::class(namespace = "", name = "Locale")]
12 #[parent(crate::system::object::Object)]
13 pub struct Locale {}
14}
15
16#[cfg(feature = "root-locale-types")]
17pub use __types::*;
18
19#[cfg(feature = "root-locale")]
20impl Locale {
21 #[doc = "`GetText(::unity::Il2CppString)` overload"]
22 pub fn get_text(msg: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
23 unsafe {
24 ::unity::il2cpp_call!((::unity::module_base()+0x326ba50usize)as*mut u8, ::unity::Il2CppString;
25(::unity::Il2CppString)::core::convert::Into::into(msg))
26 }
27 }
28
29 #[doc = "`GetText(::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` overload"]
30 pub fn get_text_2(
31 fmt: impl ::core::convert::Into<::unity::Il2CppString>,
32 args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
33 ) -> ::unity::Il2CppString {
34 unsafe {
35 ::unity::il2cpp_call!((::unity::module_base()+0x3270e80usize)as*mut u8, ::unity::Il2CppString;
36(::unity::Il2CppString)::core::convert::Into::into(fmt),(::unity::Array<crate::system::object::Object>)::core::convert::Into::into(args))
37 }
38 }
39}
40
41#[cfg(feature = "root-locale")]
42impl Locale {
43 pub fn get_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
44 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
45 }
46
47 pub fn get_text_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
48 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
49 }
50}
51
52#[cfg(feature = "root-locale")]
53#[doc(hidden)]
54pub mod prelude {
55 pub use super::{ILocale, Locale};
56 pub use crate::system::object::IObject;
57 #[cfg(feature = "system-object")]
58 pub use crate::system::object::IObjectMethods;
59}