1#[cfg(feature = "app-gmapplayerunit-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::singletonclass_1::{ISingletonClass_1, SingletonClass_1},
10 system::{
11 object::{IObject, Object},
12 r#enum::{Enum, IEnum},
13 valuetype::{IValueType, ValueType},
14 },
15 };
16
17 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gmapplayerunit/GmapPlayerUnit.md"))]
18 #[::unity::class(namespace = "App", name = "GmapPlayerUnit")]
19 #[parent(crate::app::singletonclass_1::SingletonClass_1<crate::app::gmapplayerunit::GmapPlayerUnit>)]
20 pub struct GmapPlayerUnit {
21 #[offset(32)]
22 #[rename(name = "m_Unit")]
23 pub m_unit: crate::app::unit::Unit,
24 #[offset(40)]
25 #[rename(name = "ShipPrefabPath")]
26 pub ship_prefab_path: ::unity::Il2CppString,
27 #[offset(48)]
28 #[rename(name = "m_Ship")]
29 pub m_ship: crate::unity_engine::gameobject::GameObject,
30 #[offset(56)]
31 #[rename(name = "ColliderPrefabPath")]
32 pub collider_prefab_path: ::unity::Il2CppString,
33 #[offset(64)]
34 #[rename(name = "TeleportInEffect")]
35 pub teleport_in_effect: ::unity::Il2CppString,
36 #[offset(72)]
37 #[rename(name = "TeleportOutEffect")]
38 pub teleport_out_effect: ::unity::Il2CppString,
39 #[offset(80)]
40 #[rename(name = "m_Rotation")]
41 pub m_rotation: crate::app::interpolatorrotation::InterpolatorRotation,
42 #[offset(96)]
43 #[rename(name = "m_GroundObjectNames")]
44 pub m_ground_object_names: ::unity::Array<::unity::Il2CppString>,
45 #[offset(104)]
46 #[rename(name = "SeaObjectNames")]
47 pub sea_object_names: ::unity::Array<::unity::Il2CppString>,
48 #[offset(112)]
49 #[rename(name = "IgnoreObjectNames")]
50 pub ignore_object_names: ::unity::Array<::unity::Il2CppString>,
51 #[offset(120)]
52 #[rename(name = "PositionDelta")]
53 pub position_delta: crate::unity_engine::vector3::Vector3,
54 }
55
56 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gmapplayerunit/GmapPlayerUnit_ModelType.md"))]
57 #[repr(C)]
58 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
59 pub struct GmapPlayerUnit_ModelType {
60 pub value: i32,
61 }
62 impl ::unity::ClassIdentity for GmapPlayerUnit_ModelType {
63 const NAME: &'static str = "GmapPlayerUnit.ModelType";
64 const NAMESPACE: &'static str = "App";
65
66 fn class() -> ::unity::Class {
67 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
68 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
69 }
70 }
71 impl ::unity::IlType for GmapPlayerUnit_ModelType {
72 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
73 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
74 }
75 }
76 impl GmapPlayerUnit_ModelType {
77 pub fn unit() -> Self {
78 Self { value: 0 }
79 }
80
81 pub fn ship() -> Self {
82 Self { value: 1 }
83 }
84 }
85}
86
87#[cfg(feature = "app-gmapplayerunit-types")]
88pub use __types::*;
89
90#[cfg(feature = "app-gmapplayerunit")]
91impl GmapPlayerUnit {
92 #[doc = "`GetAngleLength(f32, f32)` overload"]
93 pub fn get_angle_length(current: impl ::core::convert::Into<f32>, target: impl ::core::convert::Into<f32>) -> f32 {
94 unsafe {
95 ::unity::il2cpp_call!((::unity::module_base()+0x2b38430usize)as*mut u8,f32;
96(f32)::core::convert::Into::into(current),(f32)::core::convert::Into::into(target))
97 }
98 }
99}
100
101#[cfg(feature = "app-gmapplayerunit")]
102pub trait IGmapPlayerUnitMethods: IGmapPlayerUnit {
103 #[doc = "`get_Actor()` overload"]
104 fn get_actor(self) -> crate::app::unitactor::UnitActor {
105 unsafe {
106 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 ::unity::il2cpp_call!((::unity::module_base()+0x2b373f0usize)as*mut u8,crate::app::unitactor::UnitActor;
108(GmapPlayerUnit)__receiver)
109 }
110 }
111 #[doc = "`get_PlayerModelType()` overload"]
112 fn get_player_model_type(self) -> crate::app::gmapplayerunit::GmapPlayerUnit_ModelType {
113 unsafe {
114 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115 ::unity::il2cpp_call!((::unity::module_base()+0x2b37400usize)as*mut u8,crate::app::gmapplayerunit::GmapPlayerUnit_ModelType;
116(GmapPlayerUnit)__receiver)
117 }
118 }
119 #[doc = "`set_PlayerModelType(crate::app::gmapplayerunit::GmapPlayerUnit_ModelType)` overload"]
120 fn set_player_model_type(self, value: impl ::core::convert::Into<crate::app::gmapplayerunit::GmapPlayerUnit_ModelType>) -> () {
121 unsafe {
122 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123 ::unity::il2cpp_call!((::unity::module_base()+0x2b37410usize)as*mut u8,();
124(GmapPlayerUnit)__receiver,(crate::app::gmapplayerunit::GmapPlayerUnit_ModelType)::core::convert::Into::into(value))
125 }
126 }
127 #[doc = "`OnCreate()` overload"]
128 fn on_create(self) -> () {
129 unsafe {
130 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131 {
132 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
133 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
134 panic!(
135 "unity: virtual slot {}
136 out of range (vtable len {}
137) on the runtime class behind {}
138 (method `{}
139`)",
140 5usize,
141 __vt.len(),
142 <GmapPlayerUnit as ::unity::ClassIdentity>::NAME,
143 "OnCreate",
144 )
145 });
146 let __inner: extern "C" fn(GmapPlayerUnit, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
147 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
148 __inner(__receiver, __mi)
149 }
150 }
151 }
152 #[doc = "`OnTick()` overload"]
153 fn on_tick(self) -> () {
154 unsafe {
155 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156 {
157 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
158 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
159 panic!(
160 "unity: virtual slot {}
161 out of range (vtable len {}
162) on the runtime class behind {}
163 (method `{}
164`)",
165 7usize,
166 __vt.len(),
167 <GmapPlayerUnit as ::unity::ClassIdentity>::NAME,
168 "OnTick",
169 )
170 });
171 let __inner: extern "C" fn(GmapPlayerUnit, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
172 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
173 __inner(__receiver, __mi)
174 }
175 }
176 }
177 #[doc = "`UpdateRotation()` overload"]
178 fn update_rotation(self) -> () {
179 unsafe {
180 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
181 ::unity::il2cpp_call!((::unity::module_base()+0x2b37990usize)as*mut u8,();
182(GmapPlayerUnit)__receiver)
183 }
184 }
185 #[doc = "`CommitRotation()` overload"]
186 fn commit_rotation(self) -> () {
187 unsafe {
188 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189 ::unity::il2cpp_call!((::unity::module_base()+0x2b37dd0usize)as*mut u8,();
190(GmapPlayerUnit)__receiver)
191 }
192 }
193 #[doc = "`get_Position()` overload"]
194 fn get_position(self) -> crate::unity_engine::vector3::Vector3 {
195 unsafe {
196 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197 ::unity::il2cpp_call!((::unity::module_base()+0x2b37f40usize)as*mut u8,crate::unity_engine::vector3::Vector3;
198(GmapPlayerUnit)__receiver)
199 }
200 }
201 #[doc = "`set_Position(crate::unity_engine::vector3::Vector3)` overload"]
202 fn set_position(self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
203 unsafe {
204 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205 ::unity::il2cpp_call!((::unity::module_base()+0x2b37f70usize)as*mut u8,();
206(GmapPlayerUnit)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
207 }
208 }
209 #[doc = "`get_Up()` overload"]
210 fn get_up(self) -> crate::unity_engine::vector3::Vector3 {
211 unsafe {
212 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213 ::unity::il2cpp_call!((::unity::module_base()+0x2b37ff0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
214(GmapPlayerUnit)__receiver)
215 }
216 }
217 #[doc = "`set_Up(crate::unity_engine::vector3::Vector3)` overload"]
218 fn set_up(self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
219 unsafe {
220 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
221 ::unity::il2cpp_call!((::unity::module_base()+0x2b38020usize)as*mut u8,();
222(GmapPlayerUnit)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
223 }
224 }
225 #[doc = "`set_Rotation(crate::unity_engine::quaternion::Quaternion)` overload"]
226 fn set_rotation(self, value: impl ::core::convert::Into<crate::unity_engine::quaternion::Quaternion>) -> () {
227 unsafe {
228 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
229 ::unity::il2cpp_call!((::unity::module_base()+0x2b37eb0usize)as*mut u8,();
230(GmapPlayerUnit)__receiver,(crate::unity_engine::quaternion::Quaternion)::core::convert::Into::into(value))
231 }
232 }
233 #[doc = "`SetDirection(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3)` overload"]
234 fn set_direction(
235 self,
236 dir: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
237 up: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
238 ) -> () {
239 unsafe {
240 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
241 ::unity::il2cpp_call!((::unity::module_base()+0x2b380a0usize)as*mut u8,();
242(GmapPlayerUnit)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(dir),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(up))
243 }
244 }
245 #[doc = "`SetRotate(f32)` overload"]
246 fn set_rotate(self, angle: impl ::core::convert::Into<f32>) -> () {
247 unsafe {
248 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
249 ::unity::il2cpp_call!((::unity::module_base()+0x2b38390usize)as*mut u8,();
250(GmapPlayerUnit)__receiver,(f32)::core::convert::Into::into(angle))
251 }
252 }
253 #[doc = "`SetRotateImmidiate(f32)` overload"]
254 fn set_rotate_immidiate(self, angle: impl ::core::convert::Into<f32>) -> () {
255 unsafe {
256 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
257 ::unity::il2cpp_call!((::unity::module_base()+0x2b38450usize)as*mut u8,();
258(GmapPlayerUnit)__receiver,(f32)::core::convert::Into::into(angle))
259 }
260 }
261 #[doc = "`SetUnitFromUnitPool()` overload"]
262 fn set_unit_from_unit_pool(self) -> () {
263 unsafe {
264 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
265 ::unity::il2cpp_call!((::unity::module_base()+0x2b37430usize)as*mut u8,();
266(GmapPlayerUnit)__receiver)
267 }
268 }
269 #[doc = "`LoadActor()` overload"]
270 fn load_actor(self) -> () {
271 unsafe {
272 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
273 ::unity::il2cpp_call!((::unity::module_base()+0x2b38490usize)as*mut u8,();
274(GmapPlayerUnit)__receiver)
275 }
276 }
277 #[doc = "`IsLoading()` overload"]
278 fn is_loading(self) -> bool {
279 unsafe {
280 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
281 ::unity::il2cpp_call!((::unity::module_base()+0x2b38670usize)as*mut u8,bool;
282(GmapPlayerUnit)__receiver)
283 }
284 }
285 #[doc = "`UnloadUnit()` overload"]
286 fn unload_unit(self) -> () {
287 unsafe {
288 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
289 ::unity::il2cpp_call!((::unity::module_base()+0x2b387b0usize)as*mut u8,();
290(GmapPlayerUnit)__receiver)
291 }
292 }
293 #[doc = "`Setup()` overload"]
294 fn setup(self) -> () {
295 unsafe {
296 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
297 ::unity::il2cpp_call!((::unity::module_base()+0x2b388a0usize)as*mut u8,();
298(GmapPlayerUnit)__receiver)
299 }
300 }
301 #[doc = "`SetupModelType()` overload"]
302 fn setup_model_type(self) -> () {
303 unsafe {
304 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
305 ::unity::il2cpp_call!((::unity::module_base()+0x2b38b20usize)as*mut u8,();
306(GmapPlayerUnit)__receiver)
307 }
308 }
309 #[doc = "`ChangeModelType(crate::app::gmapplayerunit::GmapPlayerUnit_ModelType)` overload"]
310 fn change_model_type(self, model_type: impl ::core::convert::Into<crate::app::gmapplayerunit::GmapPlayerUnit_ModelType>) -> () {
311 unsafe {
312 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
313 ::unity::il2cpp_call!((::unity::module_base()+0x2b37870usize)as*mut u8,();
314(GmapPlayerUnit)__receiver,(crate::app::gmapplayerunit::GmapPlayerUnit_ModelType)::core::convert::Into::into(model_type))
315 }
316 }
317 #[doc = "`StopRun()` overload"]
318 fn stop_run(self) -> () {
319 unsafe {
320 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
321 ::unity::il2cpp_call!((::unity::module_base()+0x2b382e0usize)as*mut u8,();
322(GmapPlayerUnit)__receiver)
323 }
324 }
325 #[doc = "`Hide()` overload"]
326 fn hide(self) -> () {
327 unsafe {
328 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
329 ::unity::il2cpp_call!((::unity::module_base()+0x2b38b50usize)as*mut u8,();
330(GmapPlayerUnit)__receiver)
331 }
332 }
333 #[doc = "`Show()` overload"]
334 fn show(self) -> () {
335 unsafe {
336 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
337 ::unity::il2cpp_call!((::unity::module_base()+0x2b38be0usize)as*mut u8,();
338(GmapPlayerUnit)__receiver)
339 }
340 }
341 #[doc = "`SetMapTransparent(bool)` overload"]
342 fn set_map_transparent(self, active: impl ::core::convert::Into<bool>) -> () {
343 unsafe {
344 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
345 ::unity::il2cpp_call!((::unity::module_base()+0x2b38960usize)as*mut u8,();
346(GmapPlayerUnit)__receiver,(bool)::core::convert::Into::into(active))
347 }
348 }
349 #[doc = "`IsOnGround()` overload"]
350 fn is_on_ground(self) -> bool {
351 unsafe {
352 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
353 ::unity::il2cpp_call!((::unity::module_base()+0x2b375b0usize)as*mut u8,bool;
354(GmapPlayerUnit)__receiver)
355 }
356 }
357 #[doc = "`PlayTeleportOut()` overload"]
358 fn play_teleport_out(self) -> () {
359 unsafe {
360 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
361 ::unity::il2cpp_call!((::unity::module_base()+0x2b38c10usize)as*mut u8,();
362(GmapPlayerUnit)__receiver)
363 }
364 }
365 #[doc = "`PlayTeleportIn()` overload"]
366 fn play_teleport_in(self) -> () {
367 unsafe {
368 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
369 ::unity::il2cpp_call!((::unity::module_base()+0x2b38d30usize)as*mut u8,();
370(GmapPlayerUnit)__receiver)
371 }
372 }
373 #[doc = "`.ctor()` overload"]
374 fn ctor(self) -> () {
375 unsafe {
376 let __receiver = <GmapPlayerUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
377 ::unity::il2cpp_call!((::unity::module_base()+0x2b38df0usize)as*mut u8,();
378(GmapPlayerUnit)__receiver)
379 }
380 }
381}
382
383#[cfg(feature = "app-gmapplayerunit")]
384impl<__T: IGmapPlayerUnit> IGmapPlayerUnitMethods for __T {}
385
386#[cfg(feature = "app-gmapplayerunit")]
387impl GmapPlayerUnit {
388 pub fn get_actor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
389 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
390 }
391
392 pub fn get_player_model_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
393 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
394 }
395
396 pub fn set_player_model_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
397 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
398 }
399
400 pub fn on_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
401 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
402 }
403
404 pub fn on_tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
405 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
406 }
407
408 pub fn update_rotation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
409 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
410 }
411
412 pub fn commit_rotation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
413 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
414 }
415
416 pub fn get_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
417 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
418 }
419
420 pub fn set_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
421 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
422 }
423
424 pub fn get_up_method_info() -> &'static ::unity::il2cpp::MethodInfo {
425 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
426 }
427
428 pub fn set_up_method_info() -> &'static ::unity::il2cpp::MethodInfo {
429 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
430 }
431
432 pub fn set_rotation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
433 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
434 }
435
436 pub fn set_direction_method_info() -> &'static ::unity::il2cpp::MethodInfo {
437 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
438 }
439
440 pub fn set_rotate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
441 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
442 }
443
444 pub fn set_rotate_immidiate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
445 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
446 }
447
448 pub fn get_angle_length_method_info() -> &'static ::unity::il2cpp::MethodInfo {
449 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
450 }
451
452 pub fn set_unit_from_unit_pool_method_info() -> &'static ::unity::il2cpp::MethodInfo {
453 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
454 }
455
456 pub fn load_actor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
457 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
458 }
459
460 pub fn is_loading_method_info() -> &'static ::unity::il2cpp::MethodInfo {
461 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
462 }
463
464 pub fn unload_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
465 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
466 }
467
468 pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
469 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
470 }
471
472 pub fn setup_model_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
473 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
474 }
475
476 pub fn change_model_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
477 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
478 }
479
480 pub fn stop_run_method_info() -> &'static ::unity::il2cpp::MethodInfo {
481 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
482 }
483
484 pub fn hide_method_info() -> &'static ::unity::il2cpp::MethodInfo {
485 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
486 }
487
488 pub fn show_method_info() -> &'static ::unity::il2cpp::MethodInfo {
489 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
490 }
491
492 pub fn set_map_transparent_method_info() -> &'static ::unity::il2cpp::MethodInfo {
493 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
494 }
495
496 pub fn is_on_ground_method_info() -> &'static ::unity::il2cpp::MethodInfo {
497 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
498 }
499
500 pub fn play_teleport_out_method_info() -> &'static ::unity::il2cpp::MethodInfo {
501 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
502 }
503
504 pub fn play_teleport_in_method_info() -> &'static ::unity::il2cpp::MethodInfo {
505 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
506 }
507
508 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
509 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
510 }
511}
512
513#[cfg(feature = "app-gmapplayerunit")]
514impl GmapPlayerUnit {
515 #[doc = "Direct (non-virtual) call to `GmapPlayerUnit`'s own `OnCreate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
516 pub unsafe fn on_create(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
517 let __mi = Self::on_create_method_info();
518 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
519 __inner(this.into(), ::core::option::Option::None)
520 }
521
522 #[doc = "Direct (non-virtual) call to `GmapPlayerUnit`'s own `OnTick`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
523 pub unsafe fn on_tick(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
524 let __mi = Self::on_tick_method_info();
525 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
526 __inner(this.into(), ::core::option::Option::None)
527 }
528}
529
530#[cfg(feature = "app-gmapplayerunit")]
531impl GmapPlayerUnit {
532 #[doc = "`.ctor()` — no args"]
533 pub fn new() -> Self {
534 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
535 panic!(
536 "{}
537::{}
538 failed to instantiate",
539 ::core::stringify!(GmapPlayerUnit),
540 ::core::stringify!(new),
541 )
542 });
543 <Self as IGmapPlayerUnitMethods>::ctor(this);
544 this
545 }
546}
547
548#[cfg(feature = "app-gmapplayerunit")]
549#[doc(hidden)]
550pub mod prelude {
551 pub use super::{GmapPlayerUnit, GmapPlayerUnit_ModelType, IGmapPlayerUnit, IGmapPlayerUnitMethods};
552 #[cfg(feature = "app-singletonclass_1")]
553 pub use crate::app::singletonclass_1::ISingletonClass_1Methods;
554 #[cfg(feature = "system-object")]
555 pub use crate::system::object::IObjectMethods;
556 #[cfg(feature = "system-enum")]
557 pub use crate::system::r#enum::IEnumMethods;
558 #[cfg(feature = "system-valuetype")]
559 pub use crate::system::valuetype::IValueTypeMethods;
560 pub use crate::{
561 app::singletonclass_1::ISingletonClass_1,
562 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
563 };
564}