Skip to main content

engage/generated/app/
mapeditchecker.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mapeditchecker-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapeditchecker/MapEditChecker_CheckRange.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct MapEditChecker_CheckRange {
17        pub min_x: i32,
18        pub max_x: i32,
19        pub min_z: i32,
20        pub max_z: i32,
21    }
22    impl ::unity::ClassIdentity for MapEditChecker_CheckRange {
23        const NAME: &'static str = "MapEditChecker.CheckRange";
24        const NAMESPACE: &'static str = "App";
25
26        fn class() -> ::unity::Class {
27            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
28            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
29        }
30    }
31    impl ::unity::IlType for MapEditChecker_CheckRange {
32        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
33            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
34        }
35    }
36
37    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapeditchecker/MapEditChecker.md"))]
38    #[::unity::class(namespace = "App", name = "MapEditChecker")]
39    #[parent(crate::system::object::Object)]
40    pub struct MapEditChecker {}
41}
42
43#[cfg(feature = "app-mapeditchecker-types")]
44pub use __types::*;
45
46#[cfg(feature = "app-mapeditchecker")]
47impl MapEditChecker_CheckRange {
48    #[doc = "`.ctor(i32, i32, i32, i32)` overload"]
49    pub fn ctor(
50        &mut self,
51        x1: impl ::core::convert::Into<i32>,
52        x2: impl ::core::convert::Into<i32>,
53        z1: impl ::core::convert::Into<i32>,
54        z2: impl ::core::convert::Into<i32>,
55    ) -> () {
56        unsafe {
57            ::unity::il2cpp_call!((::unity::module_base()+0x24c2f40usize)as*mut u8,();
58(*mut MapEditChecker_CheckRange)self as*mut MapEditChecker_CheckRange,(i32)::core::convert::Into::into(x1),(i32)::core::convert::Into::into(x2),(i32)::core::convert::Into::into(z1),(i32)::core::convert::Into::into(z2))
59        }
60    }
61
62    #[doc = "`IsRange(crate::app::mappos::MapPos)` overload"]
63    pub fn is_range(&mut self, pos: impl ::core::convert::Into<crate::app::mappos::MapPos>) -> bool {
64        unsafe {
65            ::unity::il2cpp_call!((::unity::module_base()+0x24c2f70usize)as*mut u8,bool;
66(*mut MapEditChecker_CheckRange)self as*mut MapEditChecker_CheckRange,(crate::app::mappos::MapPos)::core::convert::Into::into(pos))
67        }
68    }
69
70    #[doc = "`IsRange(i32, i32)` overload"]
71    pub fn is_range_2(&mut self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> bool {
72        unsafe {
73            ::unity::il2cpp_call!((::unity::module_base()+0x24c2fc0usize)as*mut u8,bool;
74(*mut MapEditChecker_CheckRange)self as*mut MapEditChecker_CheckRange,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
75        }
76    }
77
78    #[doc = "`Dispose()` overload"]
79    pub fn dispose(&mut self) -> () {
80        unsafe {
81            ::unity::il2cpp_call!((::unity::module_base()+0x24c3010usize)as*mut u8,();
82(*mut MapEditChecker_CheckRange)self as*mut MapEditChecker_CheckRange)
83        }
84    }
85
86    #[doc = "`ToString()` overload"]
87    pub fn to_string(&mut self) -> ::unity::Il2CppString {
88        unsafe {
89            ::unity::il2cpp_call!((::unity::module_base()+0x24c3020usize)as*mut u8, ::unity::Il2CppString;
90(*mut MapEditChecker_CheckRange)self as*mut MapEditChecker_CheckRange)
91        }
92    }
93}
94
95#[cfg(feature = "app-mapeditchecker")]
96impl MapEditChecker_CheckRange {
97    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
99    }
100
101    pub fn is_range_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
103    }
104
105    pub fn is_range_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
107    }
108
109    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
111    }
112
113    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
115    }
116}
117
118#[cfg(feature = "app-mapeditchecker")]
119impl MapEditChecker {
120    #[doc = "`Check(bool)` overload"]
121    pub fn check(is_opponent: impl ::core::convert::Into<bool>) -> bool {
122        unsafe {
123            ::unity::il2cpp_call!((::unity::module_base()+0x1dab9b0usize)as*mut u8,bool;
124(bool)::core::convert::Into::into(is_opponent))
125        }
126    }
127
128    #[doc = "`get_SizeX()` overload"]
129    pub fn get_size_x() -> i32 {
130        unsafe {
131            ::unity::il2cpp_call!((::unity::module_base()+0x1dabdb0usize)as*mut u8,i32;
132            )
133        }
134    }
135
136    #[doc = "`get_SizeZ()` overload"]
137    pub fn get_size_z() -> i32 {
138        unsafe {
139            ::unity::il2cpp_call!((::unity::module_base()+0x1dabe30usize)as*mut u8,i32;
140            )
141        }
142    }
143
144    #[doc = "`GetUnitCount()` overload"]
145    pub fn get_unit_count() -> i32 {
146        unsafe {
147            ::unity::il2cpp_call!((::unity::module_base()+0x1dabeb0usize)as*mut u8,i32;
148            )
149        }
150    }
151
152    #[doc = "`GetOpponentCount()` overload"]
153    pub fn get_opponent_count() -> i32 {
154        unsafe {
155            ::unity::il2cpp_call!((::unity::module_base()+0x1dabef0usize)as*mut u8,i32;
156            )
157        }
158    }
159
160    #[doc = "`CanMove(i32, i32, bool)` overload"]
161    pub fn can_move(
162        x: impl ::core::convert::Into<i32>,
163        z: impl ::core::convert::Into<i32>,
164        breakable_is_true: impl ::core::convert::Into<bool>,
165    ) -> bool {
166        unsafe {
167            ::unity::il2cpp_call!((::unity::module_base()+0x1dabf30usize)as*mut u8,bool;
168(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(bool)::core::convert::Into::into(breakable_is_true))
169        }
170    }
171
172    #[doc = "`CanMoveBreakable(i32, i32)` overload"]
173    pub fn can_move_breakable(x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> bool {
174        unsafe {
175            ::unity::il2cpp_call!((::unity::module_base()+0x1dabfa0usize)as*mut u8,bool;
176(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
177        }
178    }
179
180    #[doc = "`GetTerrain(i32, i32)` overload"]
181    pub fn get_terrain(x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> crate::app::terraindata_2::TerrainData_2 {
182        unsafe {
183            ::unity::il2cpp_call!((::unity::module_base()+0x1dac0c0usize)as*mut u8,crate::app::terraindata_2::TerrainData_2;
184(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
185        }
186    }
187
188    #[doc = "`ExistsUnit(i32, i32)` overload"]
189    pub fn exists_unit(x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> bool {
190        unsafe {
191            ::unity::il2cpp_call!((::unity::module_base()+0x1dac210usize)as*mut u8,bool;
192(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
193        }
194    }
195
196    #[doc = "`CheckMyMap()` overload"]
197    pub fn check_my_map() -> bool {
198        unsafe {
199            ::unity::il2cpp_call!((::unity::module_base()+0x1dabbe0usize)as*mut u8,bool;
200            )
201        }
202    }
203
204    #[doc = "`CheckOpponentMap()` overload"]
205    pub fn check_opponent_map() -> bool {
206        unsafe {
207            ::unity::il2cpp_call!((::unity::module_base()+0x1dab9c0usize)as*mut u8,bool;
208            )
209        }
210    }
211
212    #[doc = "`CheckRecursive(crate::app::mappos::MapPos, crate::app::mapeditchecker::MapEditChecker_CheckRange, crate::system::collections::generic::hashset_1::HashSet_1<crate::app::mappos::MapPos>, i32)` overload"]
213    pub fn check_recursive(
214        pos: impl ::core::convert::Into<crate::app::mappos::MapPos>,
215        range: impl ::core::convert::Into<crate::app::mapeditchecker::MapEditChecker_CheckRange>,
216        reach_set: impl ::core::convert::Into<crate::system::collections::generic::hashset_1::HashSet_1<crate::app::mappos::MapPos>>,
217        total_count: impl ::core::convert::Into<i32>,
218    ) -> i32 {
219        unsafe {
220            ::unity::il2cpp_call!((::unity::module_base()+0x1dac2b0usize)as*mut u8,i32;
221(crate::app::mappos::MapPos)::core::convert::Into::into(pos),(crate::app::mapeditchecker::MapEditChecker_CheckRange)::core::convert::Into::into(range),(crate::system::collections::generic::hashset_1::HashSet_1<crate::app::mappos::MapPos>)::core::convert::Into::into(reach_set),(i32)::core::convert::Into::into(total_count))
222        }
223    }
224}
225
226#[cfg(feature = "app-mapeditchecker")]
227pub trait IMapEditCheckerMethods: IMapEditChecker {
228    #[doc = "`.ctor()` overload"]
229    fn ctor(self) -> () {
230        unsafe {
231            let __receiver = <MapEditChecker as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
232            ::unity::il2cpp_call!((::unity::module_base()+0x1dac4d0usize)as*mut u8,();
233(MapEditChecker)__receiver)
234        }
235    }
236}
237
238#[cfg(feature = "app-mapeditchecker")]
239impl<__T: IMapEditChecker> IMapEditCheckerMethods for __T {}
240
241#[cfg(feature = "app-mapeditchecker")]
242impl MapEditChecker {
243    pub fn check_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
245    }
246
247    pub fn get_size_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
249    }
250
251    pub fn get_size_z_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
253    }
254
255    pub fn get_unit_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
257    }
258
259    pub fn get_opponent_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
261    }
262
263    pub fn can_move_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
265    }
266
267    pub fn can_move_breakable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
269    }
270
271    pub fn get_terrain_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
273    }
274
275    pub fn exists_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
277    }
278
279    pub fn check_my_map_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
281    }
282
283    pub fn check_opponent_map_method_info() -> &'static ::unity::il2cpp::MethodInfo {
284        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
285    }
286
287    pub fn check_recursive_method_info() -> &'static ::unity::il2cpp::MethodInfo {
288        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
289    }
290
291    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
292        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
293    }
294}
295
296#[cfg(feature = "app-mapeditchecker")]
297impl MapEditChecker {
298    #[doc = "`.ctor()` — no args"]
299    pub fn new() -> Self {
300        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
301            panic!(
302                "{}
303::{}
304 failed to instantiate",
305                ::core::stringify!(MapEditChecker),
306                ::core::stringify!(new),
307            )
308        });
309        <Self as IMapEditCheckerMethods>::ctor(this);
310        this
311    }
312}
313
314#[cfg(feature = "app-mapeditchecker")]
315#[doc(hidden)]
316pub mod prelude {
317    pub use super::{IMapEditChecker, IMapEditCheckerMethods, MapEditChecker, MapEditChecker_CheckRange};
318    #[cfg(feature = "system-object")]
319    pub use crate::system::object::IObjectMethods;
320    #[cfg(feature = "system-valuetype")]
321    pub use crate::system::valuetype::IValueTypeMethods;
322    pub use crate::system::{object::IObject, valuetype::IValueType};
323}