Skip to main content

engage/generated/app/talk3_d/
talktag.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-talk3_d-talktag-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/talktag/TalkTag.md"))]
15    #[::unity::class(namespace = "App.Talk3D", name = "TalkTag")]
16    #[parent(crate::system::object::Object)]
17    pub struct TalkTag {}
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/talk3_d/talktag/TalkTag_Result.md"))]
20    #[repr(C)]
21    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
22    pub struct TalkTag_Result {
23        pub value: i32,
24    }
25    impl ::unity::ClassIdentity for TalkTag_Result {
26        const NAME: &'static str = "TalkTag.Result";
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 TalkTag_Result {
35        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
36            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
37        }
38    }
39    impl TalkTag_Result {
40        pub fn finish() -> Self {
41            Self { value: 0 }
42        }
43
44        pub fn add_letter() -> Self {
45            Self { value: 1 }
46        }
47
48        pub fn add_letter_retry() -> Self {
49            Self { value: 2 }
50        }
51
52        pub fn retry() -> Self {
53            Self { value: 3 }
54        }
55
56        pub fn abort() -> Self {
57            Self { value: 4 }
58        }
59
60        pub fn can_skip() -> Self {
61            Self { value: 5 }
62        }
63
64        pub fn r#continue() -> Self {
65            Self { value: 6 }
66        }
67
68        pub fn error() -> Self {
69            Self { value: 7 }
70        }
71    }
72}
73
74#[cfg(feature = "app-talk3_d-talktag-types")]
75pub use __types::*;
76
77#[cfg(feature = "app-talk3_d-talktag")]
78pub trait ITalkTagMethods: ITalkTag {
79    #[doc = "`Initialize(crate::app::talk3_d::talkptr::TalkPtr)` overload"]
80    fn initialize(self, talk_ptr: impl ::core::convert::Into<crate::app::talk3_d::talkptr::TalkPtr>) -> () {
81        unsafe {
82            let __receiver = <TalkTag as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            {
84                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
85                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
86                    panic!(
87                        "unity: virtual slot {}
88 out of range (vtable len {}
89) on the runtime class behind {}
90 (method `{}
91`)",
92                        4usize,
93                        __vt.len(),
94                        <TalkTag as ::unity::ClassIdentity>::NAME,
95                        "Initialize",
96                    )
97                });
98                let __inner: extern "C" fn(TalkTag, crate::app::talk3_d::talkptr::TalkPtr, ::unity::OptionalMethod) -> () =
99                    ::core::mem::transmute(__vi.method_ptr);
100                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
101                __inner(__receiver, ::core::convert::Into::into(talk_ptr), __mi)
102            }
103        }
104    }
105    #[doc = "`Execute()` overload"]
106    fn execute(self) -> () {
107        unsafe {
108            let __receiver = <TalkTag as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109            {
110                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
111                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
112                    panic!(
113                        "unity: virtual slot {}
114 out of range (vtable len {}
115) on the runtime class behind {}
116 (method `{}
117`)",
118                        5usize,
119                        __vt.len(),
120                        <TalkTag as ::unity::ClassIdentity>::NAME,
121                        "Execute",
122                    )
123                });
124                let __inner: extern "C" fn(TalkTag, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
125                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
126                __inner(__receiver, __mi)
127            }
128        }
129    }
130    #[doc = "`ExecuteForCharacterPreLoad()` overload"]
131    fn execute_for_character_pre_load(self) -> () {
132        unsafe {
133            let __receiver = <TalkTag as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134            {
135                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
136                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
137                    panic!(
138                        "unity: virtual slot {}
139 out of range (vtable len {}
140) on the runtime class behind {}
141 (method `{}
142`)",
143                        6usize,
144                        __vt.len(),
145                        <TalkTag as ::unity::ClassIdentity>::NAME,
146                        "ExecuteForCharacterPreLoad",
147                    )
148                });
149                let __inner: extern "C" fn(TalkTag, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
150                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
151                __inner(__receiver, __mi)
152            }
153        }
154    }
155    #[doc = "`NeedFadeWait()` overload"]
156    fn need_fade_wait(self) -> bool {
157        unsafe {
158            let __receiver = <TalkTag as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159            {
160                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
161                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
162                    panic!(
163                        "unity: virtual slot {}
164 out of range (vtable len {}
165) on the runtime class behind {}
166 (method `{}
167`)",
168                        7usize,
169                        __vt.len(),
170                        <TalkTag as ::unity::ClassIdentity>::NAME,
171                        "NeedFadeWait",
172                    )
173                });
174                let __inner: extern "C" fn(TalkTag, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
175                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
176                __inner(__receiver, __mi)
177            }
178        }
179    }
180    #[doc = "`GetResult()` overload"]
181    fn get_result(self) -> crate::app::talk3_d::talktag::TalkTag_Result {
182        unsafe {
183            let __receiver = <TalkTag as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
184            {
185                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
186                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
187                    panic!(
188                        "unity: virtual slot {}
189 out of range (vtable len {}
190) on the runtime class behind {}
191 (method `{}
192`)",
193                        8usize,
194                        __vt.len(),
195                        <TalkTag as ::unity::ClassIdentity>::NAME,
196                        "GetResult",
197                    )
198                });
199                let __inner: extern "C" fn(TalkTag, ::unity::OptionalMethod) -> crate::app::talk3_d::talktag::TalkTag_Result =
200                    ::core::mem::transmute(__vi.method_ptr);
201                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
202                __inner(__receiver, __mi)
203            }
204        }
205    }
206    #[doc = "`GetResultForHeadText()` overload"]
207    fn get_result_for_head_text(self) -> crate::app::talk3_d::talktag::TalkTag_Result {
208        unsafe {
209            let __receiver = <TalkTag as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
210            {
211                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
212                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
213                    panic!(
214                        "unity: virtual slot {}
215 out of range (vtable len {}
216) on the runtime class behind {}
217 (method `{}
218`)",
219                        9usize,
220                        __vt.len(),
221                        <TalkTag as ::unity::ClassIdentity>::NAME,
222                        "GetResultForHeadText",
223                    )
224                });
225                let __inner: extern "C" fn(TalkTag, ::unity::OptionalMethod) -> crate::app::talk3_d::talktag::TalkTag_Result =
226                    ::core::mem::transmute(__vi.method_ptr);
227                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
228                __inner(__receiver, __mi)
229            }
230        }
231    }
232    #[doc = "`.ctor()` overload"]
233    fn ctor(self) -> () {
234        unsafe {
235            let __receiver = <TalkTag as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
236            ::unity::il2cpp_call!((::unity::module_base()+0x21d8670usize)as*mut u8,();
237(TalkTag)__receiver)
238        }
239    }
240}
241
242#[cfg(feature = "app-talk3_d-talktag")]
243impl<__T: ITalkTag> ITalkTagMethods for __T {}
244
245#[cfg(feature = "app-talk3_d-talktag")]
246impl TalkTag {
247    pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
249    }
250
251    pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
253    }
254
255    pub fn execute_for_character_pre_load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
257    }
258
259    pub fn need_fade_wait_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
261    }
262
263    pub fn get_result_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
265    }
266
267    pub fn get_result_for_head_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
269    }
270
271    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
273    }
274}
275
276#[cfg(feature = "app-talk3_d-talktag")]
277impl TalkTag {
278    #[doc = "Direct (non-virtual) call to `TalkTag`'s own `Initialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
279    pub unsafe fn initialize(this: impl ::core::convert::Into<::unity::IlInstance>, talk_ptr: crate::app::talk3_d::talkptr::TalkPtr) -> () {
280        let __mi = Self::initialize_method_info();
281        let __inner: extern "C" fn(::unity::IlInstance, crate::app::talk3_d::talkptr::TalkPtr, ::unity::OptionalMethod) -> () =
282            ::core::mem::transmute(__mi.method_ptr);
283        __inner(this.into(), talk_ptr, ::core::option::Option::None)
284    }
285
286    #[doc = "Direct (non-virtual) call to `TalkTag`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
287    pub unsafe fn execute(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
288        let __mi = Self::execute_method_info();
289        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
290        __inner(this.into(), ::core::option::Option::None)
291    }
292
293    #[doc = "Direct (non-virtual) call to `TalkTag`'s own `ExecuteForCharacterPreLoad`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
294    pub unsafe fn execute_for_character_pre_load(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
295        let __mi = Self::execute_for_character_pre_load_method_info();
296        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
297        __inner(this.into(), ::core::option::Option::None)
298    }
299
300    #[doc = "Direct (non-virtual) call to `TalkTag`'s own `NeedFadeWait`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
301    pub unsafe fn need_fade_wait(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
302        let __mi = Self::need_fade_wait_method_info();
303        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
304        __inner(this.into(), ::core::option::Option::None)
305    }
306
307    #[doc = "Direct (non-virtual) call to `TalkTag`'s own `GetResult`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
308    pub unsafe fn get_result(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::talk3_d::talktag::TalkTag_Result {
309        let __mi = Self::get_result_method_info();
310        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::talk3_d::talktag::TalkTag_Result =
311            ::core::mem::transmute(__mi.method_ptr);
312        __inner(this.into(), ::core::option::Option::None)
313    }
314
315    #[doc = "Direct (non-virtual) call to `TalkTag`'s own `GetResultForHeadText`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
316    pub unsafe fn get_result_for_head_text(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::talk3_d::talktag::TalkTag_Result {
317        let __mi = Self::get_result_for_head_text_method_info();
318        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::talk3_d::talktag::TalkTag_Result =
319            ::core::mem::transmute(__mi.method_ptr);
320        __inner(this.into(), ::core::option::Option::None)
321    }
322}
323
324#[cfg(feature = "app-talk3_d-talktag")]
325impl TalkTag {
326    #[doc = "`.ctor()` — no args"]
327    pub fn new() -> Self {
328        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
329            panic!(
330                "{}
331::{}
332 failed to instantiate",
333                ::core::stringify!(TalkTag),
334                ::core::stringify!(new),
335            )
336        });
337        <Self as ITalkTagMethods>::ctor(this);
338        this
339    }
340}
341
342#[cfg(feature = "app-talk3_d-talktag")]
343#[doc(hidden)]
344pub mod prelude {
345    pub use super::{ITalkTag, ITalkTagMethods, TalkTag, TalkTag_Result};
346    #[cfg(feature = "system-object")]
347    pub use crate::system::object::IObjectMethods;
348    #[cfg(feature = "system-enum")]
349    pub use crate::system::r#enum::IEnumMethods;
350    #[cfg(feature = "system-valuetype")]
351    pub use crate::system::valuetype::IValueTypeMethods;
352    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
353}