Skip to main content

engage/generated/app/
mapitemhelper.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mapitemhelper-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        r#enum::{Enum, IEnum},
11        valuetype::{IValueType, ValueType},
12    };
13
14    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapitemhelper/MapItemHelper_BlessFlags.md"))]
15    #[repr(C)]
16    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17    pub struct MapItemHelper_BlessFlags {
18        pub value: i32,
19    }
20    impl ::unity::ClassIdentity for MapItemHelper_BlessFlags {
21        const NAME: &'static str = "MapItemHelper.BlessFlags";
22        const NAMESPACE: &'static str = "App";
23
24        fn class() -> ::unity::Class {
25            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27        }
28    }
29    impl ::unity::IlType for MapItemHelper_BlessFlags {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34    impl MapItemHelper_BlessFlags {
35        pub fn heal() -> Self {
36            Self { value: 1 }
37        }
38
39        pub fn stock() -> Self {
40            Self { value: 2 }
41        }
42
43        pub fn disorder() -> Self {
44            Self { value: 4 }
45        }
46
47        pub fn engage_turn() -> Self {
48            Self { value: 8 }
49        }
50
51        pub fn engage_count() -> Self {
52            Self { value: 16 }
53        }
54
55        pub fn max_heal() -> Self {
56            Self { value: 32 }
57        }
58    }
59
60    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapitemhelper/MapItemHelper.md"))]
61    #[::unity::class(namespace = "App", name = "MapItemHelper")]
62    #[parent(crate::system::object::Object)]
63    pub struct MapItemHelper {}
64
65    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapitemhelper/MapItemHelper_Flag.md"))]
66    #[repr(C)]
67    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
68    pub struct MapItemHelper_Flag {
69        pub value: i32,
70    }
71    impl ::unity::ClassIdentity for MapItemHelper_Flag {
72        const NAME: &'static str = "MapItemHelper.Flag";
73        const NAMESPACE: &'static str = "App";
74
75        fn class() -> ::unity::Class {
76            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
77            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
78        }
79    }
80    impl ::unity::IlType for MapItemHelper_Flag {
81        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
82            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
83        }
84    }
85    impl MapItemHelper_Flag {
86        pub fn attack() -> Self {
87            Self { value: 1 }
88        }
89
90        pub fn rod() -> Self {
91            Self { value: 2 }
92        }
93
94        pub fn destroy() -> Self {
95            Self { value: 4 }
96        }
97
98        pub fn offense() -> Self {
99            Self { value: 8 }
100        }
101
102        pub fn direct_rod() -> Self {
103            Self { value: 16 }
104        }
105    }
106}
107
108#[cfg(feature = "app-mapitemhelper-types")]
109pub use __types::*;
110
111#[cfg(feature = "app-mapitemhelper")]
112impl MapItemHelper {
113    #[doc = "`CanUse(crate::app::unit::Unit, i32, i32, i32, i32, i32, crate::app::mapitemhelper::MapItemHelper_Flag, crate::app::skilldata::SkillData)` overload"]
114    pub fn can_use(
115        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
116        unit_item_index: impl ::core::convert::Into<i32>,
117        target_x: impl ::core::convert::Into<i32>,
118        target_z: impl ::core::convert::Into<i32>,
119        unit_x: impl ::core::convert::Into<i32>,
120        unit_z: impl ::core::convert::Into<i32>,
121        flag: impl ::core::convert::Into<crate::app::mapitemhelper::MapItemHelper_Flag>,
122        skill: impl ::core::convert::Into<crate::app::skilldata::SkillData>,
123    ) -> bool {
124        unsafe {
125            ::unity::il2cpp_call!((::unity::module_base()+0x1de85e0usize)as*mut u8,bool;
126(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(unit_item_index),(i32)::core::convert::Into::into(target_x),(i32)::core::convert::Into::into(target_z),(i32)::core::convert::Into::into(unit_x),(i32)::core::convert::Into::into(unit_z),(crate::app::mapitemhelper::MapItemHelper_Flag)::core::convert::Into::into(flag),(crate::app::skilldata::SkillData)::core::convert::Into::into(skill))
127        }
128    }
129
130    #[doc = "`GetUseTargetUnit(crate::app::unit::Unit, crate::app::itemdata::ItemData, i32, i32)` overload"]
131    pub fn get_use_target_unit(
132        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
133        item: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
134        x: impl ::core::convert::Into<i32>,
135        z: impl ::core::convert::Into<i32>,
136    ) -> crate::app::unit::Unit {
137        unsafe {
138            ::unity::il2cpp_call!((::unity::module_base()+0x1de9d40usize)as*mut u8,crate::app::unit::Unit;
139(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::itemdata::ItemData)::core::convert::Into::into(item),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
140        }
141    }
142
143    #[doc = "`CanUse(crate::app::unit::Unit, crate::app::unititem::UnitItem, i32, i32, i32, i32, crate::app::mapitemhelper::MapItemHelper_Flag, crate::app::skilldata::SkillData)` overload"]
144    pub fn can_use_2(
145        attack_unit: impl ::core::convert::Into<crate::app::unit::Unit>,
146        unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>,
147        atk_pos_x: impl ::core::convert::Into<i32>,
148        atk_pos_z: impl ::core::convert::Into<i32>,
149        target_pos_x: impl ::core::convert::Into<i32>,
150        target_pos_z: impl ::core::convert::Into<i32>,
151        flag: impl ::core::convert::Into<crate::app::mapitemhelper::MapItemHelper_Flag>,
152        skill: impl ::core::convert::Into<crate::app::skilldata::SkillData>,
153    ) -> bool {
154        unsafe {
155            ::unity::il2cpp_call!((::unity::module_base()+0x1de8660usize)as*mut u8,bool;
156(crate::app::unit::Unit)::core::convert::Into::into(attack_unit),(crate::app::unititem::UnitItem)::core::convert::Into::into(unit_item),(i32)::core::convert::Into::into(atk_pos_x),(i32)::core::convert::Into::into(atk_pos_z),(i32)::core::convert::Into::into(target_pos_x),(i32)::core::convert::Into::into(target_pos_z),(crate::app::mapitemhelper::MapItemHelper_Flag)::core::convert::Into::into(flag),(crate::app::skilldata::SkillData)::core::convert::Into::into(skill))
157        }
158    }
159
160    #[doc = "`IsTargetAllied(crate::app::itemdata::ItemData_UseTypes)` overload"]
161    pub fn is_target_allied(r#type: impl ::core::convert::Into<crate::app::itemdata::ItemData_UseTypes>) -> bool {
162        unsafe {
163            ::unity::il2cpp_call!((::unity::module_base()+0x1dea220usize)as*mut u8,bool;
164(crate::app::itemdata::ItemData_UseTypes)::core::convert::Into::into(r#type))
165        }
166    }
167
168    #[doc = "`CanDirectTarget(crate::app::itemdata::ItemData)` overload"]
169    pub fn can_direct_target(item: impl ::core::convert::Into<crate::app::itemdata::ItemData>) -> bool {
170        unsafe {
171            ::unity::il2cpp_call!((::unity::module_base()+0x1de9e90usize)as*mut u8,bool;
172(crate::app::itemdata::ItemData)::core::convert::Into::into(item))
173        }
174    }
175
176    #[doc = "`GetBlessFlags(crate::app::itemdata::ItemData, crate::app::unit::Unit, crate::app::itemdata::ItemData_UseTypes)` overload"]
177    pub fn get_bless_flags(
178        item: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
179        target: impl ::core::convert::Into<crate::app::unit::Unit>,
180        use_type: impl ::core::convert::Into<crate::app::itemdata::ItemData_UseTypes>,
181    ) -> crate::app::mapitemhelper::MapItemHelper_BlessFlags {
182        unsafe {
183            ::unity::il2cpp_call!((::unity::module_base()+0x1dea250usize)as*mut u8,crate::app::mapitemhelper::MapItemHelper_BlessFlags;
184(crate::app::itemdata::ItemData)::core::convert::Into::into(item),(crate::app::unit::Unit)::core::convert::Into::into(target),(crate::app::itemdata::ItemData_UseTypes)::core::convert::Into::into(use_type))
185        }
186    }
187
188    #[doc = "`GetBlessFlags(crate::app::itemdata::ItemData, crate::app::unit::Unit)` overload"]
189    pub fn get_bless_flags_2(
190        item: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
191        target: impl ::core::convert::Into<crate::app::unit::Unit>,
192    ) -> crate::app::mapitemhelper::MapItemHelper_BlessFlags {
193        unsafe {
194            ::unity::il2cpp_call!((::unity::module_base()+0x1dea660usize)as*mut u8,crate::app::mapitemhelper::MapItemHelper_BlessFlags;
195(crate::app::itemdata::ItemData)::core::convert::Into::into(item),(crate::app::unit::Unit)::core::convert::Into::into(target))
196        }
197    }
198
199    #[doc = "`CanUseImpl(crate::app::unit::Unit, crate::app::itemdata::ItemData, crate::app::unit::Unit, crate::app::itemdata::ItemData_UseTypes, crate::app::skillarray::SkillArray)` overload"]
200    pub fn can_use_impl(
201        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
202        item: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
203        target: impl ::core::convert::Into<crate::app::unit::Unit>,
204        use_type: impl ::core::convert::Into<crate::app::itemdata::ItemData_UseTypes>,
205        give_skills: impl ::core::convert::Into<crate::app::skillarray::SkillArray>,
206    ) -> bool {
207        unsafe {
208            ::unity::il2cpp_call!((::unity::module_base()+0x1dea700usize)as*mut u8,bool;
209(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::itemdata::ItemData)::core::convert::Into::into(item),(crate::app::unit::Unit)::core::convert::Into::into(target),(crate::app::itemdata::ItemData_UseTypes)::core::convert::Into::into(use_type),(crate::app::skillarray::SkillArray)::core::convert::Into::into(give_skills))
210        }
211    }
212
213    #[doc = "`CanUseEnchant(crate::app::unit::Unit, crate::app::itemdata::ItemData, crate::app::unit::Unit, bool)` overload"]
214    pub fn can_use_enchant(
215        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
216        item: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
217        target: impl ::core::convert::Into<crate::app::unit::Unit>,
218        cancelable: impl ::core::convert::Into<bool>,
219    ) -> bool {
220        unsafe {
221            ::unity::il2cpp_call!((::unity::module_base()+0x1debb60usize)as*mut u8,bool;
222(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::itemdata::ItemData)::core::convert::Into::into(item),(crate::app::unit::Unit)::core::convert::Into::into(target),(bool)::core::convert::Into::into(cancelable))
223        }
224    }
225
226    #[doc = "`CanUseTarget(crate::app::unit::Unit, crate::app::itemdata::ItemData, crate::app::unit::Unit)` overload"]
227    pub fn can_use_target(
228        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
229        item: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
230        target: impl ::core::convert::Into<crate::app::unit::Unit>,
231    ) -> bool {
232        unsafe {
233            ::unity::il2cpp_call!((::unity::module_base()+0x1debc80usize)as*mut u8,bool;
234(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::itemdata::ItemData)::core::convert::Into::into(item),(crate::app::unit::Unit)::core::convert::Into::into(target))
235        }
236    }
237
238    #[doc = "`GetItemIndex(crate::app::unit::Unit, i32, i32, i32, i32, crate::app::mapitemhelper::MapItemHelper_Flag)` overload"]
239    pub fn get_item_index(
240        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
241        target_x: impl ::core::convert::Into<i32>,
242        target_z: impl ::core::convert::Into<i32>,
243        unit_x: impl ::core::convert::Into<i32>,
244        unit_z: impl ::core::convert::Into<i32>,
245        flag: impl ::core::convert::Into<crate::app::mapitemhelper::MapItemHelper_Flag>,
246    ) -> i32 {
247        unsafe {
248            ::unity::il2cpp_call!((::unity::module_base()+0x1debca0usize)as*mut u8,i32;
249(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(target_x),(i32)::core::convert::Into::into(target_z),(i32)::core::convert::Into::into(unit_x),(i32)::core::convert::Into::into(unit_z),(crate::app::mapitemhelper::MapItemHelper_Flag)::core::convert::Into::into(flag))
250        }
251    }
252
253    #[doc = "`ForEachRodTarget(crate::app::unit::Unit, crate::app::itemdata::ItemData, i32, i32, crate::app::skilldata::SkillData, crate::system::action_1::Action_1<crate::app::unit::Unit>)` overload"]
254    pub fn for_each_rod_target(
255        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
256        item: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
257        target_x: impl ::core::convert::Into<i32>,
258        target_z: impl ::core::convert::Into<i32>,
259        skill: impl ::core::convert::Into<crate::app::skilldata::SkillData>,
260        func: impl ::core::convert::Into<crate::system::action_1::Action_1<crate::app::unit::Unit>>,
261    ) -> () {
262        unsafe {
263            ::unity::il2cpp_call!((::unity::module_base()+0x1debee0usize)as*mut u8,();
264(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::itemdata::ItemData)::core::convert::Into::into(item),(i32)::core::convert::Into::into(target_x),(i32)::core::convert::Into::into(target_z),(crate::app::skilldata::SkillData)::core::convert::Into::into(skill),(crate::system::action_1::Action_1<crate::app::unit::Unit>)::core::convert::Into::into(func))
265        }
266    }
267
268    #[doc = "`ForEachRodRange(crate::app::unit::Unit, crate::app::itemdata::ItemData, i32, i32, crate::system::action_2::Action_2<i32,i32>)` overload"]
269    pub fn for_each_rod_range(
270        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
271        item: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
272        target_x: impl ::core::convert::Into<i32>,
273        target_z: impl ::core::convert::Into<i32>,
274        func: impl ::core::convert::Into<crate::system::action_2::Action_2<i32, i32>>,
275    ) -> () {
276        unsafe {
277            ::unity::il2cpp_call!((::unity::module_base()+0x1dec970usize)as*mut u8,();
278(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::itemdata::ItemData)::core::convert::Into::into(item),(i32)::core::convert::Into::into(target_x),(i32)::core::convert::Into::into(target_z),(crate::system::action_2::Action_2<i32,i32>)::core::convert::Into::into(func))
279        }
280    }
281
282    #[doc = "`TryCreation(crate::app::procinst::ProcInst, crate::app::unit::Unit, i32, i32, ::unity::Il2CppString)` overload"]
283    pub fn try_creation(
284        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
285        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
286        target_x: impl ::core::convert::Into<i32>,
287        target_z: impl ::core::convert::Into<i32>,
288        tid: impl ::core::convert::Into<::unity::Il2CppString>,
289    ) -> bool {
290        unsafe {
291            ::unity::il2cpp_call!((::unity::module_base()+0x1decb60usize)as*mut u8,bool;
292(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(target_x),(i32)::core::convert::Into::into(target_z),(::unity::Il2CppString)::core::convert::Into::into(tid))
293        }
294    }
295
296    #[doc = "`GetRescuePosition(*muti32, *muti32, crate::app::unit::Unit, i32, i32, bool)` overload"]
297    pub fn get_rescue_position(
298        target: impl ::core::convert::Into<crate::app::unit::Unit>,
299        src_x: impl ::core::convert::Into<i32>,
300        src_z: impl ::core::convert::Into<i32>,
301        is_here: impl ::core::convert::Into<bool>,
302    ) -> (bool, i32, i32) {
303        unsafe {
304            let mut __out_0 = ::core::mem::MaybeUninit::<i32>::uninit();
305            let mut __out_1 = ::core::mem::MaybeUninit::<i32>::uninit();
306            let __ret = {
307                ::unity::il2cpp_call!((::unity::module_base()+0x1dece70usize)as*mut u8,bool;
308(*mut i32)__out_0.as_mut_ptr(),(*mut i32)__out_1.as_mut_ptr(),(crate::app::unit::Unit)::core::convert::Into::into(target),(i32)::core::convert::Into::into(src_x),(i32)::core::convert::Into::into(src_z),(bool)::core::convert::Into::into(is_here))
309            };
310            (__ret, __out_0.assume_init(), __out_1.assume_init())
311        }
312    }
313
314    #[doc = "`GetRescuePosition(crate::app::unit::Unit, *muti32, *muti32, crate::app::unit::Unit, i32, i32, bool)` overload"]
315    pub fn get_rescue_position_2(
316        rod_unit: impl ::core::convert::Into<crate::app::unit::Unit>,
317        target: impl ::core::convert::Into<crate::app::unit::Unit>,
318        src_x: impl ::core::convert::Into<i32>,
319        src_z: impl ::core::convert::Into<i32>,
320        is_here: impl ::core::convert::Into<bool>,
321    ) -> (bool, i32, i32) {
322        unsafe {
323            let mut __out_0 = ::core::mem::MaybeUninit::<i32>::uninit();
324            let mut __out_1 = ::core::mem::MaybeUninit::<i32>::uninit();
325            let __ret = {
326                ::unity::il2cpp_call!((::unity::module_base()+0x1decea0usize)as*mut u8,bool;
327(crate::app::unit::Unit)::core::convert::Into::into(rod_unit),(*mut i32)__out_0.as_mut_ptr(),(*mut i32)__out_1.as_mut_ptr(),(crate::app::unit::Unit)::core::convert::Into::into(target),(i32)::core::convert::Into::into(src_x),(i32)::core::convert::Into::into(src_z),(bool)::core::convert::Into::into(is_here))
328            };
329            (__ret, __out_0.assume_init(), __out_1.assume_init())
330        }
331    }
332
333    #[doc = "`CanAttack(crate::app::unit::Unit, crate::app::unit::Unit, crate::app::mapitemhelper::MapItemHelper_Flag)` overload"]
334    pub fn can_attack(
335        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
336        target: impl ::core::convert::Into<crate::app::unit::Unit>,
337        flag: impl ::core::convert::Into<crate::app::mapitemhelper::MapItemHelper_Flag>,
338    ) -> bool {
339        unsafe {
340            ::unity::il2cpp_call!((::unity::module_base()+0x1de9f50usize)as*mut u8,bool;
341(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::unit::Unit)::core::convert::Into::into(target),(crate::app::mapitemhelper::MapItemHelper_Flag)::core::convert::Into::into(flag))
342        }
343    }
344
345    #[doc = "`CanRod(crate::app::unit::Unit, crate::app::unit::Unit, crate::app::itemdata::ItemData, crate::app::mapitemhelper::MapItemHelper_Flag)` overload"]
346    pub fn can_rod(
347        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
348        target: impl ::core::convert::Into<crate::app::unit::Unit>,
349        item: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
350        flag: impl ::core::convert::Into<crate::app::mapitemhelper::MapItemHelper_Flag>,
351    ) -> bool {
352        unsafe {
353            ::unity::il2cpp_call!((::unity::module_base()+0x1dea050usize)as*mut u8,bool;
354(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::unit::Unit)::core::convert::Into::into(target),(crate::app::itemdata::ItemData)::core::convert::Into::into(item),(crate::app::mapitemhelper::MapItemHelper_Flag)::core::convert::Into::into(flag))
355        }
356    }
357
358    #[doc = "`GetFireCannonItem()` overload"]
359    pub fn get_fire_cannon_item() -> crate::app::itemdata::ItemData {
360        unsafe {
361            ::unity::il2cpp_call!((::unity::module_base()+0x1ded810usize)as*mut u8,crate::app::itemdata::ItemData;
362            )
363        }
364    }
365
366    #[doc = "`GetFireCannonRangeIO(crate::app::unit::Unit, *muti32, *muti32)` overload"]
367    pub fn get_fire_cannon_range_io(unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> (i32, i32) {
368        unsafe {
369            let mut __out_0 = ::core::mem::MaybeUninit::<i32>::uninit();
370            let mut __out_1 = ::core::mem::MaybeUninit::<i32>::uninit();
371            ::unity::il2cpp_call!((::unity::module_base()+0x1ded8a0usize)as*mut u8,();
372(crate::app::unit::Unit)::core::convert::Into::into(unit),(*mut i32)__out_0.as_mut_ptr(),(*mut i32)__out_1.as_mut_ptr());
373            (__out_0.assume_init(), __out_1.assume_init())
374        }
375    }
376
377    #[doc = "`GetHealPower(crate::app::unit::Unit, crate::app::itemdata::ItemData_UseTypes, i32)` overload"]
378    pub fn get_heal_power(
379        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
380        use_type: impl ::core::convert::Into<crate::app::itemdata::ItemData_UseTypes>,
381        power: impl ::core::convert::Into<i32>,
382    ) -> i32 {
383        unsafe {
384            ::unity::il2cpp_call!((::unity::module_base()+0x1deda00usize)as*mut u8,i32;
385(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::itemdata::ItemData_UseTypes)::core::convert::Into::into(use_type),(i32)::core::convert::Into::into(power))
386        }
387    }
388
389    #[doc = "`GetHealPower(crate::app::unit::Unit, crate::app::itemdata::ItemData, bool)` overload"]
390    pub fn get_heal_power_2(
391        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
392        item: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
393        is_enchant: impl ::core::convert::Into<bool>,
394    ) -> i32 {
395        unsafe {
396            ::unity::il2cpp_call!((::unity::module_base()+0x1deda50usize)as*mut u8,i32;
397(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::itemdata::ItemData)::core::convert::Into::into(item),(bool)::core::convert::Into::into(is_enchant))
398        }
399    }
400}
401
402#[cfg(feature = "app-mapitemhelper")]
403pub trait IMapItemHelperMethods: IMapItemHelper {
404    #[doc = "`.ctor()` overload"]
405    fn ctor(self) -> () {
406        unsafe {
407            let __receiver = <MapItemHelper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
408            ::unity::il2cpp_call!((::unity::module_base()+0x1dedae0usize)as*mut u8,();
409(MapItemHelper)__receiver)
410        }
411    }
412}
413
414#[cfg(feature = "app-mapitemhelper")]
415impl<__T: IMapItemHelper> IMapItemHelperMethods for __T {}
416
417#[cfg(feature = "app-mapitemhelper")]
418impl MapItemHelper {
419    pub fn can_use_method_info() -> &'static ::unity::il2cpp::MethodInfo {
420        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
421    }
422
423    pub fn get_use_target_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
424        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
425    }
426
427    pub fn can_use_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
428        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
429    }
430
431    pub fn is_target_allied_method_info() -> &'static ::unity::il2cpp::MethodInfo {
432        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
433    }
434
435    pub fn can_direct_target_method_info() -> &'static ::unity::il2cpp::MethodInfo {
436        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
437    }
438
439    pub fn get_bless_flags_method_info() -> &'static ::unity::il2cpp::MethodInfo {
440        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
441    }
442
443    pub fn get_bless_flags_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
444        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
445    }
446
447    pub fn can_use_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
448        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
449    }
450
451    pub fn can_use_enchant_method_info() -> &'static ::unity::il2cpp::MethodInfo {
452        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
453    }
454
455    pub fn can_use_target_method_info() -> &'static ::unity::il2cpp::MethodInfo {
456        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
457    }
458
459    pub fn get_item_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
460        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
461    }
462
463    pub fn for_each_rod_target_method_info() -> &'static ::unity::il2cpp::MethodInfo {
464        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
465    }
466
467    pub fn for_each_rod_range_method_info() -> &'static ::unity::il2cpp::MethodInfo {
468        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
469    }
470
471    pub fn try_creation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
472        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
473    }
474
475    pub fn get_rescue_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
476        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
477    }
478
479    pub fn get_rescue_position_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
480        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
481    }
482
483    pub fn can_attack_method_info() -> &'static ::unity::il2cpp::MethodInfo {
484        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
485    }
486
487    pub fn can_rod_method_info() -> &'static ::unity::il2cpp::MethodInfo {
488        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
489    }
490
491    pub fn get_fire_cannon_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
492        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
493    }
494
495    pub fn get_fire_cannon_range_io_method_info() -> &'static ::unity::il2cpp::MethodInfo {
496        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
497    }
498
499    pub fn get_heal_power_method_info() -> &'static ::unity::il2cpp::MethodInfo {
500        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
501    }
502
503    pub fn get_heal_power_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
504        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
505    }
506
507    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
508        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
509    }
510}
511
512#[cfg(feature = "app-mapitemhelper")]
513impl MapItemHelper {
514    #[doc = "`.ctor()` — no args"]
515    pub fn new() -> Self {
516        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
517            panic!(
518                "{}
519::{}
520 failed to instantiate",
521                ::core::stringify!(MapItemHelper),
522                ::core::stringify!(new),
523            )
524        });
525        <Self as IMapItemHelperMethods>::ctor(this);
526        this
527    }
528}
529
530#[cfg(feature = "app-mapitemhelper")]
531#[doc(hidden)]
532pub mod prelude {
533    pub use super::{IMapItemHelper, IMapItemHelperMethods, MapItemHelper, MapItemHelper_BlessFlags, MapItemHelper_Flag};
534    #[cfg(feature = "system-object")]
535    pub use crate::system::object::IObjectMethods;
536    #[cfg(feature = "system-enum")]
537    pub use crate::system::r#enum::IEnumMethods;
538    #[cfg(feature = "system-valuetype")]
539    pub use crate::system::valuetype::IValueTypeMethods;
540    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
541}