1#[cfg(feature = "app-mapimageunit-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 mapimagecore_1::{IMapImageCore_1, MapImageCore_1},
11 mapimagecorebyte::{IMapImageCoreByte, MapImageCoreByte},
12 mapimageindex::{IMapImageIndex, MapImageIndex},
13 },
14 system::{
15 object::{IObject, Object},
16 valuetype::{IValueType, ValueType},
17 },
18 };
19
20 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapimageunit/MapImageUnit.md"))]
21 #[::unity::class(namespace = "App", name = "MapImageUnit")]
22 #[parent(crate::app::mapimagecorebyte::MapImageCoreByte)]
23 pub struct MapImageUnit {
24 #[offset(24)]
25 #[rename(name = "m_Cells")]
26 pub m_cells: ::unity::Array<crate::app::mappos::MapPos>,
27 }
28
29 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapimageunit/MapImageUnit_UnitScope.md"))]
30 #[repr(C)]
31 #[derive(::core::clone::Clone, ::core::marker::Copy)]
32 pub struct MapImageUnit_UnitScope {
33 pub m_unit: crate::app::unit::Unit,
34 }
35 impl ::unity::ClassIdentity for MapImageUnit_UnitScope {
36 const NAME: &'static str = "MapImageUnit.UnitScope";
37 const NAMESPACE: &'static str = "App";
38
39 fn class() -> ::unity::Class {
40 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
41 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
42 }
43 }
44 impl ::unity::IlType for MapImageUnit_UnitScope {
45 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
46 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
47 }
48 }
49
50 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapimageunit/MapImageUnit_PositionScope.md"))]
51 #[repr(C)]
52 #[derive(::core::clone::Clone, ::core::marker::Copy)]
53 pub struct MapImageUnit_PositionScope {
54 pub m_unit: crate::app::unit::Unit,
55 pub m_x: i32,
56 pub m_z: i32,
57 }
58 impl ::unity::ClassIdentity for MapImageUnit_PositionScope {
59 const NAME: &'static str = "MapImageUnit.PositionScope";
60 const NAMESPACE: &'static str = "App";
61
62 fn class() -> ::unity::Class {
63 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
64 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
65 }
66 }
67 impl ::unity::IlType for MapImageUnit_PositionScope {
68 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
69 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
70 }
71 }
72}
73
74#[cfg(feature = "app-mapimageunit-types")]
75pub use __types::*;
76
77#[cfg(feature = "app-mapimageunit")]
78pub trait IMapImageUnitMethods: IMapImageUnit {
79 #[doc = "`GetUnit(i32, i32)` overload"]
80 fn get_unit(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> crate::app::unit::Unit {
81 unsafe {
82 let __receiver = <MapImageUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83 ::unity::il2cpp_call!((::unity::module_base()+0x2064fb0usize)as*mut u8,crate::app::unit::Unit;
84(MapImageUnit)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
85 }
86 }
87 #[doc = "`GetUnitWithMind(i32, i32)` overload"]
88 fn get_unit_with_mind(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> crate::app::unit::Unit {
89 unsafe {
90 let __receiver = <MapImageUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91 ::unity::il2cpp_call!((::unity::module_base()+0x2065040usize)as*mut u8,crate::app::unit::Unit;
92(MapImageUnit)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
93 }
94 }
95 #[doc = "`Update()` overload"]
96 fn update(self) -> () {
97 unsafe {
98 let __receiver = <MapImageUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99 ::unity::il2cpp_call!((::unity::module_base()+0x20651d0usize)as*mut u8,();
100(MapImageUnit)__receiver)
101 }
102 }
103 #[doc = "`Update(crate::app::unit::Unit)` overload"]
104 fn update_2(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
105 unsafe {
106 let __receiver = <MapImageUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 ::unity::il2cpp_call!((::unity::module_base()+0x2068640usize)as*mut u8,();
108(MapImageUnit)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
109 }
110 }
111 #[doc = "`TryAdd(crate::app::unit::Unit)` overload"]
112 fn try_add(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> bool {
113 unsafe {
114 let __receiver = <MapImageUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115 ::unity::il2cpp_call!((::unity::module_base()+0x2068a80usize)as*mut u8,bool;
116(MapImageUnit)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
117 }
118 }
119 #[doc = "`TryDelete(crate::app::unit::Unit)` overload"]
120 fn try_delete(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> bool {
121 unsafe {
122 let __receiver = <MapImageUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123 ::unity::il2cpp_call!((::unity::module_base()+0x2068ba0usize)as*mut u8,bool;
124(MapImageUnit)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
125 }
126 }
127 #[doc = "`UpdateSupportSkill()` overload"]
128 fn update_support_skill(self) -> () {
129 unsafe {
130 let __receiver = <MapImageUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131 ::unity::il2cpp_call!((::unity::module_base()+0x20655b0usize)as*mut u8,();
132(MapImageUnit)__receiver)
133 }
134 }
135 #[doc = "`UpdateSupportSkill(crate::app::unit::Unit, i32, i32)` overload"]
136 fn update_support_skill_2(
137 self,
138 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
139 x: impl ::core::convert::Into<i32>,
140 z: impl ::core::convert::Into<i32>,
141 ) -> () {
142 unsafe {
143 let __receiver = <MapImageUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144 ::unity::il2cpp_call!((::unity::module_base()+0x2068cd0usize)as*mut u8,();
145(MapImageUnit)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
146 }
147 }
148 #[doc = "`AddImpl(crate::app::unit::Unit, i32, i32)` overload"]
149 fn add_impl(
150 self,
151 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
152 base_x: impl ::core::convert::Into<i32>,
153 base_z: impl ::core::convert::Into<i32>,
154 ) -> () {
155 unsafe {
156 let __receiver = <MapImageUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157 ::unity::il2cpp_call!((::unity::module_base()+0x20653f0usize)as*mut u8,();
158(MapImageUnit)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(base_x),(i32)::core::convert::Into::into(base_z))
159 }
160 }
161 #[doc = "`DeleteImpl(crate::app::unit::Unit, i32, i32)` overload"]
162 fn delete_impl(
163 self,
164 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
165 base_x: impl ::core::convert::Into<i32>,
166 base_z: impl ::core::convert::Into<i32>,
167 ) -> () {
168 unsafe {
169 let __receiver = <MapImageUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170 ::unity::il2cpp_call!((::unity::module_base()+0x20688d0usize)as*mut u8,();
171(MapImageUnit)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(base_x),(i32)::core::convert::Into::into(base_z))
172 }
173 }
174 #[doc = "`Add(crate::app::unit::Unit)` overload"]
175 fn add(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
176 unsafe {
177 let __receiver = <MapImageUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178 ::unity::il2cpp_call!((::unity::module_base()+0x2068d50usize)as*mut u8,();
179(MapImageUnit)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
180 }
181 }
182 #[doc = "`Add(crate::app::unit::Unit, i32, i32)` overload"]
183 fn add_2(
184 self,
185 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
186 x: impl ::core::convert::Into<i32>,
187 z: impl ::core::convert::Into<i32>,
188 ) -> () {
189 unsafe {
190 let __receiver = <MapImageUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191 ::unity::il2cpp_call!((::unity::module_base()+0x2068d70usize)as*mut u8,();
192(MapImageUnit)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
193 }
194 }
195 #[doc = "`AddNoUpdatingSupportSkill(crate::app::unit::Unit, i32, i32)` overload"]
196 fn add_no_updating_support_skill(
197 self,
198 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
199 x: impl ::core::convert::Into<i32>,
200 z: impl ::core::convert::Into<i32>,
201 ) -> () {
202 unsafe {
203 let __receiver = <MapImageUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
204 ::unity::il2cpp_call!((::unity::module_base()+0x2068d90usize)as*mut u8,();
205(MapImageUnit)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
206 }
207 }
208 #[doc = "`Delete(crate::app::unit::Unit)` overload"]
209 fn delete(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
210 unsafe {
211 let __receiver = <MapImageUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
212 ::unity::il2cpp_call!((::unity::module_base()+0x2068da0usize)as*mut u8,();
213(MapImageUnit)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
214 }
215 }
216 #[doc = "`Delete(crate::app::unit::Unit, i32, i32)` overload"]
217 fn delete_2(
218 self,
219 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
220 x: impl ::core::convert::Into<i32>,
221 z: impl ::core::convert::Into<i32>,
222 ) -> () {
223 unsafe {
224 let __receiver = <MapImageUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
225 ::unity::il2cpp_call!((::unity::module_base()+0x2068dc0usize)as*mut u8,();
226(MapImageUnit)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
227 }
228 }
229 #[doc = "`DeleteNoUpdatingSupportSkill(crate::app::unit::Unit, i32, i32)` overload"]
230 fn delete_no_updating_support_skill(
231 self,
232 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
233 x: impl ::core::convert::Into<i32>,
234 z: impl ::core::convert::Into<i32>,
235 ) -> () {
236 unsafe {
237 let __receiver = <MapImageUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
238 ::unity::il2cpp_call!((::unity::module_base()+0x2068de0usize)as*mut u8,();
239(MapImageUnit)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
240 }
241 }
242 #[doc = "`TryMove(crate::app::unit::Unit, i32, i32, i32, i32)` overload"]
243 fn try_move(
244 self,
245 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
246 old_x: impl ::core::convert::Into<i32>,
247 old_z: impl ::core::convert::Into<i32>,
248 new_x: impl ::core::convert::Into<i32>,
249 new_z: impl ::core::convert::Into<i32>,
250 ) -> bool {
251 unsafe {
252 let __receiver = <MapImageUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
253 ::unity::il2cpp_call!((::unity::module_base()+0x2068df0usize)as*mut u8,bool;
254(MapImageUnit)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(old_x),(i32)::core::convert::Into::into(old_z),(i32)::core::convert::Into::into(new_x),(i32)::core::convert::Into::into(new_z))
255 }
256 }
257 #[doc = "`.ctor()` overload"]
258 fn ctor(self) -> () {
259 unsafe {
260 let __receiver = <MapImageUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
261 ::unity::il2cpp_call!((::unity::module_base()+0x2068fa0usize)as*mut u8,();
262(MapImageUnit)__receiver)
263 }
264 }
265}
266
267#[cfg(feature = "app-mapimageunit")]
268impl<__T: IMapImageUnit> IMapImageUnitMethods for __T {}
269
270#[cfg(feature = "app-mapimageunit")]
271impl MapImageUnit {
272 pub fn get_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
274 }
275
276 pub fn get_unit_with_mind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
278 }
279
280 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
282 }
283
284 pub fn update_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
286 }
287
288 pub fn try_add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
290 }
291
292 pub fn try_delete_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
294 }
295
296 pub fn update_support_skill_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
298 }
299
300 pub fn update_support_skill_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
302 }
303
304 pub fn add_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
306 }
307
308 pub fn delete_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
310 }
311
312 pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
314 }
315
316 pub fn add_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
318 }
319
320 pub fn add_no_updating_support_skill_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
322 }
323
324 pub fn delete_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
326 }
327
328 pub fn delete_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
330 }
331
332 pub fn delete_no_updating_support_skill_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
334 }
335
336 pub fn try_move_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
338 }
339
340 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
342 }
343}
344
345#[cfg(feature = "app-mapimageunit")]
346impl MapImageUnit {
347 #[doc = "`.ctor()` — no args"]
348 pub fn new() -> Self {
349 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
350 panic!(
351 "{}
352::{}
353 failed to instantiate",
354 ::core::stringify!(MapImageUnit),
355 ::core::stringify!(new),
356 )
357 });
358 <Self as IMapImageUnitMethods>::ctor(this);
359 this
360 }
361}
362
363#[cfg(feature = "app-mapimageunit")]
364impl MapImageUnit_UnitScope {
365 #[doc = "`.ctor(crate::app::unit::Unit)` overload"]
366 pub fn ctor(&mut self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
367 unsafe {
368 ::unity::il2cpp_call!((::unity::module_base()+0x217ce10usize)as*mut u8,();
369(*mut MapImageUnit_UnitScope)self as*mut MapImageUnit_UnitScope,(crate::app::unit::Unit)::core::convert::Into::into(unit))
370 }
371 }
372
373 #[doc = "`Dispose()` overload"]
374 pub fn dispose(&mut self) -> () {
375 unsafe {
376 ::unity::il2cpp_call!((::unity::module_base()+0x217ced0usize)as*mut u8,();
377(*mut MapImageUnit_UnitScope)self as*mut MapImageUnit_UnitScope)
378 }
379 }
380}
381
382#[cfg(feature = "app-mapimageunit")]
383impl MapImageUnit_UnitScope {
384 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
385 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
386 }
387
388 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
389 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
390 }
391}
392
393#[cfg(feature = "app-mapimageunit")]
394impl MapImageUnit_PositionScope {
395 #[doc = "`.ctor(crate::app::unit::Unit, i32, i32)` overload"]
396 pub fn ctor(
397 &mut self,
398 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
399 x: impl ::core::convert::Into<i32>,
400 z: impl ::core::convert::Into<i32>,
401 ) -> () {
402 unsafe {
403 ::unity::il2cpp_call!((::unity::module_base()+0x217cd60usize)as*mut u8,();
404(*mut MapImageUnit_PositionScope)self as*mut MapImageUnit_PositionScope,(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
405 }
406 }
407
408 #[doc = "`Dispose()` overload"]
409 pub fn dispose(&mut self) -> () {
410 unsafe {
411 ::unity::il2cpp_call!((::unity::module_base()+0x217cdd0usize)as*mut u8,();
412(*mut MapImageUnit_PositionScope)self as*mut MapImageUnit_PositionScope)
413 }
414 }
415}
416
417#[cfg(feature = "app-mapimageunit")]
418impl MapImageUnit_PositionScope {
419 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
420 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
421 }
422
423 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
424 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
425 }
426}
427
428#[cfg(feature = "app-mapimageunit")]
429#[doc(hidden)]
430pub mod prelude {
431 pub use super::{IMapImageUnit, IMapImageUnitMethods, MapImageUnit, MapImageUnit_PositionScope, MapImageUnit_UnitScope};
432 #[cfg(feature = "app-mapimagecore_1")]
433 pub use crate::app::mapimagecore_1::IMapImageCore_1Methods;
434 #[cfg(feature = "app-mapimagecorebyte")]
435 pub use crate::app::mapimagecorebyte::IMapImageCoreByteMethods;
436 #[cfg(feature = "app-mapimageindex")]
437 pub use crate::app::mapimageindex::IMapImageIndexMethods;
438 #[cfg(feature = "system-object")]
439 pub use crate::system::object::IObjectMethods;
440 #[cfg(feature = "system-valuetype")]
441 pub use crate::system::valuetype::IValueTypeMethods;
442 pub use crate::{
443 app::{mapimagecore_1::IMapImageCore_1, mapimagecorebyte::IMapImageCoreByte, mapimageindex::IMapImageIndex},
444 system::{object::IObject, valuetype::IValueType},
445 };
446}