Skip to main content

engage/generated/app/
tipsdata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-tipsdata-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            structbase::{IStructBase, StructBase},
11            structdata_1::{IStructData_1, StructData_1},
12            structtemplate_1::{IStructTemplate_1, StructTemplate_1},
13        },
14        system::{
15            object::{IObject, Object},
16            r#enum::{Enum, IEnum},
17            valuetype::{IValueType, ValueType},
18        },
19    };
20
21    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/tipsdata/TipsData_Allows.md"))]
22    #[repr(C)]
23    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
24    pub struct TipsData_Allows {
25        pub value: i32,
26    }
27    impl ::unity::ClassIdentity for TipsData_Allows {
28        const NAME: &'static str = "TipsData.Allows";
29        const NAMESPACE: &'static str = "App";
30
31        fn class() -> ::unity::Class {
32            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
33            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
34        }
35    }
36    impl ::unity::IlType for TipsData_Allows {
37        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
38            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
39        }
40    }
41    impl TipsData_Allows {
42        pub fn map() -> Self {
43            Self { value: 1 }
44        }
45
46        pub fn hub() -> Self {
47            Self { value: 2 }
48        }
49
50        pub fn gmap() -> Self {
51            Self { value: 4 }
52        }
53    }
54
55    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/tipsdata/TipsData.md"))]
56    #[::unity::class(namespace = "App", name = "TipsData")]
57    #[parent(crate::app::structdata_1::StructData_1<crate::app::tipsdata::TipsData>)]
58    pub struct TipsData {
59        #[offset(92)]
60        #[rename(name = "m_Kind")]
61        pub m_kind: crate::app::tipsdata::TipsData_Kinds,
62    }
63
64    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/tipsdata/TipsData_Kinds.md"))]
65    #[repr(C)]
66    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
67    pub struct TipsData_Kinds {
68        pub value: i32,
69    }
70    impl ::unity::ClassIdentity for TipsData_Kinds {
71        const NAME: &'static str = "TipsData.Kinds";
72        const NAMESPACE: &'static str = "App";
73
74        fn class() -> ::unity::Class {
75            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
76            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
77        }
78    }
79    impl ::unity::IlType for TipsData_Kinds {
80        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
81            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
82        }
83    }
84    impl TipsData_Kinds {
85        pub fn none() -> Self {
86            Self { value: 0 }
87        }
88
89        pub fn item() -> Self {
90            Self { value: 1 }
91        }
92
93        pub fn skill() -> Self {
94            Self { value: 2 }
95        }
96    }
97}
98
99#[cfg(feature = "app-tipsdata-types")]
100pub use __types::*;
101
102#[cfg(feature = "app-tipsdata")]
103impl TipsData {
104    #[doc = "`Load()` overload"]
105    pub fn load() -> () {
106        unsafe {
107            ::unity::il2cpp_call!((::unity::module_base()+0x21ebf80usize)as*mut u8,();
108            )
109        }
110    }
111}
112
113#[cfg(feature = "app-tipsdata")]
114pub trait ITipsDataMethods: ITipsData {
115    #[doc = "`get_ID()` overload"]
116    fn get_id(self) -> ::unity::Il2CppString {
117        unsafe {
118            let __receiver = <TipsData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119            ::unity::il2cpp_call!((::unity::module_base()+0x21ec030usize)as*mut u8, ::unity::Il2CppString;
120(TipsData)__receiver)
121        }
122    }
123    #[doc = "`set_ID(::unity::Il2CppString)` overload"]
124    fn set_id(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
125        unsafe {
126            let __receiver = <TipsData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127            ::unity::il2cpp_call!((::unity::module_base()+0x21ec040usize)as*mut u8,();
128(TipsData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
129        }
130    }
131    #[doc = "`get_Title()` overload"]
132    fn get_title(self) -> ::unity::Il2CppString {
133        unsafe {
134            let __receiver = <TipsData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135            ::unity::il2cpp_call!((::unity::module_base()+0x21ec050usize)as*mut u8, ::unity::Il2CppString;
136(TipsData)__receiver)
137        }
138    }
139    #[doc = "`set_Title(::unity::Il2CppString)` overload"]
140    fn set_title(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
141        unsafe {
142            let __receiver = <TipsData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143            ::unity::il2cpp_call!((::unity::module_base()+0x21ec060usize)as*mut u8,();
144(TipsData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
145        }
146    }
147    #[doc = "`get_Tips()` overload"]
148    fn get_tips(self) -> ::unity::Il2CppString {
149        unsafe {
150            let __receiver = <TipsData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151            ::unity::il2cpp_call!((::unity::module_base()+0x21ec070usize)as*mut u8, ::unity::Il2CppString;
152(TipsData)__receiver)
153        }
154    }
155    #[doc = "`set_Tips(::unity::Il2CppString)` overload"]
156    fn set_tips(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
157        unsafe {
158            let __receiver = <TipsData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159            ::unity::il2cpp_call!((::unity::module_base()+0x21ec080usize)as*mut u8,();
160(TipsData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
161        }
162    }
163    #[doc = "`get_OwnID()` overload"]
164    fn get_own_id(self) -> ::unity::Il2CppString {
165        unsafe {
166            let __receiver = <TipsData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167            ::unity::il2cpp_call!((::unity::module_base()+0x21ec090usize)as*mut u8, ::unity::Il2CppString;
168(TipsData)__receiver)
169        }
170    }
171    #[doc = "`set_OwnID(::unity::Il2CppString)` overload"]
172    fn set_own_id(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
173        unsafe {
174            let __receiver = <TipsData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175            ::unity::il2cpp_call!((::unity::module_base()+0x21ec0a0usize)as*mut u8,();
176(TipsData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
177        }
178    }
179    #[doc = "`get_IconInfoID()` overload"]
180    fn get_icon_info_id(self) -> ::unity::Il2CppString {
181        unsafe {
182            let __receiver = <TipsData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183            ::unity::il2cpp_call!((::unity::module_base()+0x21ec0b0usize)as*mut u8, ::unity::Il2CppString;
184(TipsData)__receiver)
185        }
186    }
187    #[doc = "`set_IconInfoID(::unity::Il2CppString)` overload"]
188    fn set_icon_info_id(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
189        unsafe {
190            let __receiver = <TipsData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191            ::unity::il2cpp_call!((::unity::module_base()+0x21ec0c0usize)as*mut u8,();
192(TipsData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
193        }
194    }
195    #[doc = "`get_Chapter()` overload"]
196    fn get_chapter(self) -> ::unity::Il2CppString {
197        unsafe {
198            let __receiver = <TipsData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
199            ::unity::il2cpp_call!((::unity::module_base()+0x21ec0d0usize)as*mut u8, ::unity::Il2CppString;
200(TipsData)__receiver)
201        }
202    }
203    #[doc = "`set_Chapter(::unity::Il2CppString)` overload"]
204    fn set_chapter(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
205        unsafe {
206            let __receiver = <TipsData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207            ::unity::il2cpp_call!((::unity::module_base()+0x21ec0e0usize)as*mut u8,();
208(TipsData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
209        }
210    }
211    #[doc = "`get_Variable()` overload"]
212    fn get_variable(self) -> ::unity::Il2CppString {
213        unsafe {
214            let __receiver = <TipsData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
215            ::unity::il2cpp_call!((::unity::module_base()+0x21ec0f0usize)as*mut u8, ::unity::Il2CppString;
216(TipsData)__receiver)
217        }
218    }
219    #[doc = "`set_Variable(::unity::Il2CppString)` overload"]
220    fn set_variable(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
221        unsafe {
222            let __receiver = <TipsData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
223            ::unity::il2cpp_call!((::unity::module_base()+0x21ec100usize)as*mut u8,();
224(TipsData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
225        }
226    }
227    #[doc = "`get_Allow()` overload"]
228    fn get_allow(self) -> crate::app::tipsdata::TipsData_Allows {
229        unsafe {
230            let __receiver = <TipsData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
231            ::unity::il2cpp_call!((::unity::module_base()+0x21ec110usize)as*mut u8,crate::app::tipsdata::TipsData_Allows;
232(TipsData)__receiver)
233        }
234    }
235    #[doc = "`set_Allow(crate::app::tipsdata::TipsData_Allows)` overload"]
236    fn set_allow(self, value: impl ::core::convert::Into<crate::app::tipsdata::TipsData_Allows>) -> () {
237        unsafe {
238            let __receiver = <TipsData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
239            ::unity::il2cpp_call!((::unity::module_base()+0x21ec120usize)as*mut u8,();
240(TipsData)__receiver,(crate::app::tipsdata::TipsData_Allows)::core::convert::Into::into(value))
241        }
242    }
243    #[doc = "`GetKind()` overload"]
244    fn get_kind(self) -> crate::app::tipsdata::TipsData_Kinds {
245        unsafe {
246            let __receiver = <TipsData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
247            ::unity::il2cpp_call!((::unity::module_base()+0x21ec130usize)as*mut u8,crate::app::tipsdata::TipsData_Kinds;
248(TipsData)__receiver)
249        }
250    }
251    #[doc = "`GetTipsID()` overload"]
252    fn get_tips_id(self) -> ::unity::Il2CppString {
253        unsafe {
254            let __receiver = <TipsData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
255            ::unity::il2cpp_call!((::unity::module_base()+0x21ec640usize)as*mut u8, ::unity::Il2CppString;
256(TipsData)__receiver)
257        }
258    }
259    #[doc = "`OnBuild()` overload"]
260    fn on_build(self) -> () {
261        unsafe {
262            let __receiver = <TipsData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
263            {
264                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
265                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
266                    panic!(
267                        "unity: virtual slot {}
268 out of range (vtable len {}
269) on the runtime class behind {}
270 (method `{}
271`)",
272                        4usize,
273                        __vt.len(),
274                        <TipsData as ::unity::ClassIdentity>::NAME,
275                        "OnBuild",
276                    )
277                });
278                let __inner: extern "C" fn(TipsData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
279                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
280                __inner(__receiver, __mi)
281            }
282        }
283    }
284    #[doc = "`OnRelease()` overload"]
285    fn on_release(self) -> () {
286        unsafe {
287            let __receiver = <TipsData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
288            {
289                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
290                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
291                    panic!(
292                        "unity: virtual slot {}
293 out of range (vtable len {}
294) on the runtime class behind {}
295 (method `{}
296`)",
297                        7usize,
298                        __vt.len(),
299                        <TipsData as ::unity::ClassIdentity>::NAME,
300                        "OnRelease",
301                    )
302                });
303                let __inner: extern "C" fn(TipsData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
304                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
305                __inner(__receiver, __mi)
306            }
307        }
308    }
309    #[doc = "`IsCondition()` overload"]
310    fn is_condition(self) -> bool {
311        unsafe {
312            let __receiver = <TipsData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
313            ::unity::il2cpp_call!((::unity::module_base()+0x21ec820usize)as*mut u8,bool;
314(TipsData)__receiver)
315        }
316    }
317    #[doc = "`.ctor()` overload"]
318    fn ctor(self) -> () {
319        unsafe {
320            let __receiver = <TipsData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
321            ::unity::il2cpp_call!((::unity::module_base()+0x21eca70usize)as*mut u8,();
322(TipsData)__receiver)
323        }
324    }
325}
326
327#[cfg(feature = "app-tipsdata")]
328impl<__T: ITipsData> ITipsDataMethods for __T {}
329
330#[cfg(feature = "app-tipsdata")]
331impl TipsData {
332    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
334    }
335
336    pub fn get_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
338    }
339
340    pub fn set_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
342    }
343
344    pub fn get_title_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
346    }
347
348    pub fn set_title_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
350    }
351
352    pub fn get_tips_method_info() -> &'static ::unity::il2cpp::MethodInfo {
353        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
354    }
355
356    pub fn set_tips_method_info() -> &'static ::unity::il2cpp::MethodInfo {
357        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
358    }
359
360    pub fn get_own_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
361        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
362    }
363
364    pub fn set_own_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
365        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
366    }
367
368    pub fn get_icon_info_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
369        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
370    }
371
372    pub fn set_icon_info_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
373        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
374    }
375
376    pub fn get_chapter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
377        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
378    }
379
380    pub fn set_chapter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
381        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
382    }
383
384    pub fn get_variable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
385        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
386    }
387
388    pub fn set_variable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
389        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
390    }
391
392    pub fn get_allow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
393        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
394    }
395
396    pub fn set_allow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
397        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
398    }
399
400    pub fn get_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
401        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
402    }
403
404    pub fn get_tips_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
405        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
406    }
407
408    pub fn on_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
409        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
410    }
411
412    pub fn on_release_method_info() -> &'static ::unity::il2cpp::MethodInfo {
413        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
414    }
415
416    pub fn is_condition_method_info() -> &'static ::unity::il2cpp::MethodInfo {
417        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
418    }
419
420    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
421        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
422    }
423}
424
425#[cfg(feature = "app-tipsdata")]
426impl TipsData {
427    #[doc = "Direct (non-virtual) call to `TipsData`'s own `OnBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
428    pub unsafe fn on_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
429        let __mi = Self::on_build_method_info();
430        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
431        __inner(this.into(), ::core::option::Option::None)
432    }
433
434    #[doc = "Direct (non-virtual) call to `TipsData`'s own `OnRelease`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
435    pub unsafe fn on_release(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
436        let __mi = Self::on_release_method_info();
437        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
438        __inner(this.into(), ::core::option::Option::None)
439    }
440}
441
442#[cfg(feature = "app-tipsdata")]
443impl TipsData {
444    #[doc = "`.ctor()` — no args"]
445    pub fn new() -> Self {
446        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
447            panic!(
448                "{}
449::{}
450 failed to instantiate",
451                ::core::stringify!(TipsData),
452                ::core::stringify!(new),
453            )
454        });
455        <Self as ITipsDataMethods>::ctor(this);
456        this
457    }
458}
459
460#[cfg(feature = "app-tipsdata")]
461#[doc(hidden)]
462pub mod prelude {
463    pub use super::{ITipsData, ITipsDataMethods, TipsData, TipsData_Allows, TipsData_Kinds};
464    #[cfg(feature = "app-structbase")]
465    pub use crate::app::structbase::IStructBaseMethods;
466    #[cfg(feature = "app-structdata_1")]
467    pub use crate::app::structdata_1::IStructData_1Methods;
468    #[cfg(feature = "app-structtemplate_1")]
469    pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
470    #[cfg(feature = "system-object")]
471    pub use crate::system::object::IObjectMethods;
472    #[cfg(feature = "system-enum")]
473    pub use crate::system::r#enum::IEnumMethods;
474    #[cfg(feature = "system-valuetype")]
475    pub use crate::system::valuetype::IValueTypeMethods;
476    pub use crate::{
477        app::{structbase::IStructBase, structdata_1::IStructData_1, structtemplate_1::IStructTemplate_1},
478        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
479    };
480}