1#[cfg(feature = "app-account-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::procinst::{IProcInst, ProcInst},
10 system::{
11 delegate::{Delegate, IDelegate},
12 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
13 object::{IObject, Object},
14 r#enum::{Enum, IEnum},
15 valuetype::{IValueType, ValueType},
16 },
17 };
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/account/Account.md"))]
20 #[::unity::class(namespace = "App", name = "Account")]
21 #[parent(crate::system::object::Object)]
22 pub struct Account {
23 #[static_field]
24 #[rename(name = "s_IsNsaValid")]
25 pub s_is_nsa_valid: bool,
26 #[static_field]
27 #[rename(name = "s_NsaIdTokenCache")]
28 pub s_nsa_id_token_cache: ::unity::Array<u8>,
29 }
30
31 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/account/Account_SetupNsaSequence.md"))]
32 #[::unity::class(namespace = "App", name = "Account.SetupNsaSequence")]
33 #[parent(crate::app::procinst::ProcInst)]
34 pub struct Account_SetupNsaSequence {
35 #[offset(112)]
36 #[rename(name = "m_IsShowError")]
37 pub m_is_show_error: bool,
38 #[offset(120)]
39 #[rename(name = "m_ResultFunc")]
40 pub m_result_func: crate::app::account::Account_SetupNsaResultFunction,
41 }
42
43 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/account/Account_SetupNsaResult.md"))]
44 #[repr(C)]
45 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
46 pub struct Account_SetupNsaResult {
47 pub value: i32,
48 }
49 impl ::unity::ClassIdentity for Account_SetupNsaResult {
50 const NAME: &'static str = "Account.SetupNsaResult";
51 const NAMESPACE: &'static str = "App";
52
53 fn class() -> ::unity::Class {
54 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
55 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
56 }
57 }
58 impl ::unity::IlType for Account_SetupNsaResult {
59 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
60 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
61 }
62 }
63 impl Account_SetupNsaResult {
64 pub fn failed() -> Self {
65 Self { value: 0 }
66 }
67
68 pub fn cancelled() -> Self {
69 Self { value: 1 }
70 }
71
72 pub fn succeeded() -> Self {
73 Self { value: 2 }
74 }
75 }
76
77 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/account/Account_SetupNsaSequence_Label.md"))]
78 #[repr(C)]
79 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
80 pub struct Account_SetupNsaSequence_Label {
81 pub value: i32,
82 }
83 impl ::unity::ClassIdentity for Account_SetupNsaSequence_Label {
84 const NAME: &'static str = "Account.SetupNsaSequence.Label";
85 const NAMESPACE: &'static str = "App";
86
87 fn class() -> ::unity::Class {
88 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
89 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
90 }
91 }
92 impl ::unity::IlType for Account_SetupNsaSequence_Label {
93 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
94 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
95 }
96 }
97 impl Account_SetupNsaSequence_Label {
98 pub fn ensure() -> Self {
99 Self { value: 0 }
100 }
101
102 pub fn ensure_id_token_cache() -> Self {
103 Self { value: 1 }
104 }
105
106 pub fn error() -> Self {
107 Self { value: 2 }
108 }
109
110 pub fn show_error() -> Self {
111 Self { value: 3 }
112 }
113
114 pub fn cancel() -> Self {
115 Self { value: 4 }
116 }
117
118 pub fn end() -> Self {
119 Self { value: 5 }
120 }
121 }
122
123 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/account/Account_SetupNsaResultFunction.md"))]
124 #[::unity::class(namespace = "App", name = "Account.SetupNsaResultFunction")]
125 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
126 pub struct Account_SetupNsaResultFunction {}
127}
128
129#[cfg(feature = "app-account-types")]
130pub use __types::*;
131
132#[cfg(feature = "app-account")]
133impl Account {
134 #[doc = "`Initialize()` overload"]
135 pub fn initialize() -> () {
136 unsafe {
137 ::unity::il2cpp_call!((::unity::module_base()+0x27c5ad0usize)as*mut u8,();
138 )
139 }
140 }
141
142 #[doc = "`SetupNsa(crate::app::procinst::ProcInst, bool, crate::app::account::Account_SetupNsaResultFunction)` overload"]
143 pub fn setup_nsa(
144 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
145 is_show_error: impl ::core::convert::Into<bool>,
146 result_func: impl ::core::convert::Into<crate::app::account::Account_SetupNsaResultFunction>,
147 ) -> () {
148 unsafe {
149 ::unity::il2cpp_call!((::unity::module_base()+0x27c5be0usize)as*mut u8,();
150(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(bool)::core::convert::Into::into(is_show_error),(crate::app::account::Account_SetupNsaResultFunction)::core::convert::Into::into(result_func))
151 }
152 }
153
154 #[doc = "`IsUserValid()` overload"]
155 pub fn is_user_valid() -> bool {
156 unsafe {
157 ::unity::il2cpp_call!((::unity::module_base()+0x27c5bf0usize)as*mut u8,bool;
158 )
159 }
160 }
161
162 #[doc = "`IsNsaValid()` overload"]
163 pub fn is_nsa_valid() -> bool {
164 unsafe {
165 ::unity::il2cpp_call!((::unity::module_base()+0x27c5c60usize)as*mut u8,bool;
166 )
167 }
168 }
169
170 #[doc = "`GetNickname()` overload"]
171 pub fn get_nickname() -> ::unity::Il2CppString {
172 unsafe {
173 ::unity::il2cpp_call!((::unity::module_base()+0x27c5cd0usize)as*mut u8, ::unity::Il2CppString;
174 )
175 }
176 }
177
178 #[doc = "`get_NsaIdTokenCache()` overload"]
179 pub fn get_nsa_id_token_cache() -> ::unity::Array<u8> {
180 unsafe {
181 ::unity::il2cpp_call!((::unity::module_base()+0x27c60b0usize)as*mut u8, ::unity::Array<u8> ;
182 )
183 }
184 }
185
186 #[doc = "`.cctor()` overload"]
187 pub fn cctor() -> () {
188 unsafe {
189 ::unity::il2cpp_call!((::unity::module_base()+0x27c6120usize)as*mut u8,();
190 )
191 }
192 }
193}
194
195#[cfg(feature = "app-account")]
196impl Account {
197 pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
199 }
200
201 pub fn setup_nsa_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
203 }
204
205 pub fn is_user_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
207 }
208
209 pub fn is_nsa_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
211 }
212
213 pub fn get_nickname_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
215 }
216
217 pub fn get_nsa_id_token_cache_method_info() -> &'static ::unity::il2cpp::MethodInfo {
218 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
219 }
220
221 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
222 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
223 }
224}
225
226#[cfg(feature = "app-account")]
227impl Account_SetupNsaSequence {
228 #[doc = "`CreateBind(crate::app::procinst::ProcInst, bool, crate::app::account::Account_SetupNsaResultFunction)` overload"]
229 pub fn create_bind(
230 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
231 is_show_error: impl ::core::convert::Into<bool>,
232 result_func: impl ::core::convert::Into<crate::app::account::Account_SetupNsaResultFunction>,
233 ) -> () {
234 unsafe {
235 ::unity::il2cpp_call!((::unity::module_base()+0x2906f30usize)as*mut u8,();
236(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(bool)::core::convert::Into::into(is_show_error),(crate::app::account::Account_SetupNsaResultFunction)::core::convert::Into::into(result_func))
237 }
238 }
239}
240
241#[cfg(feature = "app-account")]
242pub trait IAccount_SetupNsaSequenceMethods: IAccount_SetupNsaSequence {
243 #[doc = "`.ctor(bool, crate::app::account::Account_SetupNsaResultFunction)` overload"]
244 fn ctor(
245 self,
246 is_show_error: impl ::core::convert::Into<bool>,
247 result_func: impl ::core::convert::Into<crate::app::account::Account_SetupNsaResultFunction>,
248 ) -> () {
249 unsafe {
250 let __receiver =
251 <Account_SetupNsaSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
252 ::unity::il2cpp_call!((::unity::module_base()+0x2906780usize)as*mut u8,();
253(Account_SetupNsaSequence)__receiver,(bool)::core::convert::Into::into(is_show_error),(crate::app::account::Account_SetupNsaResultFunction)::core::convert::Into::into(result_func))
254 }
255 }
256 #[doc = "`Ensure()` overload"]
257 fn ensure(self) -> () {
258 unsafe {
259 let __receiver =
260 <Account_SetupNsaSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
261 ::unity::il2cpp_call!((::unity::module_base()+0x2906840usize)as*mut u8,();
262(Account_SetupNsaSequence)__receiver)
263 }
264 }
265 #[doc = "`EnsureIdTokenCache()` overload"]
266 fn ensure_id_token_cache(self) -> () {
267 unsafe {
268 let __receiver =
269 <Account_SetupNsaSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
270 ::unity::il2cpp_call!((::unity::module_base()+0x2906a20usize)as*mut u8,();
271(Account_SetupNsaSequence)__receiver)
272 }
273 }
274 #[doc = "`EnsureIdTokenCacheTick()` overload"]
275 fn ensure_id_token_cache_tick(self) -> () {
276 unsafe {
277 let __receiver =
278 <Account_SetupNsaSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
279 ::unity::il2cpp_call!((::unity::module_base()+0x2906b50usize)as*mut u8,();
280(Account_SetupNsaSequence)__receiver)
281 }
282 }
283 #[doc = "`Success()` overload"]
284 fn success(self) -> () {
285 unsafe {
286 let __receiver =
287 <Account_SetupNsaSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
288 ::unity::il2cpp_call!((::unity::module_base()+0x2906d30usize)as*mut u8,();
289(Account_SetupNsaSequence)__receiver)
290 }
291 }
292 #[doc = "`CheckError()` overload"]
293 fn check_error(self) -> () {
294 unsafe {
295 let __receiver =
296 <Account_SetupNsaSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
297 ::unity::il2cpp_call!((::unity::module_base()+0x2906db0usize)as*mut u8,();
298(Account_SetupNsaSequence)__receiver)
299 }
300 }
301 #[doc = "`ShowError()` overload"]
302 fn show_error(self) -> () {
303 unsafe {
304 let __receiver =
305 <Account_SetupNsaSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
306 ::unity::il2cpp_call!((::unity::module_base()+0x2906ee0usize)as*mut u8,();
307(Account_SetupNsaSequence)__receiver)
308 }
309 }
310 #[doc = "`Cancel()` overload"]
311 fn cancel(self) -> () {
312 unsafe {
313 let __receiver =
314 <Account_SetupNsaSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
315 ::unity::il2cpp_call!((::unity::module_base()+0x2906f20usize)as*mut u8,();
316(Account_SetupNsaSequence)__receiver)
317 }
318 }
319}
320
321#[cfg(feature = "app-account")]
322impl<__T: IAccount_SetupNsaSequence> IAccount_SetupNsaSequenceMethods for __T {}
323
324#[cfg(feature = "app-account")]
325impl Account_SetupNsaSequence {
326 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
327 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
328 }
329
330 pub fn ensure_method_info() -> &'static ::unity::il2cpp::MethodInfo {
331 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
332 }
333
334 pub fn ensure_id_token_cache_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
336 }
337
338 pub fn ensure_id_token_cache_tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
339 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
340 }
341
342 pub fn success_method_info() -> &'static ::unity::il2cpp::MethodInfo {
343 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
344 }
345
346 pub fn check_error_method_info() -> &'static ::unity::il2cpp::MethodInfo {
347 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
348 }
349
350 pub fn show_error_method_info() -> &'static ::unity::il2cpp::MethodInfo {
351 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
352 }
353
354 pub fn cancel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
355 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
356 }
357
358 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
359 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
360 }
361}
362
363#[cfg(feature = "app-account")]
364impl Account_SetupNsaSequence {
365 #[doc = "`.ctor(bool, crate::app::account::Account_SetupNsaResultFunction)` — overload selector"]
366 pub fn new(is_show_error: bool, result_func: crate::app::account::Account_SetupNsaResultFunction) -> Self {
367 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
368 panic!(
369 "{}
370::{}
371 failed to instantiate",
372 ::core::stringify!(Account_SetupNsaSequence),
373 ::core::stringify!(new),
374 )
375 });
376 <Self as IAccount_SetupNsaSequenceMethods>::ctor(this, is_show_error, result_func);
377 this
378 }
379}
380
381#[cfg(feature = "app-account")]
382pub trait IAccount_SetupNsaResultFunctionMethods: IAccount_SetupNsaResultFunction {
383 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
384 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
385 unsafe {
386 let __receiver =
387 <Account_SetupNsaResultFunction as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
388 ::unity::il2cpp_call!((::unity::module_base()+0x2906460usize)as*mut u8,();
389(Account_SetupNsaResultFunction)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
390 }
391 }
392 #[doc = "`Invoke(crate::app::account::Account_SetupNsaResult)` overload"]
393 fn invoke(self, result: impl ::core::convert::Into<crate::app::account::Account_SetupNsaResult>) -> () {
394 unsafe {
395 let __receiver =
396 <Account_SetupNsaResultFunction as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
397 {
398 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
399 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
400 panic!(
401 "unity: virtual slot {}
402 out of range (vtable len {}
403) on the runtime class behind {}
404 (method `{}
405`)",
406 13usize,
407 __vt.len(),
408 <Account_SetupNsaResultFunction as ::unity::ClassIdentity>::NAME,
409 "Invoke",
410 )
411 });
412 let __inner: extern "C" fn(
413 Account_SetupNsaResultFunction,
414 crate::app::account::Account_SetupNsaResult,
415 ::unity::OptionalMethod,
416 ) -> () = ::core::mem::transmute(__vi.method_ptr);
417 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
418 __inner(__receiver, ::core::convert::Into::into(result), __mi)
419 }
420 }
421 }
422}
423
424#[cfg(feature = "app-account")]
425impl<__T: IAccount_SetupNsaResultFunction> IAccount_SetupNsaResultFunctionMethods for __T {}
426
427#[cfg(feature = "app-account")]
428impl Account_SetupNsaResultFunction {
429 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
430 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
431 }
432
433 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
434 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
435 }
436}
437
438#[cfg(feature = "app-account")]
439impl Account_SetupNsaResultFunction {
440 #[doc = "Direct (non-virtual) call to `Account_SetupNsaResultFunction`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
441 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, result: crate::app::account::Account_SetupNsaResult) -> () {
442 let __mi = Self::invoke_method_info();
443 let __inner: extern "C" fn(::unity::IlInstance, crate::app::account::Account_SetupNsaResult, ::unity::OptionalMethod) -> () =
444 ::core::mem::transmute(__mi.method_ptr);
445 __inner(this.into(), result, ::core::option::Option::None)
446 }
447}
448
449#[cfg(feature = "app-account")]
450impl Account_SetupNsaResultFunction {
451 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
452 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
453 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
454 panic!(
455 "{}
456::{}
457 failed to instantiate",
458 ::core::stringify!(Account_SetupNsaResultFunction),
459 ::core::stringify!(new),
460 )
461 });
462 <Self as IAccount_SetupNsaResultFunctionMethods>::ctor(this, object, method);
463 this
464 }
465}
466
467#[cfg(feature = "app-account")]
468#[doc(hidden)]
469pub mod prelude {
470 pub use super::{
471 Account, Account_SetupNsaResult, Account_SetupNsaResultFunction, Account_SetupNsaSequence, Account_SetupNsaSequence_Label, IAccount,
472 IAccount_SetupNsaResultFunction, IAccount_SetupNsaResultFunctionMethods, IAccount_SetupNsaSequence, IAccount_SetupNsaSequenceMethods,
473 };
474 #[cfg(feature = "app-procinst")]
475 pub use crate::app::procinst::IProcInstMethods;
476 #[cfg(feature = "system-delegate")]
477 pub use crate::system::delegate::IDelegateMethods;
478 #[cfg(feature = "system-multicastdelegate")]
479 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
480 #[cfg(feature = "system-object")]
481 pub use crate::system::object::IObjectMethods;
482 #[cfg(feature = "system-enum")]
483 pub use crate::system::r#enum::IEnumMethods;
484 #[cfg(feature = "system-valuetype")]
485 pub use crate::system::valuetype::IValueTypeMethods;
486 pub use crate::{
487 app::procinst::IProcInst,
488 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject, r#enum::IEnum, valuetype::IValueType},
489 };
490}