Skip to main content

engage/generated/app/talk3_d/
talkutil.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-talk3_d-talkutil-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/app/talk3_d/talkutil/TalkUtil.md"))]
11    #[::unity::class(namespace = "App.Talk3D", name = "TalkUtil")]
12    #[parent(crate::system::object::Object)]
13    pub struct TalkUtil {}
14}
15
16#[cfg(feature = "app-talk3_d-talkutil-types")]
17pub use __types::*;
18
19#[cfg(feature = "app-talk3_d-talkutil")]
20impl TalkUtil {
21    #[doc = "`GetChildren(crate::unity_engine::gameobject::GameObject)` overload"]
22    pub fn get_children(
23        root: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
24    ) -> ::unity::Array<crate::unity_engine::gameobject::GameObject> {
25        unsafe {
26            ::unity::il2cpp_call!((::unity::module_base()+0x21dda60usize)as*mut u8, ::unity::Array<crate::unity_engine::gameobject::GameObject> ;
27(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(root))
28        }
29    }
30
31    #[doc = "`PIDToGID(::unity::Il2CppString)` overload"]
32    pub fn pid_to_gid(pid: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
33        unsafe {
34            ::unity::il2cpp_call!((::unity::module_base()+0x21da360usize)as*mut u8, ::unity::Il2CppString;
35(::unity::Il2CppString)::core::convert::Into::into(pid))
36        }
37    }
38
39    #[doc = "`GetTalkerNameByPID(::unity::Il2CppString)` overload"]
40    pub fn get_talker_name_by_pid(pid: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
41        unsafe {
42            ::unity::il2cpp_call!((::unity::module_base()+0x21d8c00usize)as*mut u8, ::unity::Il2CppString;
43(::unity::Il2CppString)::core::convert::Into::into(pid))
44        }
45    }
46}
47
48#[cfg(feature = "app-talk3_d-talkutil")]
49pub trait ITalkUtilMethods: ITalkUtil {
50    #[doc = "`.ctor()` overload"]
51    fn ctor(self) -> () {
52        unsafe {
53            let __receiver = <TalkUtil as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54            ::unity::il2cpp_call!((::unity::module_base()+0x21ddbc0usize)as*mut u8,();
55(TalkUtil)__receiver)
56        }
57    }
58}
59
60#[cfg(feature = "app-talk3_d-talkutil")]
61impl<__T: ITalkUtil> ITalkUtilMethods for __T {}
62
63#[cfg(feature = "app-talk3_d-talkutil")]
64impl TalkUtil {
65    pub fn get_children_method_info() -> &'static ::unity::il2cpp::MethodInfo {
66        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
67    }
68
69    pub fn pid_to_gid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
70        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
71    }
72
73    pub fn get_talker_name_by_pid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
74        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
75    }
76
77    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
78        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
79    }
80}
81
82#[cfg(feature = "app-talk3_d-talkutil")]
83impl TalkUtil {
84    #[doc = "`.ctor()` — no args"]
85    pub fn new() -> Self {
86        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
87            panic!(
88                "{}
89::{}
90 failed to instantiate",
91                ::core::stringify!(TalkUtil),
92                ::core::stringify!(new),
93            )
94        });
95        <Self as ITalkUtilMethods>::ctor(this);
96        this
97    }
98}
99
100#[cfg(feature = "app-talk3_d-talkutil")]
101#[doc(hidden)]
102pub mod prelude {
103    pub use super::{ITalkUtil, ITalkUtilMethods, TalkUtil};
104    pub use crate::system::object::IObject;
105    #[cfg(feature = "system-object")]
106    pub use crate::system::object::IObjectMethods;
107}