1#[cfg(feature = "app-pokeinspector-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 mapinspector::{IMapInspector, MapInspector},
11 scriptutil::{IScriptUtil, ScriptUtil},
12 },
13 system::object::{IObject, Object},
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/pokeinspector/PokeInspector.md"))]
17 #[::unity::class(namespace = "App", name = "PokeInspector")]
18 #[parent(crate::app::mapinspector::MapInspector)]
19 pub struct PokeInspector {
20 #[offset(48)]
21 #[rename(name = "m_X")]
22 pub m_x: i32,
23 #[offset(52)]
24 #[rename(name = "m_Z")]
25 pub m_z: i32,
26 #[offset(56)]
27 #[rename(name = "m_W")]
28 pub m_w: i32,
29 #[offset(60)]
30 #[rename(name = "m_H")]
31 pub m_h: i32,
32 #[offset(64)]
33 #[rename(name = "m_MaxHp")]
34 pub m_max_hp: i32,
35 #[offset(68)]
36 #[rename(name = "m_Person")]
37 pub m_person: i32,
38 #[offset(72)]
39 #[rename(name = "m_HpLabel")]
40 pub m_hp_label: ::unity::Il2CppString,
41 }
42}
43
44#[cfg(feature = "app-pokeinspector-types")]
45pub use __types::*;
46
47#[cfg(feature = "app-pokeinspector")]
48pub trait IPokeInspectorMethods: IPokeInspector {
49 #[doc = "`.ctor(crate::app::mapinspector::MapInspector_Kind)` overload"]
50 fn ctor(self, kind: impl ::core::convert::Into<crate::app::mapinspector::MapInspector_Kind>) -> () {
51 unsafe {
52 let __receiver = <PokeInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53 ::unity::il2cpp_call!((::unity::module_base()+0x2814590usize)as*mut u8,();
54(PokeInspector)__receiver,(crate::app::mapinspector::MapInspector_Kind)::core::convert::Into::into(kind))
55 }
56 }
57 #[doc = "`.ctor(crate::app::mapinspector::MapInspector_Kind, i32, i32, i32, i32)` overload"]
58 fn ctor_2(
59 self,
60 kind: impl ::core::convert::Into<crate::app::mapinspector::MapInspector_Kind>,
61 x: impl ::core::convert::Into<i32>,
62 z: impl ::core::convert::Into<i32>,
63 w: impl ::core::convert::Into<i32>,
64 h: impl ::core::convert::Into<i32>,
65 ) -> () {
66 unsafe {
67 let __receiver = <PokeInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68 ::unity::il2cpp_call!((::unity::module_base()+0x28145a0usize)as*mut u8,();
69(PokeInspector)__receiver,(crate::app::mapinspector::MapInspector_Kind)::core::convert::Into::into(kind),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(i32)::core::convert::Into::into(w),(i32)::core::convert::Into::into(h))
70 }
71 }
72 #[doc = "`.ctor(crate::app::mapinspector::MapInspector_Kind, ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
73 fn ctor_3(
74 self,
75 kind: impl ::core::convert::Into<crate::app::mapinspector::MapInspector_Kind>,
76 args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
77 ) -> () {
78 unsafe {
79 let __receiver = <PokeInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 ::unity::il2cpp_call!((::unity::module_base()+0x2814600usize)as*mut u8,();
81(PokeInspector)__receiver,(crate::app::mapinspector::MapInspector_Kind)::core::convert::Into::into(kind),(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
82 }
83 }
84 #[doc = "`get_X()` overload"]
85 fn get_x(self) -> i32 {
86 unsafe {
87 let __receiver = <PokeInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88 {
89 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
90 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
91 panic!(
92 "unity: virtual slot {}
93 out of range (vtable len {}
94) on the runtime class behind {}
95 (method `{}
96`)",
97 12usize,
98 __vt.len(),
99 <PokeInspector as ::unity::ClassIdentity>::NAME,
100 "get_X",
101 )
102 });
103 let __inner: extern "C" fn(PokeInspector, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
104 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
105 __inner(__receiver, __mi)
106 }
107 }
108 }
109 #[doc = "`get_Z()` overload"]
110 fn get_z(self) -> i32 {
111 unsafe {
112 let __receiver = <PokeInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113 {
114 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
115 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
116 panic!(
117 "unity: virtual slot {}
118 out of range (vtable len {}
119) on the runtime class behind {}
120 (method `{}
121`)",
122 13usize,
123 __vt.len(),
124 <PokeInspector as ::unity::ClassIdentity>::NAME,
125 "get_Z",
126 )
127 });
128 let __inner: extern "C" fn(PokeInspector, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
129 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
130 __inner(__receiver, __mi)
131 }
132 }
133 }
134 #[doc = "`get_X1()` overload"]
135 fn get_x1(self) -> i32 {
136 unsafe {
137 let __receiver = <PokeInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
138 {
139 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
140 let __vi = *__vt.get(14usize).unwrap_or_else(|| {
141 panic!(
142 "unity: virtual slot {}
143 out of range (vtable len {}
144) on the runtime class behind {}
145 (method `{}
146`)",
147 14usize,
148 __vt.len(),
149 <PokeInspector as ::unity::ClassIdentity>::NAME,
150 "get_X1",
151 )
152 });
153 let __inner: extern "C" fn(PokeInspector, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
154 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
155 __inner(__receiver, __mi)
156 }
157 }
158 }
159 #[doc = "`get_Z1()` overload"]
160 fn get_z1(self) -> i32 {
161 unsafe {
162 let __receiver = <PokeInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163 {
164 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
165 let __vi = *__vt.get(15usize).unwrap_or_else(|| {
166 panic!(
167 "unity: virtual slot {}
168 out of range (vtable len {}
169) on the runtime class behind {}
170 (method `{}
171`)",
172 15usize,
173 __vt.len(),
174 <PokeInspector as ::unity::ClassIdentity>::NAME,
175 "get_Z1",
176 )
177 });
178 let __inner: extern "C" fn(PokeInspector, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
179 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
180 __inner(__receiver, __mi)
181 }
182 }
183 }
184 #[doc = "`get_X2()` overload"]
185 fn get_x2(self) -> i32 {
186 unsafe {
187 let __receiver = <PokeInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
188 {
189 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
190 let __vi = *__vt.get(16usize).unwrap_or_else(|| {
191 panic!(
192 "unity: virtual slot {}
193 out of range (vtable len {}
194) on the runtime class behind {}
195 (method `{}
196`)",
197 16usize,
198 __vt.len(),
199 <PokeInspector as ::unity::ClassIdentity>::NAME,
200 "get_X2",
201 )
202 });
203 let __inner: extern "C" fn(PokeInspector, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
204 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
205 __inner(__receiver, __mi)
206 }
207 }
208 }
209 #[doc = "`get_Z2()` overload"]
210 fn get_z2(self) -> i32 {
211 unsafe {
212 let __receiver = <PokeInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213 {
214 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
215 let __vi = *__vt.get(17usize).unwrap_or_else(|| {
216 panic!(
217 "unity: virtual slot {}
218 out of range (vtable len {}
219) on the runtime class behind {}
220 (method `{}
221`)",
222 17usize,
223 __vt.len(),
224 <PokeInspector as ::unity::ClassIdentity>::NAME,
225 "get_Z2",
226 )
227 });
228 let __inner: extern "C" fn(PokeInspector, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
229 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
230 __inner(__receiver, __mi)
231 }
232 }
233 }
234 #[doc = "`get_MaxHp()` overload"]
235 fn get_max_hp(self) -> i32 {
236 unsafe {
237 let __receiver = <PokeInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
238 {
239 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
240 let __vi = *__vt.get(22usize).unwrap_or_else(|| {
241 panic!(
242 "unity: virtual slot {}
243 out of range (vtable len {}
244) on the runtime class behind {}
245 (method `{}
246`)",
247 22usize,
248 __vt.len(),
249 <PokeInspector as ::unity::ClassIdentity>::NAME,
250 "get_MaxHp",
251 )
252 });
253 let __inner: extern "C" fn(PokeInspector, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
254 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
255 __inner(__receiver, __mi)
256 }
257 }
258 }
259 #[doc = "`get_Hp()` overload"]
260 fn get_hp(self) -> i32 {
261 unsafe {
262 let __receiver = <PokeInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
263 {
264 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
265 let __vi = *__vt.get(20usize).unwrap_or_else(|| {
266 panic!(
267 "unity: virtual slot {}
268 out of range (vtable len {}
269) on the runtime class behind {}
270 (method `{}
271`)",
272 20usize,
273 __vt.len(),
274 <PokeInspector as ::unity::ClassIdentity>::NAME,
275 "get_Hp",
276 )
277 });
278 let __inner: extern "C" fn(PokeInspector, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
279 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
280 __inner(__receiver, __mi)
281 }
282 }
283 }
284 #[doc = "`set_Hp(i32)` overload"]
285 fn set_hp(self, value: impl ::core::convert::Into<i32>) -> () {
286 unsafe {
287 let __receiver = <PokeInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
288 {
289 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
290 let __vi = *__vt.get(21usize).unwrap_or_else(|| {
291 panic!(
292 "unity: virtual slot {}
293 out of range (vtable len {}
294) on the runtime class behind {}
295 (method `{}
296`)",
297 21usize,
298 __vt.len(),
299 <PokeInspector as ::unity::ClassIdentity>::NAME,
300 "set_Hp",
301 )
302 });
303 let __inner: extern "C" fn(PokeInspector, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
304 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
305 __inner(__receiver, ::core::convert::Into::into(value), __mi)
306 }
307 }
308 }
309 #[doc = "`GetLabel()` overload"]
310 fn get_label(self) -> ::unity::Il2CppString {
311 unsafe {
312 let __receiver = <PokeInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
313 {
314 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
315 let __vi = *__vt.get(36usize).unwrap_or_else(|| {
316 panic!(
317 "unity: virtual slot {}
318 out of range (vtable len {}
319) on the runtime class behind {}
320 (method `{}
321`)",
322 36usize,
323 __vt.len(),
324 <PokeInspector as ::unity::ClassIdentity>::NAME,
325 "GetLabel",
326 )
327 });
328 let __inner: extern "C" fn(PokeInspector, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
329 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
330 __inner(__receiver, __mi)
331 }
332 }
333 }
334 #[doc = "`GetRange()` overload"]
335 fn get_range(self) -> i32 {
336 unsafe {
337 let __receiver = <PokeInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
338 {
339 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
340 let __vi = *__vt.get(37usize).unwrap_or_else(|| {
341 panic!(
342 "unity: virtual slot {}
343 out of range (vtable len {}
344) on the runtime class behind {}
345 (method `{}
346`)",
347 37usize,
348 __vt.len(),
349 <PokeInspector as ::unity::ClassIdentity>::NAME,
350 "GetRange",
351 )
352 });
353 let __inner: extern "C" fn(PokeInspector, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
354 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
355 __inner(__receiver, __mi)
356 }
357 }
358 }
359 #[doc = "`GetNearX(i32)` overload"]
360 fn get_near_x(self, x: impl ::core::convert::Into<i32>) -> i32 {
361 unsafe {
362 let __receiver = <PokeInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
363 ::unity::il2cpp_call!((::unity::module_base()+0x2814af0usize)as*mut u8,i32;
364(PokeInspector)__receiver,(i32)::core::convert::Into::into(x))
365 }
366 }
367 #[doc = "`GetNearZ(i32)` overload"]
368 fn get_near_z(self, z: impl ::core::convert::Into<i32>) -> i32 {
369 unsafe {
370 let __receiver = <PokeInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
371 ::unity::il2cpp_call!((::unity::module_base()+0x2814b80usize)as*mut u8,i32;
372(PokeInspector)__receiver,(i32)::core::convert::Into::into(z))
373 }
374 }
375 #[doc = "`GetDistance(i32, i32)` overload"]
376 fn get_distance(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> i32 {
377 unsafe {
378 let __receiver = <PokeInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
379 ::unity::il2cpp_call!((::unity::module_base()+0x2814c10usize)as*mut u8,i32;
380(PokeInspector)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
381 }
382 }
383 #[doc = "`IsSightOut(i32, i32)` overload"]
384 fn is_sight_out(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> bool {
385 unsafe {
386 let __receiver = <PokeInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
387 ::unity::il2cpp_call!((::unity::module_base()+0x2814d20usize)as*mut u8,bool;
388(PokeInspector)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
389 }
390 }
391 #[doc = "`IsEanble(i32, i32)` overload"]
392 fn is_eanble(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> bool {
393 unsafe {
394 let __receiver = <PokeInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
395 {
396 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
397 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
398 panic!(
399 "unity: virtual slot {}
400 out of range (vtable len {}
401) on the runtime class behind {}
402 (method `{}
403`)",
404 7usize,
405 __vt.len(),
406 <PokeInspector as ::unity::ClassIdentity>::NAME,
407 "IsEanble",
408 )
409 });
410 let __inner: extern "C" fn(PokeInspector, i32, i32, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
411 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
412 __inner(__receiver, ::core::convert::Into::into(x), ::core::convert::Into::into(z), __mi)
413 }
414 }
415 }
416 #[doc = "`IsEanble(i32, i32, i32)` overload"]
417 fn is_eanble_2(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>, person: impl ::core::convert::Into<i32>) -> bool {
418 unsafe {
419 let __receiver = <PokeInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
420 {
421 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
422 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
423 panic!(
424 "unity: virtual slot {}
425 out of range (vtable len {}
426) on the runtime class behind {}
427 (method `{}
428`)",
429 8usize,
430 __vt.len(),
431 <PokeInspector as ::unity::ClassIdentity>::NAME,
432 "IsEanble",
433 )
434 });
435 let __inner: extern "C" fn(PokeInspector, i32, i32, i32, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
436 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
437 __inner(
438 __receiver,
439 ::core::convert::Into::into(x),
440 ::core::convert::Into::into(z),
441 ::core::convert::Into::into(person),
442 __mi,
443 )
444 }
445 }
446 }
447 #[doc = "`SetPos(i32, i32, i32, i32)` overload"]
448 fn set_pos(
449 self,
450 x: impl ::core::convert::Into<i32>,
451 z: impl ::core::convert::Into<i32>,
452 w: impl ::core::convert::Into<i32>,
453 h: impl ::core::convert::Into<i32>,
454 ) -> crate::app::pokeinspector::PokeInspector {
455 unsafe {
456 let __receiver = <PokeInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
457 ::unity::il2cpp_call!((::unity::module_base()+0x2815010usize)as*mut u8,crate::app::pokeinspector::PokeInspector;
458(PokeInspector)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(i32)::core::convert::Into::into(w),(i32)::core::convert::Into::into(h))
459 }
460 }
461 #[doc = "`SetMaxHp(i32)` overload"]
462 fn set_max_hp(self, max_hp: impl ::core::convert::Into<i32>) -> crate::app::pokeinspector::PokeInspector {
463 unsafe {
464 let __receiver = <PokeInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
465 ::unity::il2cpp_call!((::unity::module_base()+0x2815280usize)as*mut u8,crate::app::pokeinspector::PokeInspector;
466(PokeInspector)__receiver,(i32)::core::convert::Into::into(max_hp))
467 }
468 }
469}
470
471#[cfg(feature = "app-pokeinspector")]
472impl<__T: IPokeInspector> IPokeInspectorMethods for __T {}
473
474#[cfg(feature = "app-pokeinspector")]
475impl PokeInspector {
476 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
477 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
478 }
479
480 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
481 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
482 }
483
484 pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
485 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
486 }
487
488 pub fn get_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
489 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
490 }
491
492 pub fn get_z_method_info() -> &'static ::unity::il2cpp::MethodInfo {
493 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
494 }
495
496 pub fn get_x1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
497 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
498 }
499
500 pub fn get_z1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
501 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
502 }
503
504 pub fn get_x2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
505 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
506 }
507
508 pub fn get_z2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
509 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
510 }
511
512 pub fn get_max_hp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
513 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
514 }
515
516 pub fn get_hp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
517 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
518 }
519
520 pub fn set_hp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
521 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
522 }
523
524 pub fn get_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
525 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
526 }
527
528 pub fn get_range_method_info() -> &'static ::unity::il2cpp::MethodInfo {
529 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
530 }
531
532 pub fn get_near_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
533 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
534 }
535
536 pub fn get_near_z_method_info() -> &'static ::unity::il2cpp::MethodInfo {
537 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
538 }
539
540 pub fn get_distance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
541 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
542 }
543
544 pub fn is_sight_out_method_info() -> &'static ::unity::il2cpp::MethodInfo {
545 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
546 }
547
548 pub fn is_eanble_method_info() -> &'static ::unity::il2cpp::MethodInfo {
549 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
550 }
551
552 pub fn is_eanble_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
553 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
554 }
555
556 pub fn set_pos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
557 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
558 }
559
560 pub fn set_max_hp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
561 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
562 }
563}
564
565#[cfg(feature = "app-pokeinspector")]
566impl PokeInspector {
567 #[doc = "Direct (non-virtual) call to `PokeInspector`'s own `get_X`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
568 pub unsafe fn get_x(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
569 let __mi = Self::get_x_method_info();
570 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
571 __inner(this.into(), ::core::option::Option::None)
572 }
573
574 #[doc = "Direct (non-virtual) call to `PokeInspector`'s own `get_Z`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
575 pub unsafe fn get_z(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
576 let __mi = Self::get_z_method_info();
577 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
578 __inner(this.into(), ::core::option::Option::None)
579 }
580
581 #[doc = "Direct (non-virtual) call to `PokeInspector`'s own `get_X1`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
582 pub unsafe fn get_x1(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
583 let __mi = Self::get_x1_method_info();
584 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
585 __inner(this.into(), ::core::option::Option::None)
586 }
587
588 #[doc = "Direct (non-virtual) call to `PokeInspector`'s own `get_Z1`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
589 pub unsafe fn get_z1(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
590 let __mi = Self::get_z1_method_info();
591 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
592 __inner(this.into(), ::core::option::Option::None)
593 }
594
595 #[doc = "Direct (non-virtual) call to `PokeInspector`'s own `get_X2`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
596 pub unsafe fn get_x2(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
597 let __mi = Self::get_x2_method_info();
598 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
599 __inner(this.into(), ::core::option::Option::None)
600 }
601
602 #[doc = "Direct (non-virtual) call to `PokeInspector`'s own `get_Z2`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
603 pub unsafe fn get_z2(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
604 let __mi = Self::get_z2_method_info();
605 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
606 __inner(this.into(), ::core::option::Option::None)
607 }
608
609 #[doc = "Direct (non-virtual) call to `PokeInspector`'s own `get_MaxHp`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
610 pub unsafe fn get_max_hp(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
611 let __mi = Self::get_max_hp_method_info();
612 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
613 __inner(this.into(), ::core::option::Option::None)
614 }
615
616 #[doc = "Direct (non-virtual) call to `PokeInspector`'s own `get_Hp`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
617 pub unsafe fn get_hp(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
618 let __mi = Self::get_hp_method_info();
619 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
620 __inner(this.into(), ::core::option::Option::None)
621 }
622
623 #[doc = "Direct (non-virtual) call to `PokeInspector`'s own `set_Hp`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
624 pub unsafe fn set_hp(this: impl ::core::convert::Into<::unity::IlInstance>, value: i32) -> () {
625 let __mi = Self::set_hp_method_info();
626 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
627 __inner(this.into(), value, ::core::option::Option::None)
628 }
629
630 #[doc = "Direct (non-virtual) call to `PokeInspector`'s own `GetLabel`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
631 pub unsafe fn get_label(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
632 let __mi = Self::get_label_method_info();
633 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
634 __inner(this.into(), ::core::option::Option::None)
635 }
636
637 #[doc = "Direct (non-virtual) call to `PokeInspector`'s own `GetRange`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
638 pub unsafe fn get_range(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
639 let __mi = Self::get_range_method_info();
640 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
641 __inner(this.into(), ::core::option::Option::None)
642 }
643
644 #[doc = "Direct (non-virtual) call to `PokeInspector`'s own `IsEanble`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
645 pub unsafe fn is_eanble(this: impl ::core::convert::Into<::unity::IlInstance>, x: i32, z: i32) -> bool {
646 let __mi = Self::is_eanble_method_info();
647 let __inner: extern "C" fn(::unity::IlInstance, i32, i32, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
648 __inner(this.into(), x, z, ::core::option::Option::None)
649 }
650
651 #[doc = "Direct (non-virtual) call to `PokeInspector`'s own `IsEanble`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
652 pub unsafe fn is_eanble_2(this: impl ::core::convert::Into<::unity::IlInstance>, x: i32, z: i32, person: i32) -> bool {
653 let __mi = Self::is_eanble_2_method_info();
654 let __inner: extern "C" fn(::unity::IlInstance, i32, i32, i32, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
655 __inner(this.into(), x, z, person, ::core::option::Option::None)
656 }
657}
658
659#[cfg(feature = "app-pokeinspector")]
660impl PokeInspector {
661 #[doc = "`.ctor(crate::app::mapinspector::MapInspector_Kind)` — overload selector"]
662 pub fn new(kind: crate::app::mapinspector::MapInspector_Kind) -> Self {
663 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
664 panic!(
665 "{}
666::{}
667 failed to instantiate",
668 ::core::stringify!(PokeInspector),
669 ::core::stringify!(new),
670 )
671 });
672 <Self as IPokeInspectorMethods>::ctor(this, kind);
673 this
674 }
675
676 #[doc = "`.ctor(crate::app::mapinspector::MapInspector_Kind, i32, i32, i32, i32)` — overload selector"]
677 pub fn new_2(kind: crate::app::mapinspector::MapInspector_Kind, x: i32, z: i32, w: i32, h: i32) -> Self {
678 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
679 panic!(
680 "{}
681::{}
682 failed to instantiate",
683 ::core::stringify!(PokeInspector),
684 ::core::stringify!(new_2),
685 )
686 });
687 <Self as IPokeInspectorMethods>::ctor_2(this, kind, x, z, w, h);
688 this
689 }
690
691 #[doc = "`.ctor(crate::app::mapinspector::MapInspector_Kind, ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` — overload selector"]
692 pub fn new_3(
693 kind: crate::app::mapinspector::MapInspector_Kind,
694 args: ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>,
695 ) -> Self {
696 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
697 panic!(
698 "{}
699::{}
700 failed to instantiate",
701 ::core::stringify!(PokeInspector),
702 ::core::stringify!(new_3),
703 )
704 });
705 <Self as IPokeInspectorMethods>::ctor_3(this, kind, args);
706 this
707 }
708}
709
710#[cfg(feature = "app-pokeinspector")]
711#[doc(hidden)]
712pub mod prelude {
713 pub use super::{IPokeInspector, IPokeInspectorMethods, PokeInspector};
714 #[cfg(feature = "app-mapinspector")]
715 pub use crate::app::mapinspector::IMapInspectorMethods;
716 #[cfg(feature = "app-scriptutil")]
717 pub use crate::app::scriptutil::IScriptUtilMethods;
718 #[cfg(feature = "system-object")]
719 pub use crate::system::object::IObjectMethods;
720 pub use crate::{
721 app::{mapinspector::IMapInspector, scriptutil::IScriptUtil},
722 system::object::IObject,
723 };
724}