Skip to main content

engage/generated/app/
itemusesequence.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-itemusesequence-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            collections::generic::list_1::{IList_1, List_1},
12            object::{IObject, Object},
13            r#enum::{Enum, IEnum},
14            valuetype::{IValueType, ValueType},
15        },
16    };
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/itemusesequence/ItemUseSequence_Label.md"))]
19    #[repr(C)]
20    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
21    pub struct ItemUseSequence_Label {
22        pub value: i32,
23    }
24    impl ::unity::ClassIdentity for ItemUseSequence_Label {
25        const NAME: &'static str = "ItemUseSequence.Label";
26        const NAMESPACE: &'static str = "App";
27
28        fn class() -> ::unity::Class {
29            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
30            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
31        }
32    }
33    impl ::unity::IlType for ItemUseSequence_Label {
34        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
35            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
36        }
37    }
38    impl ItemUseSequence_Label {
39        pub fn normal() -> Self {
40            Self { value: 0 }
41        }
42
43        pub fn class_change() -> Self {
44            Self { value: 1 }
45        }
46
47        pub fn end() -> Self {
48            Self { value: 2 }
49        }
50    }
51
52    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/itemusesequence/ItemUseSequence.md"))]
53    #[::unity::class(namespace = "App", name = "ItemUseSequence")]
54    #[parent(crate::app::procinst::ProcInst)]
55    pub struct ItemUseSequence {
56        #[offset(112)]
57        #[rename(name = "m_Unit")]
58        pub m_unit: crate::app::unit::Unit,
59        #[offset(120)]
60        #[rename(name = "m_UseItem")]
61        pub m_use_item: crate::app::unititem::UnitItem,
62        #[offset(128)]
63        #[rename(name = "m_ItemData")]
64        pub m_item_data: crate::app::itemdata::ItemData,
65        #[offset(136)]
66        #[rename(name = "m_TargetIndex")]
67        pub m_target_index: i32,
68        #[offset(140)]
69        #[rename(name = "m_GainExp")]
70        pub m_gain_exp: i32,
71    }
72
73    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/itemusesequence/ItemUseSequence_EnchantedUnitList.md"))]
74    #[::unity::class(namespace = "App", name = "ItemUseSequence.EnchantedUnitList")]
75    #[parent(crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>)]
76    pub struct ItemUseSequence_EnchantedUnitList {}
77}
78
79#[cfg(feature = "app-itemusesequence-types")]
80pub use __types::*;
81
82#[cfg(feature = "app-itemusesequence")]
83impl ItemUseSequence {
84    #[doc = "`HealHp(crate::app::unit::Unit, i32)` overload"]
85    pub fn heal_hp(unit: impl ::core::convert::Into<crate::app::unit::Unit>, heal: impl ::core::convert::Into<i32>) -> () {
86        unsafe {
87            ::unity::il2cpp_call!((::unity::module_base()+0x2051c30usize)as*mut u8,();
88(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(heal))
89        }
90    }
91
92    #[doc = "`TryActiveSkill(crate::app::unit::Unit, crate::app::skilldata::SkillData)` overload"]
93    pub fn try_active_skill(
94        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
95        skill: impl ::core::convert::Into<crate::app::skilldata::SkillData>,
96    ) -> bool {
97        unsafe {
98            ::unity::il2cpp_call!((::unity::module_base()+0x2051ec0usize)as*mut u8,bool;
99(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::skilldata::SkillData)::core::convert::Into::into(skill))
100        }
101    }
102
103    #[doc = "`CreateBind(crate::app::procinst::ProcInst)` overload"]
104    pub fn create_bind(super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
105        unsafe {
106            ::unity::il2cpp_call!((::unity::module_base()+0x2052f60usize)as*mut u8,();
107(crate::app::procinst::ProcInst)::core::convert::Into::into(super_))
108        }
109    }
110}
111
112#[cfg(feature = "app-itemusesequence")]
113pub trait IItemUseSequenceMethods: IItemUseSequence {
114    #[doc = "`.ctor()` overload"]
115    fn ctor(self) -> () {
116        unsafe {
117            let __receiver = <ItemUseSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
118            ::unity::il2cpp_call!((::unity::module_base()+0x2051700usize)as*mut u8,();
119(ItemUseSequence)__receiver)
120        }
121    }
122    #[doc = "`Branch()` overload"]
123    fn branch(self) -> () {
124        unsafe {
125            let __receiver = <ItemUseSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126            ::unity::il2cpp_call!((::unity::module_base()+0x20517f0usize)as*mut u8,();
127(ItemUseSequence)__receiver)
128        }
129    }
130    #[doc = "`GetTargetUnit()` overload"]
131    fn get_target_unit(self) -> crate::app::unit::Unit {
132        unsafe {
133            let __receiver = <ItemUseSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134            ::unity::il2cpp_call!((::unity::module_base()+0x20518a0usize)as*mut u8,crate::app::unit::Unit;
135(ItemUseSequence)__receiver)
136        }
137    }
138    #[doc = "`PlayEffect()` overload"]
139    fn play_effect(self) -> () {
140        unsafe {
141            let __receiver = <ItemUseSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142            ::unity::il2cpp_call!((::unity::module_base()+0x2051a40usize)as*mut u8,();
143(ItemUseSequence)__receiver)
144        }
145    }
146    #[doc = "`HealHp()` overload"]
147    fn heal_hp_2(self) -> crate::system::collections::ienumerator::IEnumerator {
148        unsafe {
149            let __receiver = <ItemUseSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150            ::unity::il2cpp_call!((::unity::module_base()+0x2051f10usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
151(ItemUseSequence)__receiver)
152        }
153    }
154    #[doc = "`ItemUse()` overload"]
155    fn item_use(self) -> () {
156        unsafe {
157            let __receiver = <ItemUseSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158            ::unity::il2cpp_call!((::unity::module_base()+0x2051f90usize)as*mut u8,();
159(ItemUseSequence)__receiver)
160        }
161    }
162    #[doc = "`GainExp()` overload"]
163    fn gain_exp(self) -> () {
164        unsafe {
165            let __receiver = <ItemUseSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166            ::unity::il2cpp_call!((::unity::module_base()+0x20520e0usize)as*mut u8,();
167(ItemUseSequence)__receiver)
168        }
169    }
170    #[doc = "`GetUseType()` overload"]
171    fn get_use_type(self) -> crate::app::itemdata::ItemData_UseTypes {
172        unsafe {
173            let __receiver = <ItemUseSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174            ::unity::il2cpp_call!((::unity::module_base()+0x20523e0usize)as*mut u8,crate::app::itemdata::ItemData_UseTypes;
175(ItemUseSequence)__receiver)
176        }
177    }
178    #[doc = "`IsWeaponEnchant()` overload"]
179    fn is_weapon_enchant(self) -> bool {
180        unsafe {
181            let __receiver = <ItemUseSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182            ::unity::il2cpp_call!((::unity::module_base()+0x2052320usize)as*mut u8,bool;
183(ItemUseSequence)__receiver)
184        }
185    }
186    #[doc = "`WeaponEnchant()` overload"]
187    fn weapon_enchant(self) -> () {
188        unsafe {
189            let __receiver = <ItemUseSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190            ::unity::il2cpp_call!((::unity::module_base()+0x2052480usize)as*mut u8,();
191(ItemUseSequence)__receiver)
192        }
193    }
194    #[doc = "`ShowMessage()` overload"]
195    fn show_message(self) -> () {
196        unsafe {
197            let __receiver = <ItemUseSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
198            ::unity::il2cpp_call!((::unity::module_base()+0x20526c0usize)as*mut u8,();
199(ItemUseSequence)__receiver)
200        }
201    }
202    #[doc = "`TryExpend(crate::app::unititem::UnitItem)` overload"]
203    fn try_expend(self, unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> bool {
204        unsafe {
205            let __receiver = <ItemUseSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
206            ::unity::il2cpp_call!((::unity::module_base()+0x20527b0usize)as*mut u8,bool;
207(ItemUseSequence)__receiver,(crate::app::unititem::UnitItem)::core::convert::Into::into(unit_item))
208        }
209    }
210    #[doc = "`Expend()` overload"]
211    fn expend(self) -> crate::system::collections::ienumerator::IEnumerator {
212        unsafe {
213            let __receiver = <ItemUseSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
214            ::unity::il2cpp_call!((::unity::module_base()+0x2052900usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
215(ItemUseSequence)__receiver)
216        }
217    }
218    #[doc = "`ClassChange()` overload"]
219    fn class_change(self) -> () {
220        unsafe {
221            let __receiver = <ItemUseSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
222            ::unity::il2cpp_call!((::unity::module_base()+0x2052980usize)as*mut u8,();
223(ItemUseSequence)__receiver)
224        }
225    }
226    #[doc = "`ClassChangeRescue()` overload"]
227    fn class_change_rescue(self) -> () {
228        unsafe {
229            let __receiver = <ItemUseSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
230            ::unity::il2cpp_call!((::unity::module_base()+0x2052a50usize)as*mut u8,();
231(ItemUseSequence)__receiver)
232        }
233    }
234    #[doc = "`GetHealHp(crate::app::unit::Unit)` overload"]
235    fn get_heal_hp(self, target: impl ::core::convert::Into<crate::app::unit::Unit>) -> i32 {
236        unsafe {
237            let __receiver = <ItemUseSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
238            ::unity::il2cpp_call!((::unity::module_base()+0x2052bd0usize)as*mut u8,i32;
239(ItemUseSequence)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(target))
240        }
241    }
242    #[doc = "`CanHealHp(crate::app::unit::Unit)` overload"]
243    fn can_heal_hp(self, target: impl ::core::convert::Into<crate::app::unit::Unit>) -> bool {
244        unsafe {
245            let __receiver = <ItemUseSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
246            ::unity::il2cpp_call!((::unity::module_base()+0x2052c70usize)as*mut u8,bool;
247(ItemUseSequence)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(target))
248        }
249    }
250    #[doc = "`CanGain(crate::app::unit::Unit)` overload"]
251    fn can_gain(self, target: impl ::core::convert::Into<crate::app::unit::Unit>) -> bool {
252        unsafe {
253            let __receiver = <ItemUseSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
254            ::unity::il2cpp_call!((::unity::module_base()+0x20522a0usize)as*mut u8,bool;
255(ItemUseSequence)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(target))
256        }
257    }
258    #[doc = "`TryNextTarget()` overload"]
259    fn try_next_target(self) -> () {
260        unsafe {
261            let __receiver = <ItemUseSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
262            ::unity::il2cpp_call!((::unity::module_base()+0x2052e80usize)as*mut u8,();
263(ItemUseSequence)__receiver)
264        }
265    }
266    #[doc = "`TryGrow()` overload"]
267    fn try_grow(self) -> () {
268        unsafe {
269            let __receiver = <ItemUseSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
270            ::unity::il2cpp_call!((::unity::module_base()+0x2052f10usize)as*mut u8,();
271(ItemUseSequence)__receiver)
272        }
273    }
274}
275
276#[cfg(feature = "app-itemusesequence")]
277impl<__T: IItemUseSequence> IItemUseSequenceMethods for __T {}
278
279#[cfg(feature = "app-itemusesequence")]
280impl ItemUseSequence {
281    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
283    }
284
285    pub fn branch_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
287    }
288
289    pub fn get_target_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
291    }
292
293    pub fn play_effect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
295    }
296
297    pub fn heal_hp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
299    }
300
301    pub fn try_active_skill_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
303    }
304
305    pub fn heal_hp_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
307    }
308
309    pub fn item_use_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
311    }
312
313    pub fn gain_exp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
315    }
316
317    pub fn get_use_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
319    }
320
321    pub fn is_weapon_enchant_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
323    }
324
325    pub fn weapon_enchant_method_info() -> &'static ::unity::il2cpp::MethodInfo {
326        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
327    }
328
329    pub fn show_message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
330        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
331    }
332
333    pub fn try_expend_method_info() -> &'static ::unity::il2cpp::MethodInfo {
334        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
335    }
336
337    pub fn expend_method_info() -> &'static ::unity::il2cpp::MethodInfo {
338        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
339    }
340
341    pub fn class_change_method_info() -> &'static ::unity::il2cpp::MethodInfo {
342        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
343    }
344
345    pub fn class_change_rescue_method_info() -> &'static ::unity::il2cpp::MethodInfo {
346        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
347    }
348
349    pub fn get_heal_hp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
350        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
351    }
352
353    pub fn can_heal_hp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
354        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
355    }
356
357    pub fn can_gain_method_info() -> &'static ::unity::il2cpp::MethodInfo {
358        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
359    }
360
361    pub fn try_next_target_method_info() -> &'static ::unity::il2cpp::MethodInfo {
362        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
363    }
364
365    pub fn try_grow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
366        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
367    }
368
369    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
370        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
371    }
372}
373
374#[cfg(feature = "app-itemusesequence")]
375impl ItemUseSequence {
376    #[doc = "`.ctor()` — no args"]
377    pub fn new() -> Self {
378        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
379            panic!(
380                "{}
381::{}
382 failed to instantiate",
383                ::core::stringify!(ItemUseSequence),
384                ::core::stringify!(new),
385            )
386        });
387        <Self as IItemUseSequenceMethods>::ctor(this);
388        this
389    }
390}
391
392#[cfg(feature = "app-itemusesequence")]
393pub trait IItemUseSequence_EnchantedUnitListMethods: IItemUseSequence_EnchantedUnitList {
394    #[doc = "`Search()` overload"]
395    fn search(self) -> () {
396        unsafe {
397            let __receiver =
398                <ItemUseSequence_EnchantedUnitList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
399            ::unity::il2cpp_call!((::unity::module_base()+0x1fd1b40usize)as*mut u8,();
400(ItemUseSequence_EnchantedUnitList)__receiver)
401        }
402    }
403    #[doc = "`.ctor()` overload"]
404    fn ctor(self) -> () {
405        unsafe {
406            let __receiver =
407                <ItemUseSequence_EnchantedUnitList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
408            ::unity::il2cpp_call!((::unity::module_base()+0x1fd1db0usize)as*mut u8,();
409(ItemUseSequence_EnchantedUnitList)__receiver)
410        }
411    }
412}
413
414#[cfg(feature = "app-itemusesequence")]
415impl<__T: IItemUseSequence_EnchantedUnitList> IItemUseSequence_EnchantedUnitListMethods for __T {}
416
417#[cfg(feature = "app-itemusesequence")]
418impl ItemUseSequence_EnchantedUnitList {
419    pub fn search_method_info() -> &'static ::unity::il2cpp::MethodInfo {
420        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
421    }
422
423    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
424        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
425    }
426}
427
428#[cfg(feature = "app-itemusesequence")]
429impl ItemUseSequence_EnchantedUnitList {
430    #[doc = "`.ctor()` — no args"]
431    pub fn new() -> Self {
432        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
433            panic!(
434                "{}
435::{}
436 failed to instantiate",
437                ::core::stringify!(ItemUseSequence_EnchantedUnitList),
438                ::core::stringify!(new),
439            )
440        });
441        <Self as IItemUseSequence_EnchantedUnitListMethods>::ctor(this);
442        this
443    }
444}
445
446#[cfg(feature = "app-itemusesequence")]
447#[doc(hidden)]
448pub mod prelude {
449    pub use super::{
450        IItemUseSequence, IItemUseSequenceMethods, IItemUseSequence_EnchantedUnitList, IItemUseSequence_EnchantedUnitListMethods, ItemUseSequence,
451        ItemUseSequence_EnchantedUnitList, ItemUseSequence_Label,
452    };
453    #[cfg(feature = "app-procinst")]
454    pub use crate::app::procinst::IProcInstMethods;
455    #[cfg(feature = "system-collections-generic-list_1")]
456    pub use crate::system::collections::generic::list_1::IList_1Methods;
457    #[cfg(feature = "system-object")]
458    pub use crate::system::object::IObjectMethods;
459    #[cfg(feature = "system-enum")]
460    pub use crate::system::r#enum::IEnumMethods;
461    #[cfg(feature = "system-valuetype")]
462    pub use crate::system::valuetype::IValueTypeMethods;
463    pub use crate::{
464        app::procinst::IProcInst,
465        system::{collections::generic::list_1::IList_1, object::IObject, r#enum::IEnum, valuetype::IValueType},
466    };
467}