engage/generated/app/talk3_d/
talktagaddletter.rs1#[cfg(feature = "app-talk3_d-talktagaddletter-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::talk3_d::talktag::{ITalkTag, TalkTag},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/talk3_d/talktagaddletter/TalkTagAddLetter.md"))]
14 #[::unity::class(namespace = "App.Talk3D", name = "TalkTagAddLetter")]
15 #[parent(crate::app::talk3_d::talktag::TalkTag)]
16 pub struct TalkTagAddLetter {
17 #[offset(16)]
18 #[rename(name = "m_IsLineFeedEnable")]
19 pub m_is_line_feed_enable: bool,
20 #[offset(18)]
21 #[rename(name = "m_AddLetter")]
22 pub m_add_letter: u16,
23 #[offset(20)]
24 #[rename(name = "m_Result")]
25 pub m_result: crate::app::talk3_d::talktag::TalkTag_Result,
26 }
27}
28
29#[cfg(feature = "app-talk3_d-talktagaddletter-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-talk3_d-talktagaddletter")]
33pub trait ITalkTagAddLetterMethods: ITalkTagAddLetter {
34 #[doc = "`SetLetter(u16)` overload"]
35 fn set_letter(self, chr: impl ::core::convert::Into<u16>) -> () {
36 unsafe {
37 let __receiver = <TalkTagAddLetter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38 ::unity::il2cpp_call!((::unity::module_base()+0x21d8680usize)as*mut u8,();
39(TalkTagAddLetter)__receiver,(u16)::core::convert::Into::into(chr))
40 }
41 }
42 #[doc = "`ResetLineFeedEnable()` overload"]
43 fn reset_line_feed_enable(self) -> () {
44 unsafe {
45 let __receiver = <TalkTagAddLetter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46 ::unity::il2cpp_call!((::unity::module_base()+0x21d8690usize)as*mut u8,();
47(TalkTagAddLetter)__receiver)
48 }
49 }
50 #[doc = "`Execute()` overload"]
51 fn execute(self) -> () {
52 unsafe {
53 let __receiver = <TalkTagAddLetter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54 {
55 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
56 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
57 panic!(
58 "unity: virtual slot {}
59 out of range (vtable len {}
60) on the runtime class behind {}
61 (method `{}
62`)",
63 5usize,
64 __vt.len(),
65 <TalkTagAddLetter as ::unity::ClassIdentity>::NAME,
66 "Execute",
67 )
68 });
69 let __inner: extern "C" fn(TalkTagAddLetter, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
70 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
71 __inner(__receiver, __mi)
72 }
73 }
74 }
75 #[doc = "`ExecuteForCharacterPreLoad()` overload"]
76 fn execute_for_character_pre_load(self) -> () {
77 unsafe {
78 let __receiver = <TalkTagAddLetter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79 {
80 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
81 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
82 panic!(
83 "unity: virtual slot {}
84 out of range (vtable len {}
85) on the runtime class behind {}
86 (method `{}
87`)",
88 6usize,
89 __vt.len(),
90 <TalkTagAddLetter as ::unity::ClassIdentity>::NAME,
91 "ExecuteForCharacterPreLoad",
92 )
93 });
94 let __inner: extern "C" fn(TalkTagAddLetter, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
95 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
96 __inner(__receiver, __mi)
97 }
98 }
99 }
100 #[doc = "`GetResult()` overload"]
101 fn get_result(self) -> crate::app::talk3_d::talktag::TalkTag_Result {
102 unsafe {
103 let __receiver = <TalkTagAddLetter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104 {
105 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
106 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
107 panic!(
108 "unity: virtual slot {}
109 out of range (vtable len {}
110) on the runtime class behind {}
111 (method `{}
112`)",
113 8usize,
114 __vt.len(),
115 <TalkTagAddLetter as ::unity::ClassIdentity>::NAME,
116 "GetResult",
117 )
118 });
119 let __inner: extern "C" fn(TalkTagAddLetter, ::unity::OptionalMethod) -> crate::app::talk3_d::talktag::TalkTag_Result =
120 ::core::mem::transmute(__vi.method_ptr);
121 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
122 __inner(__receiver, __mi)
123 }
124 }
125 }
126 #[doc = "`GetResultForHeadText()` overload"]
127 fn get_result_for_head_text(self) -> crate::app::talk3_d::talktag::TalkTag_Result {
128 unsafe {
129 let __receiver = <TalkTagAddLetter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
130 {
131 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
132 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
133 panic!(
134 "unity: virtual slot {}
135 out of range (vtable len {}
136) on the runtime class behind {}
137 (method `{}
138`)",
139 9usize,
140 __vt.len(),
141 <TalkTagAddLetter as ::unity::ClassIdentity>::NAME,
142 "GetResultForHeadText",
143 )
144 });
145 let __inner: extern "C" fn(TalkTagAddLetter, ::unity::OptionalMethod) -> crate::app::talk3_d::talktag::TalkTag_Result =
146 ::core::mem::transmute(__vi.method_ptr);
147 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
148 __inner(__receiver, __mi)
149 }
150 }
151 }
152 #[doc = "`GetAddLetter()` overload"]
153 fn get_add_letter(self) -> u16 {
154 unsafe {
155 let __receiver = <TalkTagAddLetter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156 ::unity::il2cpp_call!((::unity::module_base()+0x21d8fe0usize)as*mut u8,u16;
157(TalkTagAddLetter)__receiver)
158 }
159 }
160 #[doc = "`NeedFadeWait()` overload"]
161 fn need_fade_wait(self) -> bool {
162 unsafe {
163 let __receiver = <TalkTagAddLetter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
164 {
165 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
166 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
167 panic!(
168 "unity: virtual slot {}
169 out of range (vtable len {}
170) on the runtime class behind {}
171 (method `{}
172`)",
173 7usize,
174 __vt.len(),
175 <TalkTagAddLetter as ::unity::ClassIdentity>::NAME,
176 "NeedFadeWait",
177 )
178 });
179 let __inner: extern "C" fn(TalkTagAddLetter, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
180 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
181 __inner(__receiver, __mi)
182 }
183 }
184 }
185 #[doc = "`.ctor()` overload"]
186 fn ctor(self) -> () {
187 unsafe {
188 let __receiver = <TalkTagAddLetter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189 ::unity::il2cpp_call!((::unity::module_base()+0x21d9020usize)as*mut u8,();
190(TalkTagAddLetter)__receiver)
191 }
192 }
193}
194
195#[cfg(feature = "app-talk3_d-talktagaddletter")]
196impl<__T: ITalkTagAddLetter> ITalkTagAddLetterMethods for __T {}
197
198#[cfg(feature = "app-talk3_d-talktagaddletter")]
199impl TalkTagAddLetter {
200 pub fn set_letter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
202 }
203
204 pub fn reset_line_feed_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
206 }
207
208 pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
210 }
211
212 pub fn execute_for_character_pre_load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
213 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
214 }
215
216 pub fn get_result_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
218 }
219
220 pub fn get_result_for_head_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
222 }
223
224 pub fn get_add_letter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
226 }
227
228 pub fn need_fade_wait_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
230 }
231
232 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
233 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
234 }
235}
236
237#[cfg(feature = "app-talk3_d-talktagaddletter")]
238impl TalkTagAddLetter {
239 #[doc = "Direct (non-virtual) call to `TalkTagAddLetter`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
240 pub unsafe fn execute(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
241 let __mi = Self::execute_method_info();
242 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
243 __inner(this.into(), ::core::option::Option::None)
244 }
245
246 #[doc = "Direct (non-virtual) call to `TalkTagAddLetter`'s own `ExecuteForCharacterPreLoad`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
247 pub unsafe fn execute_for_character_pre_load(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
248 let __mi = Self::execute_for_character_pre_load_method_info();
249 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
250 __inner(this.into(), ::core::option::Option::None)
251 }
252
253 #[doc = "Direct (non-virtual) call to `TalkTagAddLetter`'s own `GetResult`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
254 pub unsafe fn get_result(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::talk3_d::talktag::TalkTag_Result {
255 let __mi = Self::get_result_method_info();
256 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::talk3_d::talktag::TalkTag_Result =
257 ::core::mem::transmute(__mi.method_ptr);
258 __inner(this.into(), ::core::option::Option::None)
259 }
260
261 #[doc = "Direct (non-virtual) call to `TalkTagAddLetter`'s own `GetResultForHeadText`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
262 pub unsafe fn get_result_for_head_text(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::talk3_d::talktag::TalkTag_Result {
263 let __mi = Self::get_result_for_head_text_method_info();
264 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::talk3_d::talktag::TalkTag_Result =
265 ::core::mem::transmute(__mi.method_ptr);
266 __inner(this.into(), ::core::option::Option::None)
267 }
268
269 #[doc = "Direct (non-virtual) call to `TalkTagAddLetter`'s own `NeedFadeWait`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
270 pub unsafe fn need_fade_wait(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
271 let __mi = Self::need_fade_wait_method_info();
272 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
273 __inner(this.into(), ::core::option::Option::None)
274 }
275}
276
277#[cfg(feature = "app-talk3_d-talktagaddletter")]
278impl TalkTagAddLetter {
279 #[doc = "`.ctor()` — no args"]
280 pub fn new() -> Self {
281 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
282 panic!(
283 "{}
284::{}
285 failed to instantiate",
286 ::core::stringify!(TalkTagAddLetter),
287 ::core::stringify!(new),
288 )
289 });
290 <Self as ITalkTagAddLetterMethods>::ctor(this);
291 this
292 }
293}
294
295#[cfg(feature = "app-talk3_d-talktagaddletter")]
296#[doc(hidden)]
297pub mod prelude {
298 pub use super::{ITalkTagAddLetter, ITalkTagAddLetterMethods, TalkTagAddLetter};
299 #[cfg(feature = "app-talk3_d-talktag")]
300 pub use crate::app::talk3_d::talktag::ITalkTagMethods;
301 #[cfg(feature = "system-object")]
302 pub use crate::system::object::IObjectMethods;
303 pub use crate::{app::talk3_d::talktag::ITalkTag, system::object::IObject};
304}