Skip to main content

engage/generated/app/
gmapmobunit.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-gmapmobunit-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gmapmobunit/GmapMobUnit.md"))]
11    #[::unity::class(namespace = "App", name = "GmapMobUnit")]
12    #[parent(crate::system::object::Object)]
13    pub struct GmapMobUnit {
14        #[offset(16)]
15        #[rename(name = "m_Unit")]
16        pub m_unit: crate::app::unit::Unit,
17    }
18}
19
20#[cfg(feature = "app-gmapmobunit-types")]
21pub use __types::*;
22
23#[cfg(feature = "app-gmapmobunit")]
24pub trait IGmapMobUnitMethods: IGmapMobUnit {
25    #[doc = "`get_Actor()` overload"]
26    fn get_actor(self) -> crate::app::unitactor::UnitActor {
27        unsafe {
28            let __receiver = <GmapMobUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
29            ::unity::il2cpp_call!((::unity::module_base()+0x252f2e0usize)as*mut u8,crate::app::unitactor::UnitActor;
30(GmapMobUnit)__receiver)
31        }
32    }
33    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString)` overload"]
34    fn ctor(
35        self,
36        pid: impl ::core::convert::Into<::unity::Il2CppString>,
37        jid: impl ::core::convert::Into<::unity::Il2CppString>,
38        iid: impl ::core::convert::Into<::unity::Il2CppString>,
39    ) -> () {
40        unsafe {
41            let __receiver = <GmapMobUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42            ::unity::il2cpp_call!((::unity::module_base()+0x252f2f0usize)as*mut u8,();
43(GmapMobUnit)__receiver,(::unity::Il2CppString)::core::convert::Into::into(pid),(::unity::Il2CppString)::core::convert::Into::into(jid),(::unity::Il2CppString)::core::convert::Into::into(iid))
44        }
45    }
46    #[doc = "`SetUnitFromUnitPool(::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString)` overload"]
47    fn set_unit_from_unit_pool(
48        self,
49        pid: impl ::core::convert::Into<::unity::Il2CppString>,
50        jid: impl ::core::convert::Into<::unity::Il2CppString>,
51        iid: impl ::core::convert::Into<::unity::Il2CppString>,
52    ) -> () {
53        unsafe {
54            let __receiver = <GmapMobUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
55            ::unity::il2cpp_call!((::unity::module_base()+0x252f340usize)as*mut u8,();
56(GmapMobUnit)__receiver,(::unity::Il2CppString)::core::convert::Into::into(pid),(::unity::Il2CppString)::core::convert::Into::into(jid),(::unity::Il2CppString)::core::convert::Into::into(iid))
57        }
58    }
59    #[doc = "`SetPosition(f32, f32, f32)` overload"]
60    fn set_position(self, x: impl ::core::convert::Into<f32>, y: impl ::core::convert::Into<f32>, z: impl ::core::convert::Into<f32>) -> () {
61        unsafe {
62            let __receiver = <GmapMobUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63            ::unity::il2cpp_call!((::unity::module_base()+0x252f400usize)as*mut u8,();
64(GmapMobUnit)__receiver,(f32)::core::convert::Into::into(x),(f32)::core::convert::Into::into(y),(f32)::core::convert::Into::into(z))
65        }
66    }
67    #[doc = "`LoadActor()` overload"]
68    fn load_actor(self) -> () {
69        unsafe {
70            let __receiver = <GmapMobUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71            ::unity::il2cpp_call!((::unity::module_base()+0x252f410usize)as*mut u8,();
72(GmapMobUnit)__receiver)
73        }
74    }
75    #[doc = "`IsLoading()` overload"]
76    fn is_loading(self) -> bool {
77        unsafe {
78            let __receiver = <GmapMobUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79            ::unity::il2cpp_call!((::unity::module_base()+0x252f510usize)as*mut u8,bool;
80(GmapMobUnit)__receiver)
81        }
82    }
83    #[doc = "`UnloadUnit()` overload"]
84    fn unload_unit(self) -> () {
85        unsafe {
86            let __receiver = <GmapMobUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87            ::unity::il2cpp_call!((::unity::module_base()+0x252f520usize)as*mut u8,();
88(GmapMobUnit)__receiver)
89        }
90    }
91}
92
93#[cfg(feature = "app-gmapmobunit")]
94impl<__T: IGmapMobUnit> IGmapMobUnitMethods for __T {}
95
96#[cfg(feature = "app-gmapmobunit")]
97impl GmapMobUnit {
98    pub fn get_actor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
100    }
101
102    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
104    }
105
106    pub fn set_unit_from_unit_pool_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
108    }
109
110    pub fn set_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
111        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
112    }
113
114    pub fn load_actor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
116    }
117
118    pub fn is_loading_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
120    }
121
122    pub fn unload_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
124    }
125}
126
127#[cfg(feature = "app-gmapmobunit")]
128impl GmapMobUnit {
129    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString)` — overload selector"]
130    pub fn new(pid: ::unity::Il2CppString, jid: ::unity::Il2CppString, iid: ::unity::Il2CppString) -> Self {
131        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
132            panic!(
133                "{}
134::{}
135 failed to instantiate",
136                ::core::stringify!(GmapMobUnit),
137                ::core::stringify!(new),
138            )
139        });
140        <Self as IGmapMobUnitMethods>::ctor(this, pid, jid, iid);
141        this
142    }
143}
144
145#[cfg(feature = "app-gmapmobunit")]
146#[doc(hidden)]
147pub mod prelude {
148    pub use super::{GmapMobUnit, IGmapMobUnit, IGmapMobUnitMethods};
149    pub use crate::system::object::IObject;
150    #[cfg(feature = "system-object")]
151    pub use crate::system::object::IObjectMethods;
152}