Skip to main content

engage/generated/app/
battlestyle.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-battlestyle-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/battlestyle/BattleStyle.md"))]
22    #[::unity::class(namespace = "App", name = "BattleStyle")]
23    #[parent(crate::app::structdata_1::StructData_1<crate::app::battlestyle::BattleStyle>)]
24    pub struct BattleStyle {
25        #[static_field]
26        #[rename(name = "Begin")]
27        pub begin: crate::app::battlestyle::BattleStyle_Types,
28        #[static_field]
29        #[rename(name = "End")]
30        pub end: crate::app::battlestyle::BattleStyle_Types,
31        #[static_field]
32        #[rename(name = "Count")]
33        pub count: i32,
34        #[static_field]
35        #[rename(name = "Names")]
36        pub names: ::unity::Array<::unity::Il2CppString>,
37    }
38
39    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/battlestyle/BattleStyle_Types.md"))]
40    #[repr(C)]
41    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
42    pub struct BattleStyle_Types {
43        pub value: i32,
44    }
45    impl ::unity::ClassIdentity for BattleStyle_Types {
46        const NAME: &'static str = "BattleStyle.Types";
47        const NAMESPACE: &'static str = "App";
48
49        fn class() -> ::unity::Class {
50            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
51            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
52        }
53    }
54    impl ::unity::IlType for BattleStyle_Types {
55        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
56            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
57        }
58    }
59    impl BattleStyle_Types {
60        pub fn none() -> Self {
61            Self { value: 0 }
62        }
63
64        pub fn cooperation() -> Self {
65            Self { value: 1 }
66        }
67
68        pub fn horse() -> Self {
69            Self { value: 2 }
70        }
71
72        pub fn covert() -> Self {
73            Self { value: 3 }
74        }
75
76        pub fn heavy() -> Self {
77            Self { value: 4 }
78        }
79
80        pub fn fly() -> Self {
81            Self { value: 5 }
82        }
83
84        pub fn magic() -> Self {
85            Self { value: 6 }
86        }
87
88        pub fn prana() -> Self {
89            Self { value: 7 }
90        }
91
92        pub fn dragon() -> Self {
93            Self { value: 8 }
94        }
95    }
96}
97
98#[cfg(feature = "app-battlestyle-types")]
99pub use __types::*;
100
101#[cfg(feature = "app-battlestyle")]
102impl BattleStyle {
103    #[doc = "`Load()` overload"]
104    pub fn load() -> () {
105        unsafe {
106            ::unity::il2cpp_call!((::unity::module_base()+0x1e92df0usize)as*mut u8,();
107            )
108        }
109    }
110
111    #[doc = "`GetStyle(::unity::Il2CppString)` overload"]
112    pub fn get_style(name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::app::battlestyle::BattleStyle_Types {
113        unsafe {
114            ::unity::il2cpp_call!((::unity::module_base()+0x1e92ea0usize)as*mut u8,crate::app::battlestyle::BattleStyle_Types;
115(::unity::Il2CppString)::core::convert::Into::into(name))
116        }
117    }
118
119    #[doc = "`GetName(crate::app::battlestyle::BattleStyle_Types)` overload"]
120    pub fn get_name(style: impl ::core::convert::Into<crate::app::battlestyle::BattleStyle_Types>) -> ::unity::Il2CppString {
121        unsafe {
122            ::unity::il2cpp_call!((::unity::module_base()+0x1e92fa0usize)as*mut u8, ::unity::Il2CppString;
123(crate::app::battlestyle::BattleStyle_Types)::core::convert::Into::into(style))
124        }
125    }
126
127    #[doc = "`GetSkills(crate::app::battlestyle::BattleStyle_Types)` overload"]
128    pub fn get_skills(style: impl ::core::convert::Into<crate::app::battlestyle::BattleStyle_Types>) -> ::unity::Array<::unity::Il2CppString> {
129        unsafe {
130            ::unity::il2cpp_call!((::unity::module_base()+0x1e93030usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
131(crate::app::battlestyle::BattleStyle_Types)::core::convert::Into::into(style))
132        }
133    }
134
135    #[doc = "`GetStyleName(crate::app::battlestyle::BattleStyle_Types)` overload"]
136    pub fn get_style_name(style: impl ::core::convert::Into<crate::app::battlestyle::BattleStyle_Types>) -> ::unity::Il2CppString {
137        unsafe {
138            ::unity::il2cpp_call!((::unity::module_base()+0x1e930d0usize)as*mut u8, ::unity::Il2CppString;
139(crate::app::battlestyle::BattleStyle_Types)::core::convert::Into::into(style))
140        }
141    }
142
143    #[doc = "`GetHelp(crate::app::battlestyle::BattleStyle_Types)` overload"]
144    pub fn get_help(style: impl ::core::convert::Into<crate::app::battlestyle::BattleStyle_Types>) -> ::unity::Il2CppString {
145        unsafe {
146            ::unity::il2cpp_call!((::unity::module_base()+0x1e931c0usize)as*mut u8, ::unity::Il2CppString;
147(crate::app::battlestyle::BattleStyle_Types)::core::convert::Into::into(style))
148        }
149    }
150
151    #[doc = "`.cctor()` overload"]
152    pub fn cctor() -> () {
153        unsafe {
154            ::unity::il2cpp_call!((::unity::module_base()+0x1e93380usize)as*mut u8,();
155            )
156        }
157    }
158}
159
160#[cfg(feature = "app-battlestyle")]
161pub trait IBattleStyleMethods: IBattleStyle {
162    #[doc = "`get_Style()` overload"]
163    fn get_style_2(self) -> ::unity::Il2CppString {
164        unsafe {
165            let __receiver = <BattleStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166            ::unity::il2cpp_call!((::unity::module_base()+0x1e93260usize)as*mut u8, ::unity::Il2CppString;
167(BattleStyle)__receiver)
168        }
169    }
170    #[doc = "`set_Style(::unity::Il2CppString)` overload"]
171    fn set_style(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
172        unsafe {
173            let __receiver = <BattleStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174            ::unity::il2cpp_call!((::unity::module_base()+0x1e93270usize)as*mut u8,();
175(BattleStyle)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
176        }
177    }
178    #[doc = "`get_Name()` overload"]
179    fn get_name_2(self) -> ::unity::Il2CppString {
180        unsafe {
181            let __receiver = <BattleStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182            ::unity::il2cpp_call!((::unity::module_base()+0x1e93280usize)as*mut u8, ::unity::Il2CppString;
183(BattleStyle)__receiver)
184        }
185    }
186    #[doc = "`set_Name(::unity::Il2CppString)` overload"]
187    fn set_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
188        unsafe {
189            let __receiver = <BattleStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190            ::unity::il2cpp_call!((::unity::module_base()+0x1e93290usize)as*mut u8,();
191(BattleStyle)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
192        }
193    }
194    #[doc = "`get_Help()` overload"]
195    fn get_help_2(self) -> ::unity::Il2CppString {
196        unsafe {
197            let __receiver = <BattleStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
198            ::unity::il2cpp_call!((::unity::module_base()+0x1e932a0usize)as*mut u8, ::unity::Il2CppString;
199(BattleStyle)__receiver)
200        }
201    }
202    #[doc = "`set_Help(::unity::Il2CppString)` overload"]
203    fn set_help(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
204        unsafe {
205            let __receiver = <BattleStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
206            ::unity::il2cpp_call!((::unity::module_base()+0x1e932b0usize)as*mut u8,();
207(BattleStyle)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
208        }
209    }
210    #[doc = "`get_Skills()` overload"]
211    fn get_skills_2(self) -> ::unity::Array<::unity::Il2CppString> {
212        unsafe {
213            let __receiver = <BattleStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
214            ::unity::il2cpp_call!((::unity::module_base()+0x1e932c0usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
215(BattleStyle)__receiver)
216        }
217    }
218    #[doc = "`set_Skills(::unity::Array<::unity::Il2CppString>)` overload"]
219    fn set_skills(self, value: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>) -> () {
220        unsafe {
221            let __receiver = <BattleStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
222            ::unity::il2cpp_call!((::unity::module_base()+0x1e932d0usize)as*mut u8,();
223(BattleStyle)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(value))
224        }
225    }
226    #[doc = "`OnBuild()` overload"]
227    fn on_build(self) -> () {
228        unsafe {
229            let __receiver = <BattleStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
230            {
231                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
232                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
233                    panic!(
234                        "unity: virtual slot {}
235 out of range (vtable len {}
236) on the runtime class behind {}
237 (method `{}
238`)",
239                        4usize,
240                        __vt.len(),
241                        <BattleStyle as ::unity::ClassIdentity>::NAME,
242                        "OnBuild",
243                    )
244                });
245                let __inner: extern "C" fn(BattleStyle, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
246                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
247                __inner(__receiver, __mi)
248            }
249        }
250    }
251    #[doc = "`GetDebugName()` overload"]
252    fn get_debug_name(self) -> ::unity::Il2CppString {
253        unsafe {
254            let __receiver = <BattleStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
255            {
256                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
257                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
258                    panic!(
259                        "unity: virtual slot {}
260 out of range (vtable len {}
261) on the runtime class behind {}
262 (method `{}
263`)",
264                        8usize,
265                        __vt.len(),
266                        <BattleStyle as ::unity::ClassIdentity>::NAME,
267                        "GetDebugName",
268                    )
269                });
270                let __inner: extern "C" fn(BattleStyle, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
271                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
272                __inner(__receiver, __mi)
273            }
274        }
275    }
276    #[doc = "`.ctor()` overload"]
277    fn ctor(self) -> () {
278        unsafe {
279            let __receiver = <BattleStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
280            ::unity::il2cpp_call!((::unity::module_base()+0x1e93300usize)as*mut u8,();
281(BattleStyle)__receiver)
282        }
283    }
284}
285
286#[cfg(feature = "app-battlestyle")]
287impl<__T: IBattleStyle> IBattleStyleMethods for __T {}
288
289#[cfg(feature = "app-battlestyle")]
290impl BattleStyle {
291    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
292        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
293    }
294
295    pub fn get_style_method_info() -> &'static ::unity::il2cpp::MethodInfo {
296        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
297    }
298
299    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
300        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
301    }
302
303    pub fn get_skills_method_info() -> &'static ::unity::il2cpp::MethodInfo {
304        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
305    }
306
307    pub fn get_style_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
308        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
309    }
310
311    pub fn get_help_method_info() -> &'static ::unity::il2cpp::MethodInfo {
312        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
313    }
314
315    pub fn get_style_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
316        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
317    }
318
319    pub fn set_style_method_info() -> &'static ::unity::il2cpp::MethodInfo {
320        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
321    }
322
323    pub fn get_name_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
324        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
325    }
326
327    pub fn set_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
328        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
329    }
330
331    pub fn get_help_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
332        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
333    }
334
335    pub fn set_help_method_info() -> &'static ::unity::il2cpp::MethodInfo {
336        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
337    }
338
339    pub fn get_skills_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
340        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
341    }
342
343    pub fn set_skills_method_info() -> &'static ::unity::il2cpp::MethodInfo {
344        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
345    }
346
347    pub fn on_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
348        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
349    }
350
351    pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
352        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
353    }
354
355    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
356        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
357    }
358
359    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
360        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
361    }
362}
363
364#[cfg(feature = "app-battlestyle")]
365impl BattleStyle {
366    #[doc = "Direct (non-virtual) call to `BattleStyle`'s own `OnBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
367    pub unsafe fn on_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
368        let __mi = Self::on_build_method_info();
369        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
370        __inner(this.into(), ::core::option::Option::None)
371    }
372
373    #[doc = "Direct (non-virtual) call to `BattleStyle`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
374    pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
375        let __mi = Self::get_debug_name_method_info();
376        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
377        __inner(this.into(), ::core::option::Option::None)
378    }
379}
380
381#[cfg(feature = "app-battlestyle")]
382impl BattleStyle {
383    #[doc = "`.ctor()` — no args"]
384    pub fn new() -> Self {
385        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
386            panic!(
387                "{}
388::{}
389 failed to instantiate",
390                ::core::stringify!(BattleStyle),
391                ::core::stringify!(new),
392            )
393        });
394        <Self as IBattleStyleMethods>::ctor(this);
395        this
396    }
397}
398
399#[cfg(feature = "app-battlestyle")]
400#[doc(hidden)]
401pub mod prelude {
402    pub use super::{BattleStyle, BattleStyle_Types, IBattleStyle, IBattleStyleMethods};
403    #[cfg(feature = "app-structbase")]
404    pub use crate::app::structbase::IStructBaseMethods;
405    #[cfg(feature = "app-structdata_1")]
406    pub use crate::app::structdata_1::IStructData_1Methods;
407    #[cfg(feature = "app-structtemplate_1")]
408    pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
409    #[cfg(feature = "system-object")]
410    pub use crate::system::object::IObjectMethods;
411    #[cfg(feature = "system-enum")]
412    pub use crate::system::r#enum::IEnumMethods;
413    #[cfg(feature = "system-valuetype")]
414    pub use crate::system::valuetype::IValueTypeMethods;
415    pub use crate::{
416        app::{structbase::IStructBase, structdata_1::IStructData_1, structtemplate_1::IStructTemplate_1},
417        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
418    };
419}