Skip to main content

engage/generated/app/
battlescene.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-battlescene-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            bitfield32::{BitField32, IBitField32},
11            bitfieldcommon::{BitFieldCommon, IBitFieldCommon},
12            bitfieldtemplate32_1::{BitFieldTemplate32_1, IBitFieldTemplate32_1},
13            pool::{IPool_Node, Pool_Node},
14        },
15        system::{
16            object::{IObject, Object},
17            r#enum::{Enum, IEnum},
18            valuetype::{IValueType, ValueType},
19        },
20    };
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/battlescene/BattleScene_FieldResult.md"))]
23    #[::unity::class(namespace = "App", name = "BattleScene.FieldResult")]
24    #[parent(crate::app::bitfieldtemplate32_1::BitFieldTemplate32_1<crate::app::battlescene::BattleScene_Result>)]
25    pub struct BattleScene_FieldResult {}
26
27    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/battlescene/BattleScene.md"))]
28    #[::unity::class(namespace = "App", name = "BattleScene")]
29    #[parent(crate::app::pool::Pool_Node)]
30    pub struct BattleScene {
31        #[offset(16)]
32        #[rename(name = "m_List")]
33        pub m_list: crate::app::battlescenelist::BattleSceneList,
34        #[offset(24)]
35        #[rename(name = "m_Side")]
36        pub m_side: crate::app::battleside::BattleSide_Type,
37        #[offset(28)]
38        #[rename(name = "m_Target")]
39        pub m_target: crate::app::battleside::BattleSide_Type,
40        #[offset(32)]
41        #[rename(name = "m_Kind")]
42        pub m_kind: crate::app::battlescene::BattleScene_Kind,
43        #[offset(36)]
44        #[rename(name = "m_Skill")]
45        pub m_skill: i32,
46        #[offset(40)]
47        #[rename(name = "m_Item")]
48        pub m_item: i32,
49        #[offset(44)]
50        #[rename(name = "m_God")]
51        pub m_god: i32,
52        #[offset(48)]
53        #[rename(name = "m_Index")]
54        pub m_index: i32,
55        #[offset(56)]
56        #[rename(name = "m_Result")]
57        pub m_result: crate::app::battlescene::BattleScene_FieldResult,
58        #[offset(64)]
59        #[rename(name = "m_Guardian")]
60        pub m_guardian: crate::app::battleside::BattleSide_Type,
61        #[offset(72)]
62        #[rename(name = "m_Hps")]
63        pub m_hps: crate::app::battleside::BattleSide_ShortArray,
64        #[offset(80)]
65        #[rename(name = "m_Engages")]
66        pub m_engages: crate::app::battleside::BattleSide_SbyteArray,
67        #[offset(88)]
68        #[rename(name = "m_Damages")]
69        pub m_damages: crate::app::battleside::BattleSide_ShortArray,
70    }
71
72    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/battlescene/BattleScene_Result.md"))]
73    #[repr(C)]
74    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
75    pub struct BattleScene_Result {
76        pub value: i32,
77    }
78    impl ::unity::ClassIdentity for BattleScene_Result {
79        const NAME: &'static str = "BattleScene.Result";
80        const NAMESPACE: &'static str = "App";
81
82        fn class() -> ::unity::Class {
83            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
84            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
85        }
86    }
87    impl ::unity::IlType for BattleScene_Result {
88        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
89            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
90        }
91    }
92    impl BattleScene_Result {
93        pub fn none() -> Self {
94            Self { value: 0 }
95        }
96
97        pub fn hit() -> Self {
98            Self { value: 1 }
99        }
100
101        pub fn critical() -> Self {
102            Self { value: 2 }
103        }
104
105        pub fn guard() -> Self {
106            Self { value: 4 }
107        }
108
109        pub fn suicide() -> Self {
110            Self { value: 8 }
111        }
112
113        pub fn efficacy() -> Self {
114            Self { value: 16 }
115        }
116
117        pub fn r#break() -> Self {
118            Self { value: 32 }
119        }
120
121        pub fn blow() -> Self {
122            Self { value: 64 }
123        }
124
125        pub fn bounce() -> Self {
126            Self { value: 128 }
127        }
128
129        pub fn chain_attack() -> Self {
130            Self { value: 256 }
131        }
132
133        pub fn chain_guard() -> Self {
134            Self { value: 512 }
135        }
136
137        pub fn dual_guard() -> Self {
138            Self { value: 1024 }
139        }
140
141        pub fn engage_attack() -> Self {
142            Self { value: 2048 }
143        }
144
145        pub fn physical() -> Self {
146            Self { value: 4096 }
147        }
148
149        pub fn magic() -> Self {
150            Self { value: 8192 }
151        }
152
153        pub fn ignore() -> Self {
154            Self { value: 16384 }
155        }
156    }
157
158    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/battlescene/BattleScene_Kind.md"))]
159    #[repr(C)]
160    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
161    pub struct BattleScene_Kind {
162        pub value: i32,
163    }
164    impl ::unity::ClassIdentity for BattleScene_Kind {
165        const NAME: &'static str = "BattleScene.Kind";
166        const NAMESPACE: &'static str = "App";
167
168        fn class() -> ::unity::Class {
169            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
170            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
171        }
172    }
173    impl ::unity::IlType for BattleScene_Kind {
174        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
175            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
176        }
177    }
178    impl BattleScene_Kind {
179        pub fn none() -> Self {
180            Self { value: 0 }
181        }
182
183        pub fn attack() -> Self {
184            Self { value: 1 }
185        }
186
187        pub fn rod() -> Self {
188            Self { value: 2 }
189        }
190
191        pub fn dance() -> Self {
192            Self { value: 3 }
193        }
194
195        pub fn skill() -> Self {
196            Self { value: 4 }
197        }
198
199        pub fn give_direct() -> Self {
200            Self { value: 5 }
201        }
202
203        pub fn give_delay() -> Self {
204            Self { value: 6 }
205        }
206
207        pub fn strip() -> Self {
208            Self { value: 7 }
209        }
210
211        pub fn equip() -> Self {
212            Self { value: 8 }
213        }
214
215        pub fn god() -> Self {
216            Self { value: 9 }
217        }
218
219        pub fn dead() -> Self {
220            Self { value: 10 }
221        }
222
223        pub fn engage_attack() -> Self {
224            Self { value: 11 }
225        }
226
227        pub fn separator() -> Self {
228            Self { value: 12 }
229        }
230
231        pub fn push_battle() -> Self {
232            Self { value: 13 }
233        }
234
235        pub fn push_order() -> Self {
236            Self { value: 14 }
237        }
238
239        pub fn push_action() -> Self {
240            Self { value: 15 }
241        }
242
243        pub fn push_attack() -> Self {
244            Self { value: 16 }
245        }
246
247        pub fn pop_attack() -> Self {
248            Self { value: 17 }
249        }
250
251        pub fn pop_action() -> Self {
252            Self { value: 18 }
253        }
254
255        pub fn pop_order() -> Self {
256            Self { value: 19 }
257        }
258
259        pub fn pop_battle() -> Self {
260            Self { value: 20 }
261        }
262
263        pub fn heal() -> Self {
264            Self { value: 21 }
265        }
266
267        pub fn num() -> Self {
268            Self { value: 22 }
269        }
270    }
271}
272
273#[cfg(feature = "app-battlescene-types")]
274pub use __types::*;
275
276#[cfg(feature = "app-battlescene")]
277impl BattleScene_FieldResult {
278    #[doc = "`op_Implicit(crate::app::battlescene::BattleScene_FieldResult)` overload"]
279    pub fn op_implicit(
280        self_: impl ::core::convert::Into<crate::app::battlescene::BattleScene_FieldResult>,
281    ) -> crate::app::battlescene::BattleScene_Result {
282        unsafe {
283            ::unity::il2cpp_call!((::unity::module_base()+0x19bbb00usize)as*mut u8,crate::app::battlescene::BattleScene_Result;
284(crate::app::battlescene::BattleScene_FieldResult)::core::convert::Into::into(self_))
285        }
286    }
287}
288
289#[cfg(feature = "app-battlescene")]
290pub trait IBattleScene_FieldResultMethods: IBattleScene_FieldResult {
291    #[doc = "`ToInt(crate::app::battlescene::BattleScene_Result)` overload"]
292    fn to_int(self, value: impl ::core::convert::Into<crate::app::battlescene::BattleScene_Result>) -> i32 {
293        unsafe {
294            let __receiver =
295                <BattleScene_FieldResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
296            {
297                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
298                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
299                    panic!(
300                        "unity: virtual slot {}
301 out of range (vtable len {}
302) on the runtime class behind {}
303 (method `{}
304`)",
305                        5usize,
306                        __vt.len(),
307                        <BattleScene_FieldResult as ::unity::ClassIdentity>::NAME,
308                        "ToInt",
309                    )
310                });
311                let __inner: extern "C" fn(BattleScene_FieldResult, crate::app::battlescene::BattleScene_Result, ::unity::OptionalMethod) -> i32 =
312                    ::core::mem::transmute(__vi.method_ptr);
313                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
314                __inner(__receiver, ::core::convert::Into::into(value), __mi)
315            }
316        }
317    }
318    #[doc = "`.ctor()` overload"]
319    fn ctor(self) -> () {
320        unsafe {
321            let __receiver =
322                <BattleScene_FieldResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
323            ::unity::il2cpp_call!((::unity::module_base()+0x19bbb10usize)as*mut u8,();
324(BattleScene_FieldResult)__receiver)
325        }
326    }
327}
328
329#[cfg(feature = "app-battlescene")]
330impl<__T: IBattleScene_FieldResult> IBattleScene_FieldResultMethods for __T {}
331
332#[cfg(feature = "app-battlescene")]
333impl BattleScene_FieldResult {
334    pub fn to_int_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
336    }
337
338    pub fn op_implicit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
339        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
340    }
341
342    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
343        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
344    }
345}
346
347#[cfg(feature = "app-battlescene")]
348impl BattleScene_FieldResult {
349    #[doc = "Direct (non-virtual) call to `BattleScene_FieldResult`'s own `ToInt`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
350    pub unsafe fn to_int(this: impl ::core::convert::Into<::unity::IlInstance>, value: crate::app::battlescene::BattleScene_Result) -> i32 {
351        let __mi = Self::to_int_method_info();
352        let __inner: extern "C" fn(::unity::IlInstance, crate::app::battlescene::BattleScene_Result, ::unity::OptionalMethod) -> i32 =
353            ::core::mem::transmute(__mi.method_ptr);
354        __inner(this.into(), value, ::core::option::Option::None)
355    }
356}
357
358#[cfg(feature = "app-battlescene")]
359impl BattleScene_FieldResult {
360    #[doc = "`.ctor()` — no args"]
361    pub fn new() -> Self {
362        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
363            panic!(
364                "{}
365::{}
366 failed to instantiate",
367                ::core::stringify!(BattleScene_FieldResult),
368                ::core::stringify!(new),
369            )
370        });
371        <Self as IBattleScene_FieldResultMethods>::ctor(this);
372        this
373    }
374}
375
376#[cfg(feature = "app-battlescene")]
377pub trait IBattleSceneMethods: IBattleScene {
378    #[doc = "`get_DebuggerDisplay()` overload"]
379    fn get_debugger_display(self) -> ::unity::Il2CppString {
380        unsafe {
381            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
382            ::unity::il2cpp_call!((::unity::module_base()+0x1e8f9b0usize)as*mut u8, ::unity::Il2CppString;
383(BattleScene)__receiver)
384        }
385    }
386    #[doc = "`.ctor()` overload"]
387    fn ctor(self) -> () {
388        unsafe {
389            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
390            ::unity::il2cpp_call!((::unity::module_base()+0x1e90320usize)as*mut u8,();
391(BattleScene)__receiver)
392        }
393    }
394    #[doc = "`Clear()` overload"]
395    fn clear(self) -> () {
396        unsafe {
397            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
398            ::unity::il2cpp_call!((::unity::module_base()+0x1e90440usize)as*mut u8,();
399(BattleScene)__receiver)
400        }
401    }
402    #[doc = "`OnEnter()` overload"]
403    fn on_enter(self) -> () {
404        unsafe {
405            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
406            {
407                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
408                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
409                    panic!(
410                        "unity: virtual slot {}
411 out of range (vtable len {}
412) on the runtime class behind {}
413 (method `{}
414`)",
415                        4usize,
416                        __vt.len(),
417                        <BattleScene as ::unity::ClassIdentity>::NAME,
418                        "OnEnter",
419                    )
420                });
421                let __inner: extern "C" fn(BattleScene, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
422                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
423                __inner(__receiver, __mi)
424            }
425        }
426    }
427    #[doc = "`OnExit()` overload"]
428    fn on_exit(self) -> () {
429        unsafe {
430            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
431            {
432                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
433                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
434                    panic!(
435                        "unity: virtual slot {}
436 out of range (vtable len {}
437) on the runtime class behind {}
438 (method `{}
439`)",
440                        5usize,
441                        __vt.len(),
442                        <BattleScene as ::unity::ClassIdentity>::NAME,
443                        "OnExit",
444                    )
445                });
446                let __inner: extern "C" fn(BattleScene, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
447                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
448                __inner(__receiver, __mi)
449            }
450        }
451    }
452    #[doc = "`Setup(crate::app::battlescenelist::BattleSceneList, crate::app::battlescene::BattleScene_Kind, crate::app::battleside::BattleSide_Type, crate::app::battleside::BattleSide_Type, crate::app::battleinfo::BattleInfo, i32)` overload"]
453    fn setup(
454        self,
455        list: impl ::core::convert::Into<crate::app::battlescenelist::BattleSceneList>,
456        kind: impl ::core::convert::Into<crate::app::battlescene::BattleScene_Kind>,
457        current: impl ::core::convert::Into<crate::app::battleside::BattleSide_Type>,
458        target: impl ::core::convert::Into<crate::app::battleside::BattleSide_Type>,
459        info: impl ::core::convert::Into<crate::app::battleinfo::BattleInfo>,
460        index: impl ::core::convert::Into<i32>,
461    ) -> () {
462        unsafe {
463            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
464            ::unity::il2cpp_call!((::unity::module_base()+0x1e90550usize)as*mut u8,();
465(BattleScene)__receiver,(crate::app::battlescenelist::BattleSceneList)::core::convert::Into::into(list),(crate::app::battlescene::BattleScene_Kind)::core::convert::Into::into(kind),(crate::app::battleside::BattleSide_Type)::core::convert::Into::into(current),(crate::app::battleside::BattleSide_Type)::core::convert::Into::into(target),(crate::app::battleinfo::BattleInfo)::core::convert::Into::into(info),(i32)::core::convert::Into::into(index))
466        }
467    }
468    #[doc = "`GetKind()` overload"]
469    fn get_kind(self) -> crate::app::battlescene::BattleScene_Kind {
470        unsafe {
471            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
472            ::unity::il2cpp_call!((::unity::module_base()+0x1e906b0usize)as*mut u8,crate::app::battlescene::BattleScene_Kind;
473(BattleScene)__receiver)
474        }
475    }
476    #[doc = "`GetIndex()` overload"]
477    fn get_index(self) -> i32 {
478        unsafe {
479            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
480            ::unity::il2cpp_call!((::unity::module_base()+0x1e906c0usize)as*mut u8,i32;
481(BattleScene)__receiver)
482        }
483    }
484    #[doc = "`GetResult()` overload"]
485    fn get_result(self) -> crate::app::battlescene::BattleScene_FieldResult {
486        unsafe {
487            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
488            ::unity::il2cpp_call!((::unity::module_base()+0x1e906d0usize)as*mut u8,crate::app::battlescene::BattleScene_FieldResult;
489(BattleScene)__receiver)
490        }
491    }
492    #[doc = "`IsResult(crate::app::battlescene::BattleScene_Result)` overload"]
493    fn is_result(self, result: impl ::core::convert::Into<crate::app::battlescene::BattleScene_Result>) -> bool {
494        unsafe {
495            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
496            ::unity::il2cpp_call!((::unity::module_base()+0x1e906e0usize)as*mut u8,bool;
497(BattleScene)__receiver,(crate::app::battlescene::BattleScene_Result)::core::convert::Into::into(result))
498        }
499    }
500    #[doc = "`SetResult(crate::app::battlescene::BattleScene_Result)` overload"]
501    fn set_result(self, result: impl ::core::convert::Into<crate::app::battlescene::BattleScene_Result>) -> crate::app::battlescene::BattleScene {
502        unsafe {
503            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
504            ::unity::il2cpp_call!((::unity::module_base()+0x1e90750usize)as*mut u8,crate::app::battlescene::BattleScene;
505(BattleScene)__receiver,(crate::app::battlescene::BattleScene_Result)::core::convert::Into::into(result))
506        }
507    }
508    #[doc = "`SetKind(crate::app::battlescene::BattleScene_Kind)` overload"]
509    fn set_kind(self, kind: impl ::core::convert::Into<crate::app::battlescene::BattleScene_Kind>) -> crate::app::battlescene::BattleScene {
510        unsafe {
511            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
512            ::unity::il2cpp_call!((::unity::module_base()+0x1e907c0usize)as*mut u8,crate::app::battlescene::BattleScene;
513(BattleScene)__receiver,(crate::app::battlescene::BattleScene_Kind)::core::convert::Into::into(kind))
514        }
515    }
516    #[doc = "`GetDamage(crate::app::battleside::BattleSide_Type)` overload"]
517    fn get_damage(self, side: impl ::core::convert::Into<crate::app::battleside::BattleSide_Type>) -> i32 {
518        unsafe {
519            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
520            ::unity::il2cpp_call!((::unity::module_base()+0x1e907d0usize)as*mut u8,i32;
521(BattleScene)__receiver,(crate::app::battleside::BattleSide_Type)::core::convert::Into::into(side))
522        }
523    }
524    #[doc = "`GetHeal(crate::app::battleside::BattleSide_Type)` overload"]
525    fn get_heal(self, side: impl ::core::convert::Into<crate::app::battleside::BattleSide_Type>) -> i32 {
526        unsafe {
527            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
528            ::unity::il2cpp_call!((::unity::module_base()+0x1e90930usize)as*mut u8,i32;
529(BattleScene)__receiver,(crate::app::battleside::BattleSide_Type)::core::convert::Into::into(side))
530        }
531    }
532    #[doc = "`SetDamage(crate::app::battleside::BattleSide_Type, i32)` overload"]
533    fn set_damage(
534        self,
535        side: impl ::core::convert::Into<crate::app::battleside::BattleSide_Type>,
536        damage: impl ::core::convert::Into<i32>,
537    ) -> crate::app::battlescene::BattleScene {
538        unsafe {
539            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
540            ::unity::il2cpp_call!((::unity::module_base()+0x1e90aa0usize)as*mut u8,crate::app::battlescene::BattleScene;
541(BattleScene)__receiver,(crate::app::battleside::BattleSide_Type)::core::convert::Into::into(side),(i32)::core::convert::Into::into(damage))
542        }
543    }
544    #[doc = "`GetHp(crate::app::battleside::BattleSide_Type)` overload"]
545    fn get_hp(self, side: impl ::core::convert::Into<crate::app::battleside::BattleSide_Type>) -> i32 {
546        unsafe {
547            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
548            ::unity::il2cpp_call!((::unity::module_base()+0x1e90b20usize)as*mut u8,i32;
549(BattleScene)__receiver,(crate::app::battleside::BattleSide_Type)::core::convert::Into::into(side))
550        }
551    }
552    #[doc = "`AddHp(crate::app::battleside::BattleSide_Type, i32)` overload"]
553    fn add_hp(self, side: impl ::core::convert::Into<crate::app::battleside::BattleSide_Type>, value: impl ::core::convert::Into<i32>) -> () {
554        unsafe {
555            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
556            ::unity::il2cpp_call!((::unity::module_base()+0x1e90b90usize)as*mut u8,();
557(BattleScene)__receiver,(crate::app::battleside::BattleSide_Type)::core::convert::Into::into(side),(i32)::core::convert::Into::into(value))
558        }
559    }
560    #[doc = "`Commit(crate::app::battleinfo::BattleInfo)` overload"]
561    fn commit(self, info: impl ::core::convert::Into<crate::app::battleinfo::BattleInfo>) -> () {
562        unsafe {
563            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
564            ::unity::il2cpp_call!((::unity::module_base()+0x1e90c30usize)as*mut u8,();
565(BattleScene)__receiver,(crate::app::battleinfo::BattleInfo)::core::convert::Into::into(info))
566        }
567    }
568    #[doc = "`GetEngageCount(crate::app::battleside::BattleSide_Type)` overload"]
569    fn get_engage_count(self, side: impl ::core::convert::Into<crate::app::battleside::BattleSide_Type>) -> i32 {
570        unsafe {
571            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
572            ::unity::il2cpp_call!((::unity::module_base()+0x1e90da0usize)as*mut u8,i32;
573(BattleScene)__receiver,(crate::app::battleside::BattleSide_Type)::core::convert::Into::into(side))
574        }
575    }
576    #[doc = "`GetClampDamage(crate::app::battleside::BattleSide_Type)` overload"]
577    fn get_clamp_damage(self, side: impl ::core::convert::Into<crate::app::battleside::BattleSide_Type>) -> i32 {
578        unsafe {
579            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
580            ::unity::il2cpp_call!((::unity::module_base()+0x1e90e10usize)as*mut u8,i32;
581(BattleScene)__receiver,(crate::app::battleside::BattleSide_Type)::core::convert::Into::into(side))
582        }
583    }
584    #[doc = "`SetSkill(i32)` overload"]
585    fn set_skill(self, skill: impl ::core::convert::Into<i32>) -> crate::app::battlescene::BattleScene {
586        unsafe {
587            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
588            ::unity::il2cpp_call!((::unity::module_base()+0x1e90f10usize)as*mut u8,crate::app::battlescene::BattleScene;
589(BattleScene)__receiver,(i32)::core::convert::Into::into(skill))
590        }
591    }
592    #[doc = "`SetSkill(crate::app::skilldata::SkillData)` overload"]
593    fn set_skill_2(self, skill: impl ::core::convert::Into<crate::app::skilldata::SkillData>) -> crate::app::battlescene::BattleScene {
594        unsafe {
595            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
596            ::unity::il2cpp_call!((::unity::module_base()+0x1e90f20usize)as*mut u8,crate::app::battlescene::BattleScene;
597(BattleScene)__receiver,(crate::app::skilldata::SkillData)::core::convert::Into::into(skill))
598        }
599    }
600    #[doc = "`SetSkill(::unity::Il2CppString)` overload"]
601    fn set_skill_3(self, sid: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::app::battlescene::BattleScene {
602        unsafe {
603            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
604            ::unity::il2cpp_call!((::unity::module_base()+0x1e90f30usize)as*mut u8,crate::app::battlescene::BattleScene;
605(BattleScene)__receiver,(::unity::Il2CppString)::core::convert::Into::into(sid))
606        }
607    }
608    #[doc = "`GetSkill()` overload"]
609    fn get_skill(self) -> crate::app::skilldata::SkillData {
610        unsafe {
611            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
612            ::unity::il2cpp_call!((::unity::module_base()+0x1e90fd0usize)as*mut u8,crate::app::skilldata::SkillData;
613(BattleScene)__receiver)
614        }
615    }
616    #[doc = "`SetItem(i32)` overload"]
617    fn set_item(self, item: impl ::core::convert::Into<i32>) -> crate::app::battlescene::BattleScene {
618        unsafe {
619            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
620            ::unity::il2cpp_call!((::unity::module_base()+0x1e91060usize)as*mut u8,crate::app::battlescene::BattleScene;
621(BattleScene)__receiver,(i32)::core::convert::Into::into(item))
622        }
623    }
624    #[doc = "`SetItem(crate::app::itemdata::ItemData)` overload"]
625    fn set_item_2(self, item: impl ::core::convert::Into<crate::app::itemdata::ItemData>) -> crate::app::battlescene::BattleScene {
626        unsafe {
627            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
628            ::unity::il2cpp_call!((::unity::module_base()+0x1e91070usize)as*mut u8,crate::app::battlescene::BattleScene;
629(BattleScene)__receiver,(crate::app::itemdata::ItemData)::core::convert::Into::into(item))
630        }
631    }
632    #[doc = "`SetItem(::unity::Il2CppString)` overload"]
633    fn set_item_3(self, iid: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::app::battlescene::BattleScene {
634        unsafe {
635            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
636            ::unity::il2cpp_call!((::unity::module_base()+0x1e91080usize)as*mut u8,crate::app::battlescene::BattleScene;
637(BattleScene)__receiver,(::unity::Il2CppString)::core::convert::Into::into(iid))
638        }
639    }
640    #[doc = "`GetItem()` overload"]
641    fn get_item(self) -> crate::app::itemdata::ItemData {
642        unsafe {
643            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
644            ::unity::il2cpp_call!((::unity::module_base()+0x1e91120usize)as*mut u8,crate::app::itemdata::ItemData;
645(BattleScene)__receiver)
646        }
647    }
648    #[doc = "`SetGod(crate::app::goddata::GodData)` overload"]
649    fn set_god(self, god: impl ::core::convert::Into<crate::app::goddata::GodData>) -> crate::app::battlescene::BattleScene {
650        unsafe {
651            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
652            ::unity::il2cpp_call!((::unity::module_base()+0x1e911b0usize)as*mut u8,crate::app::battlescene::BattleScene;
653(BattleScene)__receiver,(crate::app::goddata::GodData)::core::convert::Into::into(god))
654        }
655    }
656    #[doc = "`GetGod()` overload"]
657    fn get_god(self) -> crate::app::goddata::GodData {
658        unsafe {
659            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
660            ::unity::il2cpp_call!((::unity::module_base()+0x1e911c0usize)as*mut u8,crate::app::goddata::GodData;
661(BattleScene)__receiver)
662        }
663    }
664    #[doc = "`GetShowSkill()` overload"]
665    fn get_show_skill(self) -> crate::app::skilldata::SkillData {
666        unsafe {
667            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
668            ::unity::il2cpp_call!((::unity::module_base()+0x1e91250usize)as*mut u8,crate::app::skilldata::SkillData;
669(BattleScene)__receiver)
670        }
671    }
672    #[doc = "`GetSkillNameForDebuggerDisplay()` overload"]
673    fn get_skill_name_for_debugger_display(self) -> ::unity::Il2CppString {
674        unsafe {
675            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
676            ::unity::il2cpp_call!((::unity::module_base()+0x1e90270usize)as*mut u8, ::unity::Il2CppString;
677(BattleScene)__receiver)
678        }
679    }
680    #[doc = "`get_Side()` overload"]
681    fn get_side(self) -> crate::app::battleside::BattleSide_Type {
682        unsafe {
683            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
684            ::unity::il2cpp_call!((::unity::module_base()+0x1e91310usize)as*mut u8,crate::app::battleside::BattleSide_Type;
685(BattleScene)__receiver)
686        }
687    }
688    #[doc = "`get_Target()` overload"]
689    fn get_target(self) -> crate::app::battleside::BattleSide_Type {
690        unsafe {
691            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
692            ::unity::il2cpp_call!((::unity::module_base()+0x1e91320usize)as*mut u8,crate::app::battleside::BattleSide_Type;
693(BattleScene)__receiver)
694        }
695    }
696    #[doc = "`get_Guardian()` overload"]
697    fn get_guardian(self) -> crate::app::battleside::BattleSide_Type {
698        unsafe {
699            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
700            ::unity::il2cpp_call!((::unity::module_base()+0x1e91330usize)as*mut u8,crate::app::battleside::BattleSide_Type;
701(BattleScene)__receiver)
702        }
703    }
704    #[doc = "`set_Guardian(crate::app::battleside::BattleSide_Type)` overload"]
705    fn set_guardian(self, value: impl ::core::convert::Into<crate::app::battleside::BattleSide_Type>) -> () {
706        unsafe {
707            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
708            ::unity::il2cpp_call!((::unity::module_base()+0x1e91340usize)as*mut u8,();
709(BattleScene)__receiver,(crate::app::battleside::BattleSide_Type)::core::convert::Into::into(value))
710        }
711    }
712    #[doc = "`get_Current()` overload"]
713    fn get_current(self) -> crate::app::battleside::BattleSide_Type {
714        unsafe {
715            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
716            ::unity::il2cpp_call!((::unity::module_base()+0x1e91350usize)as*mut u8,crate::app::battleside::BattleSide_Type;
717(BattleScene)__receiver)
718        }
719    }
720    #[doc = "`get_Reverse()` overload"]
721    fn get_reverse(self) -> crate::app::battleside::BattleSide_Type {
722        unsafe {
723            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
724            ::unity::il2cpp_call!((::unity::module_base()+0x1e91360usize)as*mut u8,crate::app::battleside::BattleSide_Type;
725(BattleScene)__receiver)
726        }
727    }
728    #[doc = "`IsEntry(crate::app::battleside::BattleSide_Type)` overload"]
729    fn is_entry(self, side: impl ::core::convert::Into<crate::app::battleside::BattleSide_Type>) -> bool {
730        unsafe {
731            let __receiver = <BattleScene as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
732            ::unity::il2cpp_call!((::unity::module_base()+0x1e91460usize)as*mut u8,bool;
733(BattleScene)__receiver,(crate::app::battleside::BattleSide_Type)::core::convert::Into::into(side))
734        }
735    }
736}
737
738#[cfg(feature = "app-battlescene")]
739impl<__T: IBattleScene> IBattleSceneMethods for __T {}
740
741#[cfg(feature = "app-battlescene")]
742impl BattleScene {
743    pub fn get_debugger_display_method_info() -> &'static ::unity::il2cpp::MethodInfo {
744        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
745    }
746
747    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
748        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
749    }
750
751    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
752        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
753    }
754
755    pub fn on_enter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
756        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
757    }
758
759    pub fn on_exit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
760        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
761    }
762
763    pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
764        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
765    }
766
767    pub fn get_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
768        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
769    }
770
771    pub fn get_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
772        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
773    }
774
775    pub fn get_result_method_info() -> &'static ::unity::il2cpp::MethodInfo {
776        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
777    }
778
779    pub fn is_result_method_info() -> &'static ::unity::il2cpp::MethodInfo {
780        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
781    }
782
783    pub fn set_result_method_info() -> &'static ::unity::il2cpp::MethodInfo {
784        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
785    }
786
787    pub fn set_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
788        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
789    }
790
791    pub fn get_damage_method_info() -> &'static ::unity::il2cpp::MethodInfo {
792        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
793    }
794
795    pub fn get_heal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
796        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
797    }
798
799    pub fn set_damage_method_info() -> &'static ::unity::il2cpp::MethodInfo {
800        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
801    }
802
803    pub fn get_hp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
804        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
805    }
806
807    pub fn add_hp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
808        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
809    }
810
811    pub fn commit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
812        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
813    }
814
815    pub fn get_engage_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
816        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
817    }
818
819    pub fn get_clamp_damage_method_info() -> &'static ::unity::il2cpp::MethodInfo {
820        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
821    }
822
823    pub fn set_skill_method_info() -> &'static ::unity::il2cpp::MethodInfo {
824        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
825    }
826
827    pub fn set_skill_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
828        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
829    }
830
831    pub fn set_skill_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
832        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
833    }
834
835    pub fn get_skill_method_info() -> &'static ::unity::il2cpp::MethodInfo {
836        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
837    }
838
839    pub fn set_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
840        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
841    }
842
843    pub fn set_item_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
844        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
845    }
846
847    pub fn set_item_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
848        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
849    }
850
851    pub fn get_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
852        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
853    }
854
855    pub fn set_god_method_info() -> &'static ::unity::il2cpp::MethodInfo {
856        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
857    }
858
859    pub fn get_god_method_info() -> &'static ::unity::il2cpp::MethodInfo {
860        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
861    }
862
863    pub fn get_show_skill_method_info() -> &'static ::unity::il2cpp::MethodInfo {
864        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
865    }
866
867    pub fn get_skill_name_for_debugger_display_method_info() -> &'static ::unity::il2cpp::MethodInfo {
868        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
869    }
870
871    pub fn get_side_method_info() -> &'static ::unity::il2cpp::MethodInfo {
872        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
873    }
874
875    pub fn get_target_method_info() -> &'static ::unity::il2cpp::MethodInfo {
876        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
877    }
878
879    pub fn get_guardian_method_info() -> &'static ::unity::il2cpp::MethodInfo {
880        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
881    }
882
883    pub fn set_guardian_method_info() -> &'static ::unity::il2cpp::MethodInfo {
884        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
885    }
886
887    pub fn get_current_method_info() -> &'static ::unity::il2cpp::MethodInfo {
888        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
889    }
890
891    pub fn get_reverse_method_info() -> &'static ::unity::il2cpp::MethodInfo {
892        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
893    }
894
895    pub fn is_entry_method_info() -> &'static ::unity::il2cpp::MethodInfo {
896        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
897    }
898}
899
900#[cfg(feature = "app-battlescene")]
901impl BattleScene {
902    #[doc = "Direct (non-virtual) call to `BattleScene`'s own `OnEnter`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
903    pub unsafe fn on_enter(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
904        let __mi = Self::on_enter_method_info();
905        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
906        __inner(this.into(), ::core::option::Option::None)
907    }
908
909    #[doc = "Direct (non-virtual) call to `BattleScene`'s own `OnExit`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
910    pub unsafe fn on_exit(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
911        let __mi = Self::on_exit_method_info();
912        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
913        __inner(this.into(), ::core::option::Option::None)
914    }
915}
916
917#[cfg(feature = "app-battlescene")]
918impl BattleScene {
919    #[doc = "`.ctor()` — no args"]
920    pub fn new() -> Self {
921        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
922            panic!(
923                "{}
924::{}
925 failed to instantiate",
926                ::core::stringify!(BattleScene),
927                ::core::stringify!(new),
928            )
929        });
930        <Self as IBattleSceneMethods>::ctor(this);
931        this
932    }
933}
934
935#[cfg(feature = "app-battlescene")]
936#[doc(hidden)]
937pub mod prelude {
938    pub use super::{
939        BattleScene, BattleScene_FieldResult, BattleScene_Kind, BattleScene_Result, IBattleScene, IBattleSceneMethods, IBattleScene_FieldResult,
940        IBattleScene_FieldResultMethods,
941    };
942    #[cfg(feature = "app-bitfield32")]
943    pub use crate::app::bitfield32::IBitField32Methods;
944    #[cfg(feature = "app-bitfieldcommon")]
945    pub use crate::app::bitfieldcommon::IBitFieldCommonMethods;
946    #[cfg(feature = "app-bitfieldtemplate32_1")]
947    pub use crate::app::bitfieldtemplate32_1::IBitFieldTemplate32_1Methods;
948    #[cfg(feature = "app-pool")]
949    pub use crate::app::pool::IPool_NodeMethods;
950    #[cfg(feature = "system-object")]
951    pub use crate::system::object::IObjectMethods;
952    #[cfg(feature = "system-enum")]
953    pub use crate::system::r#enum::IEnumMethods;
954    #[cfg(feature = "system-valuetype")]
955    pub use crate::system::valuetype::IValueTypeMethods;
956    pub use crate::{
957        app::{bitfield32::IBitField32, bitfieldcommon::IBitFieldCommon, bitfieldtemplate32_1::IBitFieldTemplate32_1, pool::IPool_Node},
958        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
959    };
960}