engage/generated/app/talk3_d/
characterfactoryasync_2.rs1#[cfg(feature = "app-talk3_d-characterfactoryasync_2-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 delegate::{Delegate, IDelegate},
10 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
11 object::{IObject, Object},
12 valuetype::{IValueType, ValueType},
13 };
14
15 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/talk3_d/characterfactoryasync_2/CharacterFactoryAsync_UnitStatusScope.md"))]
16 #[repr(C)]
17 #[derive(::core::clone::Clone, ::core::marker::Copy)]
18 pub struct CharacterFactoryAsync_UnitStatusScope {
19 pub m_unit: crate::app::unit::Unit,
20 pub m_value: i64,
21 }
22 impl ::unity::ClassIdentity for CharacterFactoryAsync_UnitStatusScope {
23 const NAME: &'static str = "CharacterFactoryAsync.UnitStatusScope";
24 const NAMESPACE: &'static str = "App.Talk3D";
25
26 fn class() -> ::unity::Class {
27 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
28 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
29 }
30 }
31 impl ::unity::IlType for CharacterFactoryAsync_UnitStatusScope {
32 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
33 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
34 }
35 }
36
37 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/talk3_d/characterfactoryasync_2/CharacterFactoryAsync_2.md"))]
38 #[::unity::class(namespace = "App.Talk3D", name = "CharacterFactoryAsync")]
39 #[parent(crate::system::object::Object)]
40 pub struct CharacterFactoryAsync_2 {}
41
42 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/talk3_d/characterfactoryasync_2/CharacterFactoryAsync_onLoad.md"))]
43 #[::unity::class(namespace = "App.Talk3D", name = "CharacterFactoryAsync.onLoad")]
44 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
45 pub struct CharacterFactoryAsync_onLoad {}
46}
47
48#[cfg(feature = "app-talk3_d-characterfactoryasync_2-types")]
49pub use __types::*;
50
51#[cfg(feature = "app-talk3_d-characterfactoryasync_2")]
52impl CharacterFactoryAsync_UnitStatusScope {
53 #[doc = "`.ctor(crate::app::unit::Unit)` overload"]
54 pub fn ctor(&mut self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
55 unsafe {
56 ::unity::il2cpp_call!((::unity::module_base()+0x19c1a50usize)as*mut u8,();
57(*mut CharacterFactoryAsync_UnitStatusScope)self as*mut CharacterFactoryAsync_UnitStatusScope,(crate::app::unit::Unit)::core::convert::Into::into(unit))
58 }
59 }
60
61 #[doc = "`Dispose()` overload"]
62 pub fn dispose(&mut self) -> () {
63 unsafe {
64 ::unity::il2cpp_call!((::unity::module_base()+0x19c1a90usize)as*mut u8,();
65(*mut CharacterFactoryAsync_UnitStatusScope)self as*mut CharacterFactoryAsync_UnitStatusScope)
66 }
67 }
68}
69
70#[cfg(feature = "app-talk3_d-characterfactoryasync_2")]
71impl CharacterFactoryAsync_UnitStatusScope {
72 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
74 }
75
76 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
78 }
79}
80
81#[cfg(feature = "app-talk3_d-characterfactoryasync_2")]
82impl CharacterFactoryAsync_2 {
83 #[doc = "`CreateForTalk(::unity::Il2CppString, ::unity::Il2CppString, crate::unity_engine::gameobject::GameObject, bool)` overload"]
84 pub fn create_for_talk(
85 pid: impl ::core::convert::Into<::unity::Il2CppString>,
86 pid_for_create: impl ::core::convert::Into<::unity::Il2CppString>,
87 locator: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
88 use_talk_controller: impl ::core::convert::Into<bool>,
89 ) -> crate::combat::character::Character {
90 unsafe {
91 ::unity::il2cpp_call!((::unity::module_base()+0x27dd650usize)as*mut u8,crate::combat::character::Character;
92(::unity::Il2CppString)::core::convert::Into::into(pid),(::unity::Il2CppString)::core::convert::Into::into(pid_for_create),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(locator),(bool)::core::convert::Into::into(use_talk_controller))
93 }
94 }
95
96 #[doc = "`CreateForTalk(crate::app::unit::Unit, crate::unity_engine::gameobject::GameObject, bool)` overload"]
97 pub fn create_for_talk_2(
98 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
99 locator: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
100 use_talk_controller: impl ::core::convert::Into<bool>,
101 ) -> crate::combat::character::Character {
102 unsafe {
103 ::unity::il2cpp_call!((::unity::module_base()+0x27ddb20usize)as*mut u8,crate::combat::character::Character;
104(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(locator),(bool)::core::convert::Into::into(use_talk_controller))
105 }
106 }
107
108 #[doc = "`CreateForTalk(crate::app::godunit::GodUnit, crate::unity_engine::gameobject::GameObject, bool)` overload"]
109 pub fn create_for_talk_3(
110 god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
111 locator: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
112 use_talk_controller: impl ::core::convert::Into<bool>,
113 ) -> crate::combat::character::Character {
114 unsafe {
115 ::unity::il2cpp_call!((::unity::module_base()+0x27ddd70usize)as*mut u8,crate::combat::character::Character;
116(crate::app::godunit::GodUnit)::core::convert::Into::into(god_unit),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(locator),(bool)::core::convert::Into::into(use_talk_controller))
117 }
118 }
119
120 #[doc = "`CreateForUnitInfo(crate::app::unit::Unit, crate::unity_engine::gameobject::GameObject)` overload"]
121 pub fn create_for_unit_info(
122 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
123 locator: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
124 ) -> crate::combat::character::Character {
125 unsafe {
126 ::unity::il2cpp_call!((::unity::module_base()+0x27dde40usize)as*mut u8,crate::combat::character::Character;
127(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(locator))
128 }
129 }
130
131 #[doc = "`CreateForUnitInfo(crate::app::godunit::GodUnit, crate::unity_engine::gameobject::GameObject)` overload"]
132 pub fn create_for_unit_info_2(
133 god: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
134 locator: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
135 ) -> crate::combat::character::Character {
136 unsafe {
137 ::unity::il2cpp_call!((::unity::module_base()+0x27ddea0usize)as*mut u8,crate::combat::character::Character;
138(crate::app::godunit::GodUnit)::core::convert::Into::into(god),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(locator))
139 }
140 }
141
142 #[doc = "`CreateForUnitHub(crate::app::unit::Unit, crate::unity_engine::gameobject::GameObject)` overload"]
143 pub fn create_for_unit_hub(
144 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
145 locator: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
146 ) -> crate::combat::character::Character {
147 unsafe {
148 ::unity::il2cpp_call!((::unity::module_base()+0x27ddfd0usize)as*mut u8,crate::combat::character::Character;
149(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(locator))
150 }
151 }
152
153 #[doc = "`CreateForUnitRelay(crate::unity_engine::gameobject::GameObject, crate::app::persondata::PersonData, crate::app::jobdata::JobData, crate::app::unitedit::UnitEdit)` overload"]
154 pub fn create_for_unit_relay(
155 locator: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
156 person: impl ::core::convert::Into<crate::app::persondata::PersonData>,
157 job: impl ::core::convert::Into<crate::app::jobdata::JobData>,
158 edit: impl ::core::convert::Into<crate::app::unitedit::UnitEdit>,
159 ) -> crate::combat::character::Character {
160 unsafe {
161 ::unity::il2cpp_call!((::unity::module_base()+0x27de030usize)as*mut u8,crate::combat::character::Character;
162(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(locator),(crate::app::persondata::PersonData)::core::convert::Into::into(person),(crate::app::jobdata::JobData)::core::convert::Into::into(job),(crate::app::unitedit::UnitEdit)::core::convert::Into::into(edit))
163 }
164 }
165
166 #[doc = "`CreateForRingCleaning(crate::app::unit::Unit, crate::unity_engine::gameobject::GameObject)` overload"]
167 pub fn create_for_ring_cleaning(
168 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
169 locator: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
170 ) -> crate::combat::character::Character {
171 unsafe {
172 ::unity::il2cpp_call!((::unity::module_base()+0x27de080usize)as*mut u8,crate::combat::character::Character;
173(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(locator))
174 }
175 }
176
177 #[doc = "`CreateForRingCleaning(crate::app::godunit::GodUnit, crate::unity_engine::gameobject::GameObject)` overload"]
178 pub fn create_for_ring_cleaning_2(
179 god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
180 locator: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
181 ) -> crate::combat::character::Character {
182 unsafe {
183 ::unity::il2cpp_call!((::unity::module_base()+0x27de0e0usize)as*mut u8,crate::combat::character::Character;
184(crate::app::godunit::GodUnit)::core::convert::Into::into(god_unit),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(locator))
185 }
186 }
187
188 #[doc = "`CreateCommon(crate::app::assettable::AssetTable_Result, ::unity::Il2CppString, crate::unity_engine::gameobject::GameObject, bool, bool, bool)` overload"]
189 pub fn create_common(
190 result: impl ::core::convert::Into<crate::app::assettable::AssetTable_Result>,
191 pid: impl ::core::convert::Into<::unity::Il2CppString>,
192 locator: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
193 use_talk_controller: impl ::core::convert::Into<bool>,
194 invisible: impl ::core::convert::Into<bool>,
195 is_engage: impl ::core::convert::Into<bool>,
196 ) -> crate::combat::character::Character {
197 unsafe {
198 ::unity::il2cpp_call!((::unity::module_base()+0x27dd7b0usize)as*mut u8,crate::combat::character::Character;
199(crate::app::assettable::AssetTable_Result)::core::convert::Into::into(result),(::unity::Il2CppString)::core::convert::Into::into(pid),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(locator),(bool)::core::convert::Into::into(use_talk_controller),(bool)::core::convert::Into::into(invisible),(bool)::core::convert::Into::into(is_engage))
200 }
201 }
202
203 #[doc = "`SetupLookAt(crate::combat::character::Character, crate::unity_engine::gameobject::GameObject)` overload"]
204 pub fn setup_look_at(
205 chara: impl ::core::convert::Into<crate::combat::character::Character>,
206 locator: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
207 ) -> () {
208 unsafe {
209 ::unity::il2cpp_call!((::unity::module_base()+0x27de270usize)as*mut u8,();
210(crate::combat::character::Character)::core::convert::Into::into(chara),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(locator))
211 }
212 }
213
214 #[doc = "`Delete(crate::unity_engine::gameobject::GameObject)` overload"]
215 pub fn delete(locator: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
216 unsafe {
217 ::unity::il2cpp_call!((::unity::module_base()+0x27de660usize)as*mut u8,();
218(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(locator))
219 }
220 }
221}
222
223#[cfg(feature = "app-talk3_d-characterfactoryasync_2")]
224pub trait ICharacterFactoryAsync_2Methods: ICharacterFactoryAsync_2 {
225 #[doc = "`.ctor()` overload"]
226 fn ctor(self) -> () {
227 unsafe {
228 let __receiver =
229 <CharacterFactoryAsync_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
230 ::unity::il2cpp_call!((::unity::module_base()+0x27de800usize)as*mut u8,();
231(CharacterFactoryAsync_2)__receiver)
232 }
233 }
234}
235
236#[cfg(feature = "app-talk3_d-characterfactoryasync_2")]
237impl<__T: ICharacterFactoryAsync_2> ICharacterFactoryAsync_2Methods for __T {}
238
239#[cfg(feature = "app-talk3_d-characterfactoryasync_2")]
240impl CharacterFactoryAsync_2 {
241 pub fn create_for_talk_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
243 }
244
245 pub fn create_for_talk_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
247 }
248
249 pub fn create_for_talk_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
251 }
252
253 pub fn create_for_unit_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
254 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
255 }
256
257 pub fn create_for_unit_info_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
258 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
259 }
260
261 pub fn create_for_unit_hub_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
263 }
264
265 pub fn create_for_unit_relay_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
267 }
268
269 pub fn create_for_ring_cleaning_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
271 }
272
273 pub fn create_for_ring_cleaning_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
275 }
276
277 pub fn create_common_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
279 }
280
281 pub fn setup_look_at_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
283 }
284
285 pub fn delete_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
287 }
288
289 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
291 }
292}
293
294#[cfg(feature = "app-talk3_d-characterfactoryasync_2")]
295impl CharacterFactoryAsync_2 {
296 #[doc = "`.ctor()` — no args"]
297 pub fn new() -> Self {
298 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
299 panic!(
300 "{}
301::{}
302 failed to instantiate",
303 ::core::stringify!(CharacterFactoryAsync_2),
304 ::core::stringify!(new),
305 )
306 });
307 <Self as ICharacterFactoryAsync_2Methods>::ctor(this);
308 this
309 }
310}
311
312#[cfg(feature = "app-talk3_d-characterfactoryasync_2")]
313pub trait ICharacterFactoryAsync_onLoadMethods: ICharacterFactoryAsync_onLoad {
314 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
315 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
316 unsafe {
317 let __receiver =
318 <CharacterFactoryAsync_onLoad as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
319 ::unity::il2cpp_call!((::unity::module_base()+0x19c1aa0usize)as*mut u8,();
320(CharacterFactoryAsync_onLoad)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
321 }
322 }
323 #[doc = "`Invoke(crate::combat::character::Character)` overload"]
324 fn invoke(self, chara: impl ::core::convert::Into<crate::combat::character::Character>) -> () {
325 unsafe {
326 let __receiver =
327 <CharacterFactoryAsync_onLoad as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
328 {
329 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
330 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
331 panic!(
332 "unity: virtual slot {}
333 out of range (vtable len {}
334) on the runtime class behind {}
335 (method `{}
336`)",
337 13usize,
338 __vt.len(),
339 <CharacterFactoryAsync_onLoad as ::unity::ClassIdentity>::NAME,
340 "Invoke",
341 )
342 });
343 let __inner: extern "C" fn(CharacterFactoryAsync_onLoad, crate::combat::character::Character, ::unity::OptionalMethod) -> () =
344 ::core::mem::transmute(__vi.method_ptr);
345 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
346 __inner(__receiver, ::core::convert::Into::into(chara), __mi)
347 }
348 }
349 }
350}
351
352#[cfg(feature = "app-talk3_d-characterfactoryasync_2")]
353impl<__T: ICharacterFactoryAsync_onLoad> ICharacterFactoryAsync_onLoadMethods for __T {}
354
355#[cfg(feature = "app-talk3_d-characterfactoryasync_2")]
356impl CharacterFactoryAsync_onLoad {
357 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
358 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
359 }
360
361 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
362 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
363 }
364}
365
366#[cfg(feature = "app-talk3_d-characterfactoryasync_2")]
367impl CharacterFactoryAsync_onLoad {
368 #[doc = "Direct (non-virtual) call to `CharacterFactoryAsync_onLoad`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
369 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, chara: crate::combat::character::Character) -> () {
370 let __mi = Self::invoke_method_info();
371 let __inner: extern "C" fn(::unity::IlInstance, crate::combat::character::Character, ::unity::OptionalMethod) -> () =
372 ::core::mem::transmute(__mi.method_ptr);
373 __inner(this.into(), chara, ::core::option::Option::None)
374 }
375}
376
377#[cfg(feature = "app-talk3_d-characterfactoryasync_2")]
378impl CharacterFactoryAsync_onLoad {
379 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
380 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
381 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
382 panic!(
383 "{}
384::{}
385 failed to instantiate",
386 ::core::stringify!(CharacterFactoryAsync_onLoad),
387 ::core::stringify!(new),
388 )
389 });
390 <Self as ICharacterFactoryAsync_onLoadMethods>::ctor(this, object, method);
391 this
392 }
393}
394
395#[cfg(feature = "app-talk3_d-characterfactoryasync_2")]
396#[doc(hidden)]
397pub mod prelude {
398 pub use super::{
399 CharacterFactoryAsync_2, CharacterFactoryAsync_UnitStatusScope, CharacterFactoryAsync_onLoad, ICharacterFactoryAsync_2,
400 ICharacterFactoryAsync_2Methods, ICharacterFactoryAsync_onLoad, ICharacterFactoryAsync_onLoadMethods,
401 };
402 #[cfg(feature = "system-delegate")]
403 pub use crate::system::delegate::IDelegateMethods;
404 #[cfg(feature = "system-multicastdelegate")]
405 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
406 #[cfg(feature = "system-object")]
407 pub use crate::system::object::IObjectMethods;
408 #[cfg(feature = "system-valuetype")]
409 pub use crate::system::valuetype::IValueTypeMethods;
410 pub use crate::system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject, valuetype::IValueType};
411}