1#[cfg(feature = "app-mapprojection-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::singletonmonobehaviour_1::{ISingletonMonoBehaviour_1, SingletonMonoBehaviour_1},
10 system::object::{IObject, Object},
11 unity_engine::{
12 behaviour::{Behaviour, IBehaviour},
13 component::{Component, IComponent},
14 monobehaviour::{IMonoBehaviour, MonoBehaviour},
15 object_2::{IObject_2, Object_2},
16 },
17 };
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapprojection/MapProjection.md"))]
20 #[::unity::class(namespace = "App", name = "MapProjection")]
21 #[parent(crate::app::singletonmonobehaviour_1::SingletonMonoBehaviour_1<crate::app::mapprojection::MapProjection>)]
22 pub struct MapProjection {
23 #[offset(32)]
24 #[rename(name = "m_Texture")]
25 pub m_texture: crate::unity_engine::texture::Texture,
26 #[offset(40)]
27 #[rename(name = "m_OffsetX")]
28 pub m_offset_x: f32,
29 #[offset(44)]
30 #[rename(name = "m_OffsetY")]
31 pub m_offset_y: f32,
32 #[offset(48)]
33 #[rename(name = "m_SpeedX")]
34 pub m_speed_x: f32,
35 #[offset(52)]
36 #[rename(name = "m_SpeedY")]
37 pub m_speed_y: f32,
38 #[offset(56)]
39 #[rename(name = "m_Scale")]
40 pub m_scale: f32,
41 #[offset(60)]
42 #[rename(name = "m_Alpha")]
43 pub m_alpha: f32,
44 #[offset(64)]
45 #[rename(name = "m_SightSideColor")]
46 pub m_sight_side_color: crate::unity_engine::color32::Color32,
47 #[offset(68)]
48 #[rename(name = "m_SightDarkColor")]
49 pub m_sight_dark_color: crate::unity_engine::color32::Color32,
50 #[offset(72)]
51 #[rename(name = "m_SightMaskColor")]
52 pub m_sight_mask_color: crate::unity_engine::color32::Color32,
53 #[offset(80)]
54 #[rename(name = "m_SightTexture")]
55 pub m_sight_texture: crate::unity_engine::texture2d::Texture2D,
56 #[offset(88)]
57 #[rename(name = "m_SightColors")]
58 pub m_sight_colors: ::unity::Array<crate::unity_engine::color32::Color32>,
59 #[offset(96)]
60 #[rename(name = "m_SightImage")]
61 pub m_sight_image: crate::app::mapimagesight::MapImageSight,
62 #[offset(104)]
63 #[rename(name = "m_SightWidth")]
64 pub m_sight_width: i32,
65 #[offset(108)]
66 #[rename(name = "m_SightHeight")]
67 pub m_sight_height: i32,
68 #[offset(112)]
69 #[rename(name = "m_MapProjectionTex")]
70 pub m_map_projection_tex: i32,
71 #[offset(116)]
72 #[rename(name = "m_MapProjectionScale")]
73 pub m_map_projection_scale: i32,
74 #[offset(120)]
75 #[rename(name = "m_MapProjectionAlpha")]
76 pub m_map_projection_alpha: i32,
77 #[offset(124)]
78 #[rename(name = "m_MapProjectionOffset")]
79 pub m_map_projection_offset: i32,
80 #[offset(128)]
81 #[rename(name = "m_MapProjectionSpeed")]
82 pub m_map_projection_speed: i32,
83 }
84}
85
86#[cfg(feature = "app-mapprojection-types")]
87pub use __types::*;
88
89#[cfg(feature = "app-mapprojection")]
90pub trait IMapProjectionMethods: IMapProjection {
91 #[doc = "`IsUsable()` overload"]
92 fn is_usable(self) -> bool {
93 unsafe {
94 let __receiver = <MapProjection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95 ::unity::il2cpp_call!((::unity::module_base()+0x235baa0usize)as*mut u8,bool;
96(MapProjection)__receiver)
97 }
98 }
99 #[doc = "`OnEnable()` overload"]
100 fn on_enable(self) -> () {
101 unsafe {
102 let __receiver = <MapProjection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103 ::unity::il2cpp_call!((::unity::module_base()+0x235bb30usize)as*mut u8,();
104(MapProjection)__receiver)
105 }
106 }
107 #[doc = "`OnDisable()` overload"]
108 fn on_disable(self) -> () {
109 unsafe {
110 let __receiver = <MapProjection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111 ::unity::il2cpp_call!((::unity::module_base()+0x235bd10usize)as*mut u8,();
112(MapProjection)__receiver)
113 }
114 }
115 #[doc = "`GetSightFilter()` overload"]
116 fn get_sight_filter(self) -> crate::unity_engine::filtermode::FilterMode {
117 unsafe {
118 let __receiver = <MapProjection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119 ::unity::il2cpp_call!((::unity::module_base()+0x235bec0usize)as*mut u8,crate::unity_engine::filtermode::FilterMode;
120(MapProjection)__receiver)
121 }
122 }
123 #[doc = "`GetSightSize()` overload"]
124 fn get_sight_size(self) -> i32 {
125 unsafe {
126 let __receiver = <MapProjection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127 ::unity::il2cpp_call!((::unity::module_base()+0x235bf80usize)as*mut u8,i32;
128(MapProjection)__receiver)
129 }
130 }
131 #[doc = "`GetSightScale()` overload"]
132 fn get_sight_scale(self) -> i32 {
133 unsafe {
134 let __receiver = <MapProjection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 ::unity::il2cpp_call!((::unity::module_base()+0x235c070usize)as*mut u8,i32;
136(MapProjection)__receiver)
137 }
138 }
139 #[doc = "`GetSightShift()` overload"]
140 fn get_sight_shift(self) -> i32 {
141 unsafe {
142 let __receiver = <MapProjection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143 ::unity::il2cpp_call!((::unity::module_base()+0x235bfa0usize)as*mut u8,i32;
144(MapProjection)__receiver)
145 }
146 }
147 #[doc = "`IsChangedSightTexture()` overload"]
148 fn is_changed_sight_texture(self) -> bool {
149 unsafe {
150 let __receiver = <MapProjection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151 ::unity::il2cpp_call!((::unity::module_base()+0x235c090usize)as*mut u8,bool;
152(MapProjection)__receiver)
153 }
154 }
155 #[doc = "`TryCreateSightTexture()` overload"]
156 fn try_create_sight_texture(self) -> crate::unity_engine::texture2d::Texture2D {
157 unsafe {
158 let __receiver = <MapProjection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159 ::unity::il2cpp_call!((::unity::module_base()+0x235c110usize)as*mut u8,crate::unity_engine::texture2d::Texture2D;
160(MapProjection)__receiver)
161 }
162 }
163 #[doc = "`ClearSightTexture()` overload"]
164 fn clear_sight_texture(self) -> () {
165 unsafe {
166 let __receiver = <MapProjection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167 ::unity::il2cpp_call!((::unity::module_base()+0x235c2c0usize)as*mut u8,();
168(MapProjection)__receiver)
169 }
170 }
171 #[doc = "`TryDeleteSightTexture()` overload"]
172 fn try_delete_sight_texture(self) -> () {
173 unsafe {
174 let __receiver = <MapProjection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175 ::unity::il2cpp_call!((::unity::module_base()+0x235c330usize)as*mut u8,();
176(MapProjection)__receiver)
177 }
178 }
179 #[doc = "`UpdateSightTexture(crate::app::mapimagesight::MapImageSight, i32, i32)` overload"]
180 fn update_sight_texture(
181 self,
182 image: impl ::core::convert::Into<crate::app::mapimagesight::MapImageSight>,
183 w: impl ::core::convert::Into<i32>,
184 h: impl ::core::convert::Into<i32>,
185 ) -> () {
186 unsafe {
187 let __receiver = <MapProjection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
188 ::unity::il2cpp_call!((::unity::module_base()+0x235c3f0usize)as*mut u8,();
189(MapProjection)__receiver,(crate::app::mapimagesight::MapImageSight)::core::convert::Into::into(image),(i32)::core::convert::Into::into(w),(i32)::core::convert::Into::into(h))
190 }
191 }
192 #[doc = "`Commit(crate::unity_engine::texture::Texture, f32, f32, f32, f32, f32, f32)` overload"]
193 fn commit(
194 self,
195 texture: impl ::core::convert::Into<crate::unity_engine::texture::Texture>,
196 scale: impl ::core::convert::Into<f32>,
197 alpha: impl ::core::convert::Into<f32>,
198 offset_x: impl ::core::convert::Into<f32>,
199 offset_y: impl ::core::convert::Into<f32>,
200 speed_x: impl ::core::convert::Into<f32>,
201 speed_y: impl ::core::convert::Into<f32>,
202 ) -> () {
203 unsafe {
204 let __receiver = <MapProjection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205 ::unity::il2cpp_call!((::unity::module_base()+0x235bdc0usize)as*mut u8,();
206(MapProjection)__receiver,(crate::unity_engine::texture::Texture)::core::convert::Into::into(texture),(f32)::core::convert::Into::into(scale),(f32)::core::convert::Into::into(alpha),(f32)::core::convert::Into::into(offset_x),(f32)::core::convert::Into::into(offset_y),(f32)::core::convert::Into::into(speed_x),(f32)::core::convert::Into::into(speed_y))
207 }
208 }
209 #[doc = "`Commit(crate::app::viewmode::ViewMode_Mode)` overload"]
210 fn commit_2(self, mode: impl ::core::convert::Into<crate::app::viewmode::ViewMode_Mode>) -> () {
211 unsafe {
212 let __receiver = <MapProjection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213 ::unity::il2cpp_call!((::unity::module_base()+0x235c610usize)as*mut u8,();
214(MapProjection)__receiver,(crate::app::viewmode::ViewMode_Mode)::core::convert::Into::into(mode))
215 }
216 }
217 #[doc = "`Commit()` overload"]
218 fn commit_3(self) -> () {
219 unsafe {
220 let __receiver = <MapProjection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
221 ::unity::il2cpp_call!((::unity::module_base()+0x235bbc0usize)as*mut u8,();
222(MapProjection)__receiver)
223 }
224 }
225 #[doc = "`.ctor()` overload"]
226 fn ctor(self) -> () {
227 unsafe {
228 let __receiver = <MapProjection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
229 ::unity::il2cpp_call!((::unity::module_base()+0x235c740usize)as*mut u8,();
230(MapProjection)__receiver)
231 }
232 }
233}
234
235#[cfg(feature = "app-mapprojection")]
236impl<__T: IMapProjection> IMapProjectionMethods for __T {}
237
238#[cfg(feature = "app-mapprojection")]
239impl MapProjection {
240 pub fn is_usable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
242 }
243
244 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
245 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
246 }
247
248 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
250 }
251
252 pub fn get_sight_filter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
254 }
255
256 pub fn get_sight_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
258 }
259
260 pub fn get_sight_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
262 }
263
264 pub fn get_sight_shift_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
266 }
267
268 pub fn is_changed_sight_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
270 }
271
272 pub fn try_create_sight_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
274 }
275
276 pub fn clear_sight_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
278 }
279
280 pub fn try_delete_sight_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
282 }
283
284 pub fn update_sight_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
286 }
287
288 pub fn commit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
290 }
291
292 pub fn commit_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
294 }
295
296 pub fn commit_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
298 }
299
300 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
302 }
303}
304
305#[cfg(feature = "app-mapprojection")]
306impl MapProjection {
307 #[doc = "`.ctor()` — no args"]
308 pub fn new() -> Self {
309 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
310 panic!(
311 "{}
312::{}
313 failed to instantiate",
314 ::core::stringify!(MapProjection),
315 ::core::stringify!(new),
316 )
317 });
318 <Self as IMapProjectionMethods>::ctor(this);
319 this
320 }
321}
322
323#[cfg(feature = "app-mapprojection")]
324#[doc(hidden)]
325pub mod prelude {
326 pub use super::{IMapProjection, IMapProjectionMethods, MapProjection};
327 #[cfg(feature = "app-singletonmonobehaviour_1")]
328 pub use crate::app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1Methods;
329 #[cfg(feature = "system-object")]
330 pub use crate::system::object::IObjectMethods;
331 #[cfg(feature = "unity_engine-behaviour")]
332 pub use crate::unity_engine::behaviour::IBehaviourMethods;
333 #[cfg(feature = "unity_engine-component")]
334 pub use crate::unity_engine::component::IComponentMethods;
335 #[cfg(feature = "unity_engine-monobehaviour")]
336 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
337 #[cfg(feature = "unity_engine-object_2")]
338 pub use crate::unity_engine::object_2::IObject_2Methods;
339 pub use crate::{
340 app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1,
341 system::object::IObject,
342 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
343 };
344}