engage/generated/app/
minimapcursor.rs1#[cfg(feature = "app-minimapcursor-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::{
11 behaviour::{Behaviour, IBehaviour},
12 component::{Component, IComponent},
13 monobehaviour::{IMonoBehaviour, MonoBehaviour},
14 object_2::{IObject_2, Object_2},
15 },
16 };
17
18 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/minimapcursor/MiniMapCursor.md"))]
19 #[::unity::class(namespace = "App", name = "MiniMapCursor")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct MiniMapCursor {
22 #[offset(24)]
23 #[rename(name = "m_CursorLT")]
24 pub m_cursor_lt: crate::unity_engine::gameobject::GameObject,
25 #[offset(32)]
26 #[rename(name = "m_CursorRT")]
27 pub m_cursor_rt: crate::unity_engine::gameobject::GameObject,
28 #[offset(40)]
29 #[rename(name = "m_CursorLB")]
30 pub m_cursor_lb: crate::unity_engine::gameobject::GameObject,
31 #[offset(48)]
32 #[rename(name = "m_CursorRB")]
33 pub m_cursor_rb: crate::unity_engine::gameobject::GameObject,
34 #[offset(56)]
35 #[rename(name = "m_OrgCursorLT")]
36 pub m_org_cursor_lt: crate::unity_engine::gameobject::GameObject,
37 #[offset(64)]
38 #[rename(name = "m_OrgCursorRT")]
39 pub m_org_cursor_rt: crate::unity_engine::gameobject::GameObject,
40 #[offset(72)]
41 #[rename(name = "m_OrgCursorLB")]
42 pub m_org_cursor_lb: crate::unity_engine::gameobject::GameObject,
43 #[offset(80)]
44 #[rename(name = "m_OrgCursorRB")]
45 pub m_org_cursor_rb: crate::unity_engine::gameobject::GameObject,
46 }
47}
48
49#[cfg(feature = "app-minimapcursor-types")]
50pub use __types::*;
51
52#[cfg(feature = "app-minimapcursor")]
53impl MiniMapCursor {
54 #[doc = "`GetPosition(crate::unity_engine::gameobject::GameObject)` overload"]
55 pub fn get_position(obj: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> crate::unity_engine::vector3::Vector3 {
56 unsafe {
57 ::unity::il2cpp_call!((::unity::module_base()+0x25e3aa0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
58(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(obj))
59 }
60 }
61}
62
63#[cfg(feature = "app-minimapcursor")]
64pub trait IMiniMapCursorMethods: IMiniMapCursor {
65 #[doc = "`get_Scale()` overload"]
66 fn get_scale(self) -> f32 {
67 unsafe {
68 let __receiver = <MiniMapCursor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
69 ::unity::il2cpp_call!((::unity::module_base()+0x25e3590usize)as*mut u8,f32;
70(MiniMapCursor)__receiver)
71 }
72 }
73 #[doc = "`set_Scale(f32)` overload"]
74 fn set_scale(self, value: impl ::core::convert::Into<f32>) -> () {
75 unsafe {
76 let __receiver = <MiniMapCursor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
77 ::unity::il2cpp_call!((::unity::module_base()+0x25e35a0usize)as*mut u8,();
78(MiniMapCursor)__receiver,(f32)::core::convert::Into::into(value))
79 }
80 }
81 #[doc = "`get_CalculatedGridSize()` overload"]
82 fn get_calculated_grid_size(self) -> f32 {
83 unsafe {
84 let __receiver = <MiniMapCursor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85 ::unity::il2cpp_call!((::unity::module_base()+0x25e35b0usize)as*mut u8,f32;
86(MiniMapCursor)__receiver)
87 }
88 }
89 #[doc = "`set_CalculatedGridSize(f32)` overload"]
90 fn set_calculated_grid_size(self, value: impl ::core::convert::Into<f32>) -> () {
91 unsafe {
92 let __receiver = <MiniMapCursor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93 ::unity::il2cpp_call!((::unity::module_base()+0x25e35c0usize)as*mut u8,();
94(MiniMapCursor)__receiver,(f32)::core::convert::Into::into(value))
95 }
96 }
97 #[doc = "`get_IsCursorVisible()` overload"]
98 fn get_is_cursor_visible(self) -> bool {
99 unsafe {
100 let __receiver = <MiniMapCursor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101 ::unity::il2cpp_call!((::unity::module_base()+0x25e35d0usize)as*mut u8,bool;
102(MiniMapCursor)__receiver)
103 }
104 }
105 #[doc = "`set_IsCursorVisible(bool)` overload"]
106 fn set_is_cursor_visible(self, value: impl ::core::convert::Into<bool>) -> () {
107 unsafe {
108 let __receiver = <MiniMapCursor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109 ::unity::il2cpp_call!((::unity::module_base()+0x25e35e0usize)as*mut u8,();
110(MiniMapCursor)__receiver,(bool)::core::convert::Into::into(value))
111 }
112 }
113 #[doc = "`Start()` overload"]
114 fn start(self) -> () {
115 unsafe {
116 let __receiver = <MiniMapCursor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117 ::unity::il2cpp_call!((::unity::module_base()+0x25e35f0usize)as*mut u8,();
118(MiniMapCursor)__receiver)
119 }
120 }
121 #[doc = "`TryInitializeParts()` overload"]
122 fn try_initialize_parts(self) -> () {
123 unsafe {
124 let __receiver = <MiniMapCursor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125 ::unity::il2cpp_call!((::unity::module_base()+0x25e3600usize)as*mut u8,();
126(MiniMapCursor)__receiver)
127 }
128 }
129 #[doc = "`CalculateCursorPosition(f32)` overload"]
130 fn calculate_cursor_position(self, grid_size: impl ::core::convert::Into<f32>) -> crate::unity_engine::vector3::Vector3 {
131 unsafe {
132 let __receiver = <MiniMapCursor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133 ::unity::il2cpp_call!((::unity::module_base()+0x25ddc70usize)as*mut u8,crate::unity_engine::vector3::Vector3;
134(MiniMapCursor)__receiver,(f32)::core::convert::Into::into(grid_size))
135 }
136 }
137 #[doc = "`Update()` overload"]
138 fn update(self) -> () {
139 unsafe {
140 let __receiver = <MiniMapCursor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141 ::unity::il2cpp_call!((::unity::module_base()+0x25e3760usize)as*mut u8,();
142(MiniMapCursor)__receiver)
143 }
144 }
145 #[doc = "`GetCenter()` overload"]
146 fn get_center(self) -> crate::unity_engine::vector3::Vector3 {
147 unsafe {
148 let __receiver = <MiniMapCursor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
149 ::unity::il2cpp_call!((::unity::module_base()+0x25dd980usize)as*mut u8,crate::unity_engine::vector3::Vector3;
150(MiniMapCursor)__receiver)
151 }
152 }
153 #[doc = "`.ctor()` overload"]
154 fn ctor(self) -> () {
155 unsafe {
156 let __receiver = <MiniMapCursor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157 ::unity::il2cpp_call!((::unity::module_base()+0x25e3b00usize)as*mut u8,();
158(MiniMapCursor)__receiver)
159 }
160 }
161}
162
163#[cfg(feature = "app-minimapcursor")]
164impl<__T: IMiniMapCursor> IMiniMapCursorMethods for __T {}
165
166#[cfg(feature = "app-minimapcursor")]
167impl MiniMapCursor {
168 pub fn get_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
170 }
171
172 pub fn set_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
174 }
175
176 pub fn get_calculated_grid_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
178 }
179
180 pub fn set_calculated_grid_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
182 }
183
184 pub fn get_is_cursor_visible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
186 }
187
188 pub fn set_is_cursor_visible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
190 }
191
192 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
194 }
195
196 pub fn try_initialize_parts_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
198 }
199
200 pub fn calculate_cursor_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
202 }
203
204 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
206 }
207
208 pub fn get_center_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
210 }
211
212 pub fn get_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
213 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
214 }
215
216 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
218 }
219}
220
221#[cfg(feature = "app-minimapcursor")]
222impl MiniMapCursor {
223 #[doc = "`.ctor()` — no args"]
224 pub fn new() -> Self {
225 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
226 panic!(
227 "{}
228::{}
229 failed to instantiate",
230 ::core::stringify!(MiniMapCursor),
231 ::core::stringify!(new),
232 )
233 });
234 <Self as IMiniMapCursorMethods>::ctor(this);
235 this
236 }
237}
238
239#[cfg(feature = "app-minimapcursor")]
240#[doc(hidden)]
241pub mod prelude {
242 pub use super::{IMiniMapCursor, IMiniMapCursorMethods, MiniMapCursor};
243 #[cfg(feature = "system-object")]
244 pub use crate::system::object::IObjectMethods;
245 #[cfg(feature = "unity_engine-behaviour")]
246 pub use crate::unity_engine::behaviour::IBehaviourMethods;
247 #[cfg(feature = "unity_engine-component")]
248 pub use crate::unity_engine::component::IComponentMethods;
249 #[cfg(feature = "unity_engine-monobehaviour")]
250 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
251 #[cfg(feature = "unity_engine-object_2")]
252 pub use crate::unity_engine::object_2::IObject_2Methods;
253 pub use crate::{
254 system::object::IObject,
255 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
256 };
257}