Skip to main content

engage/generated/app/talk3_d/
talk_2.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-talk3_d-talk_2-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        r#enum::{Enum, IEnum},
11        valuetype::{IValueType, ValueType},
12    };
13
14    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/talk3_d/talk_2/Talk_2.md"))]
15    #[::unity::class(namespace = "App.Talk3D", name = "Talk")]
16    #[parent(crate::system::object::Object)]
17    pub struct Talk_2 {}
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/talk3_d/talk_2/Talk_TalkType.md"))]
20    #[repr(C)]
21    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
22    pub struct Talk_TalkType {
23        pub value: i32,
24    }
25    impl ::unity::ClassIdentity for Talk_TalkType {
26        const NAME: &'static str = "Talk.TalkType";
27        const NAMESPACE: &'static str = "App.Talk3D";
28
29        fn class() -> ::unity::Class {
30            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
31            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
32        }
33    }
34    impl ::unity::IlType for Talk_TalkType {
35        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
36            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
37        }
38    }
39    impl Talk_TalkType {
40        pub fn none() -> Self {
41            Self { value: -1 }
42        }
43
44        pub fn face() -> Self {
45            Self { value: 0 }
46        }
47
48        pub fn puppet() -> Self {
49            Self { value: 1 }
50        }
51
52        pub fn system() -> Self {
53            Self { value: 2 }
54        }
55
56        pub fn direct() -> Self {
57            Self { value: 3 }
58        }
59
60        pub fn max() -> Self {
61            Self { value: 4 }
62        }
63    }
64}
65
66#[cfg(feature = "app-talk3_d-talk_2-types")]
67pub use __types::*;
68
69#[cfg(feature = "app-talk3_d-talk_2")]
70pub trait ITalk_2Methods: ITalk_2 {
71    #[doc = "`.ctor()` overload"]
72    fn ctor(self) -> () {
73        unsafe {
74            let __receiver = <Talk_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            ::unity::il2cpp_call!((::unity::module_base()+0x20b8ef0usize)as*mut u8,();
76(Talk_2)__receiver)
77        }
78    }
79}
80
81#[cfg(feature = "app-talk3_d-talk_2")]
82impl<__T: ITalk_2> ITalk_2Methods for __T {}
83
84#[cfg(feature = "app-talk3_d-talk_2")]
85impl Talk_2 {
86    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
87        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
88    }
89}
90
91#[cfg(feature = "app-talk3_d-talk_2")]
92impl Talk_2 {
93    #[doc = "`.ctor()` — no args"]
94    pub fn new() -> Self {
95        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
96            panic!(
97                "{}
98::{}
99 failed to instantiate",
100                ::core::stringify!(Talk_2),
101                ::core::stringify!(new),
102            )
103        });
104        <Self as ITalk_2Methods>::ctor(this);
105        this
106    }
107}
108
109#[cfg(feature = "app-talk3_d-talk_2")]
110#[doc(hidden)]
111pub mod prelude {
112    pub use super::{ITalk_2, ITalk_2Methods, Talk_2, Talk_TalkType};
113    #[cfg(feature = "system-object")]
114    pub use crate::system::object::IObjectMethods;
115    #[cfg(feature = "system-enum")]
116    pub use crate::system::r#enum::IEnumMethods;
117    #[cfg(feature = "system-valuetype")]
118    pub use crate::system::valuetype::IValueTypeMethods;
119    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
120}