engage/generated/app/
nexloginsequence.rs1#[cfg(feature = "app-nexloginsequence-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 object::{IObject, Object},
12 r#enum::{Enum, IEnum},
13 valuetype::{IValueType, ValueType},
14 },
15 };
16
17 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/nexloginsequence/NexLoginSequence_Result.md"))]
18 #[repr(C)]
19 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
20 pub struct NexLoginSequence_Result {
21 pub value: i32,
22 }
23 impl ::unity::ClassIdentity for NexLoginSequence_Result {
24 const NAME: &'static str = "NexLoginSequence.Result";
25 const NAMESPACE: &'static str = "App";
26
27 fn class() -> ::unity::Class {
28 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
29 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
30 }
31 }
32 impl ::unity::IlType for NexLoginSequence_Result {
33 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35 }
36 }
37 impl NexLoginSequence_Result {
38 pub fn failed() -> Self {
39 Self { value: 0 }
40 }
41
42 pub fn cancelled() -> Self {
43 Self { value: 1 }
44 }
45
46 pub fn succeeded() -> Self {
47 Self { value: 2 }
48 }
49 }
50
51 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/nexloginsequence/NexLoginSequence_Label.md"))]
52 #[repr(C)]
53 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
54 pub struct NexLoginSequence_Label {
55 pub value: i32,
56 }
57 impl ::unity::ClassIdentity for NexLoginSequence_Label {
58 const NAME: &'static str = "NexLoginSequence.Label";
59 const NAMESPACE: &'static str = "App";
60
61 fn class() -> ::unity::Class {
62 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
63 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
64 }
65 }
66 impl ::unity::IlType for NexLoginSequence_Label {
67 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
68 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
69 }
70 }
71 impl NexLoginSequence_Label {
72 pub fn setup_nsa() -> Self {
73 Self { value: 0 }
74 }
75
76 pub fn login() -> Self {
77 Self { value: 1 }
78 }
79
80 pub fn get_integer_settings() -> Self {
81 Self { value: 2 }
82 }
83
84 pub fn succeeded() -> Self {
85 Self { value: 3 }
86 }
87
88 pub fn cancelled() -> Self {
89 Self { value: 4 }
90 }
91
92 pub fn failed_without_error() -> Self {
93 Self { value: 5 }
94 }
95
96 pub fn error() -> Self {
97 Self { value: 6 }
98 }
99
100 pub fn error_and_cleanup() -> Self {
101 Self { value: 7 }
102 }
103
104 pub fn end() -> Self {
105 Self { value: 8 }
106 }
107 }
108
109 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/nexloginsequence/NexLoginSequence.md"))]
110 #[::unity::class(namespace = "App", name = "NexLoginSequence")]
111 #[parent(crate::app::procinst::ProcInst)]
112 pub struct NexLoginSequence {
113 #[offset(112)]
114 #[rename(name = "m_IsShowError")]
115 pub m_is_show_error: bool,
116 #[static_field]
117 #[rename(name = "s_LastResult")]
118 pub s_last_result: crate::app::nexloginsequence::NexLoginSequence_Result,
119 #[static_field]
120 #[rename(name = "s_IsGotIntegerSettings")]
121 pub s_is_got_integer_settings: bool,
122 }
123}
124
125#[cfg(feature = "app-nexloginsequence-types")]
126pub use __types::*;
127
128#[cfg(feature = "app-nexloginsequence")]
129impl NexLoginSequence {
130 #[doc = "`CreateBind(crate::app::procinst::ProcInst, bool)` overload"]
131 pub fn create_bind(super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>, is_show_error: impl ::core::convert::Into<bool>) -> () {
132 unsafe {
133 ::unity::il2cpp_call!((::unity::module_base()+0x1f11260usize)as*mut u8,();
134(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(bool)::core::convert::Into::into(is_show_error))
135 }
136 }
137
138 #[doc = "`get_LastResult()` overload"]
139 pub fn get_last_result() -> crate::app::nexloginsequence::NexLoginSequence_Result {
140 unsafe {
141 ::unity::il2cpp_call!((::unity::module_base()+0x1f157a0usize)as*mut u8,crate::app::nexloginsequence::NexLoginSequence_Result;
142 )
143 }
144 }
145
146 #[doc = "`.cctor()` overload"]
147 pub fn cctor() -> () {
148 unsafe {
149 ::unity::il2cpp_call!((::unity::module_base()+0x1f15810usize)as*mut u8,();
150 )
151 }
152 }
153}
154
155#[cfg(feature = "app-nexloginsequence")]
156pub trait INexLoginSequenceMethods: INexLoginSequence {
157 #[doc = "`.ctor(bool)` overload"]
158 fn ctor(self, is_show_error: impl ::core::convert::Into<bool>) -> () {
159 unsafe {
160 let __receiver = <NexLoginSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161 ::unity::il2cpp_call!((::unity::module_base()+0x1f14c70usize)as*mut u8,();
162(NexLoginSequence)__receiver,(bool)::core::convert::Into::into(is_show_error))
163 }
164 }
165 #[doc = "`OnCreate()` overload"]
166 fn on_create(self) -> () {
167 unsafe {
168 let __receiver = <NexLoginSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
169 {
170 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
171 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
172 panic!(
173 "unity: virtual slot {}
174 out of range (vtable len {}
175) on the runtime class behind {}
176 (method `{}
177`)",
178 9usize,
179 __vt.len(),
180 <NexLoginSequence as ::unity::ClassIdentity>::NAME,
181 "OnCreate",
182 )
183 });
184 let __inner: extern "C" fn(NexLoginSequence, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
185 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
186 __inner(__receiver, __mi)
187 }
188 }
189 }
190 #[doc = "`WaitAutoLogout()` overload"]
191 fn wait_auto_logout(self) -> () {
192 unsafe {
193 let __receiver = <NexLoginSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
194 ::unity::il2cpp_call!((::unity::module_base()+0x1f14d70usize)as*mut u8,();
195(NexLoginSequence)__receiver)
196 }
197 }
198 #[doc = "`InitializeNex()` overload"]
199 fn initialize_nex(self) -> () {
200 unsafe {
201 let __receiver = <NexLoginSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
202 ::unity::il2cpp_call!((::unity::module_base()+0x1f14db0usize)as*mut u8,();
203(NexLoginSequence)__receiver)
204 }
205 }
206 #[doc = "`SetupNetworkServiceAccount()` overload"]
207 fn setup_network_service_account(self) -> () {
208 unsafe {
209 let __receiver = <NexLoginSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
210 ::unity::il2cpp_call!((::unity::module_base()+0x1f15050usize)as*mut u8,();
211(NexLoginSequence)__receiver)
212 }
213 }
214 #[doc = "`LoginGameServer()` overload"]
215 fn login_game_server(self) -> () {
216 unsafe {
217 let __receiver = <NexLoginSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
218 ::unity::il2cpp_call!((::unity::module_base()+0x1f15120usize)as*mut u8,();
219(NexLoginSequence)__receiver)
220 }
221 }
222 #[doc = "`GetIntegerSettings()` overload"]
223 fn get_integer_settings(self) -> () {
224 unsafe {
225 let __receiver = <NexLoginSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
226 ::unity::il2cpp_call!((::unity::module_base()+0x1f15300usize)as*mut u8,();
227(NexLoginSequence)__receiver)
228 }
229 }
230 #[doc = "`ResultSucceeded()` overload"]
231 fn result_succeeded(self) -> () {
232 unsafe {
233 let __receiver = <NexLoginSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
234 ::unity::il2cpp_call!((::unity::module_base()+0x1f15460usize)as*mut u8,();
235(NexLoginSequence)__receiver)
236 }
237 }
238 #[doc = "`ResultCancelled()` overload"]
239 fn result_cancelled(self) -> () {
240 unsafe {
241 let __receiver = <NexLoginSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
242 ::unity::il2cpp_call!((::unity::module_base()+0x1f154d0usize)as*mut u8,();
243(NexLoginSequence)__receiver)
244 }
245 }
246 #[doc = "`ResultFailed()` overload"]
247 fn result_failed(self) -> () {
248 unsafe {
249 let __receiver = <NexLoginSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
250 ::unity::il2cpp_call!((::unity::module_base()+0x1f15540usize)as*mut u8,();
251(NexLoginSequence)__receiver)
252 }
253 }
254 #[doc = "`ShowError()` overload"]
255 fn show_error(self) -> () {
256 unsafe {
257 let __receiver = <NexLoginSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
258 ::unity::il2cpp_call!((::unity::module_base()+0x1f155b0usize)as*mut u8,();
259(NexLoginSequence)__receiver)
260 }
261 }
262 #[doc = "`Cleanup()` overload"]
263 fn cleanup(self) -> () {
264 unsafe {
265 let __receiver = <NexLoginSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
266 ::unity::il2cpp_call!((::unity::module_base()+0x1f156a0usize)as*mut u8,();
267(NexLoginSequence)__receiver)
268 }
269 }
270}
271
272#[cfg(feature = "app-nexloginsequence")]
273impl<__T: INexLoginSequence> INexLoginSequenceMethods for __T {}
274
275#[cfg(feature = "app-nexloginsequence")]
276impl NexLoginSequence {
277 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
279 }
280
281 pub fn on_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
283 }
284
285 pub fn wait_auto_logout_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
287 }
288
289 pub fn initialize_nex_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
291 }
292
293 pub fn setup_network_service_account_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
295 }
296
297 pub fn login_game_server_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
299 }
300
301 pub fn get_integer_settings_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
303 }
304
305 pub fn result_succeeded_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
307 }
308
309 pub fn result_cancelled_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
311 }
312
313 pub fn result_failed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
315 }
316
317 pub fn show_error_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
319 }
320
321 pub fn cleanup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
323 }
324
325 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
326 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
327 }
328
329 pub fn get_last_result_method_info() -> &'static ::unity::il2cpp::MethodInfo {
330 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
331 }
332
333 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
334 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
335 }
336}
337
338#[cfg(feature = "app-nexloginsequence")]
339impl NexLoginSequence {
340 #[doc = "Direct (non-virtual) call to `NexLoginSequence`'s own `OnCreate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
341 pub unsafe fn on_create(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
342 let __mi = Self::on_create_method_info();
343 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
344 __inner(this.into(), ::core::option::Option::None)
345 }
346}
347
348#[cfg(feature = "app-nexloginsequence")]
349impl NexLoginSequence {
350 #[doc = "`.ctor(bool)` — overload selector"]
351 pub fn new(is_show_error: bool) -> Self {
352 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
353 panic!(
354 "{}
355::{}
356 failed to instantiate",
357 ::core::stringify!(NexLoginSequence),
358 ::core::stringify!(new),
359 )
360 });
361 <Self as INexLoginSequenceMethods>::ctor(this, is_show_error);
362 this
363 }
364}
365
366#[cfg(feature = "app-nexloginsequence")]
367#[doc(hidden)]
368pub mod prelude {
369 pub use super::{INexLoginSequence, INexLoginSequenceMethods, NexLoginSequence, NexLoginSequence_Label, NexLoginSequence_Result};
370 #[cfg(feature = "app-procinst")]
371 pub use crate::app::procinst::IProcInstMethods;
372 #[cfg(feature = "system-object")]
373 pub use crate::system::object::IObjectMethods;
374 #[cfg(feature = "system-enum")]
375 pub use crate::system::r#enum::IEnumMethods;
376 #[cfg(feature = "system-valuetype")]
377 pub use crate::system::valuetype::IValueTypeMethods;
378 pub use crate::{
379 app::procinst::IProcInst,
380 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
381 };
382}