1#[cfg(feature = "app-mapcamera-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::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapcamera/MapCamera.md"))]
14 #[::unity::class(namespace = "App", name = "MapCamera")]
15 #[parent(crate::app::singletonclass_1::SingletonClass_1<crate::app::mapcamera::MapCamera>)]
16 pub struct MapCamera {
17 #[offset(32)]
18 #[rename(name = "m_Position")]
19 pub m_position: crate::app::interpolatorvector3::InterpolatorVector3,
20 #[offset(40)]
21 #[rename(name = "m_Rotation")]
22 pub m_rotation: crate::app::interpolatorvector3::InterpolatorVector3,
23 #[offset(48)]
24 #[rename(name = "m_Distance")]
25 pub m_distance: crate::app::interpolatorfloat::InterpolatorFloat,
26 #[offset(56)]
27 #[rename(name = "m_EffectShake")]
28 pub m_effect_shake: crate::app::mapcamera::MapCamera_InterpolatorShake,
29 #[offset(64)]
30 #[rename(name = "m_ActionShake")]
31 pub m_action_shake: crate::app::mapcamera::MapCamera_InterpolatorShake,
32 #[offset(72)]
33 #[rename(name = "m_Fov")]
34 pub m_fov: f32,
35 }
36
37 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapcamera/MapCamera_InterpolatorShake.md"))]
38 #[::unity::class(namespace = "App", name = "MapCamera.InterpolatorShake")]
39 #[parent(crate::system::object::Object)]
40 pub struct MapCamera_InterpolatorShake {
41 #[offset(16)]
42 #[rename(name = "m_Time")]
43 pub m_time: f32,
44 #[offset(20)]
45 #[rename(name = "m_Magnitude")]
46 pub m_magnitude: f32,
47 #[offset(24)]
48 #[rename(name = "m_Offset")]
49 pub m_offset: crate::unity_engine::vector3::Vector3,
50 }
51}
52
53#[cfg(feature = "app-mapcamera-types")]
54pub use __types::*;
55
56#[cfg(feature = "app-mapcamera")]
57impl MapCamera {
58 #[doc = "`GetCamera()` overload"]
59 pub fn get_camera() -> crate::unity_engine::camera::Camera {
60 unsafe {
61 ::unity::il2cpp_call!((::unity::module_base()+0x299a510usize)as*mut u8,crate::unity_engine::camera::Camera;
62 )
63 }
64 }
65
66 #[doc = "`SetPosition(crate::unity_engine::vector3::Vector3, f32)` overload"]
67 pub fn set_position(pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>, speed: impl ::core::convert::Into<f32>) -> () {
68 unsafe {
69 ::unity::il2cpp_call!((::unity::module_base()+0x299a5f0usize)as*mut u8,();
70(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(pos),(f32)::core::convert::Into::into(speed))
71 }
72 }
73
74 #[doc = "`SetPosition(i32, i32)` overload"]
75 pub fn set_position_2(x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> () {
76 unsafe {
77 ::unity::il2cpp_call!((::unity::module_base()+0x299c0b0usize)as*mut u8,();
78(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
79 }
80 }
81
82 #[doc = "`SetRotation(crate::unity_engine::vector3::Vector3)` overload"]
83 pub fn set_rotation(rot: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
84 unsafe {
85 ::unity::il2cpp_call!((::unity::module_base()+0x299c170usize)as*mut u8,();
86(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(rot))
87 }
88 }
89
90 #[doc = "`SetDistance(f32)` overload"]
91 pub fn set_distance(distance: impl ::core::convert::Into<f32>) -> () {
92 unsafe {
93 ::unity::il2cpp_call!((::unity::module_base()+0x299c370usize)as*mut u8,();
94(f32)::core::convert::Into::into(distance))
95 }
96 }
97
98 #[doc = "`GetRotation()` overload"]
99 pub fn get_rotation() -> crate::unity_engine::vector3::Vector3 {
100 unsafe {
101 ::unity::il2cpp_call!((::unity::module_base()+0x299c550usize)as*mut u8,crate::unity_engine::vector3::Vector3;
102 )
103 }
104 }
105
106 #[doc = "`Instant(crate::unity_engine::camera::Camera)` overload"]
107 pub fn instant(camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>) -> () {
108 unsafe {
109 ::unity::il2cpp_call!((::unity::module_base()+0x299c630usize)as*mut u8,();
110(crate::unity_engine::camera::Camera)::core::convert::Into::into(camera))
111 }
112 }
113
114 #[doc = "`EffectShake(f32, f32)` overload"]
115 pub fn effect_shake(time: impl ::core::convert::Into<f32>, magnitude: impl ::core::convert::Into<f32>) -> () {
116 unsafe {
117 ::unity::il2cpp_call!((::unity::module_base()+0x299c7b0usize)as*mut u8,();
118(f32)::core::convert::Into::into(time),(f32)::core::convert::Into::into(magnitude))
119 }
120 }
121
122 #[doc = "`ActionShake(f32, f32)` overload"]
123 pub fn action_shake(time: impl ::core::convert::Into<f32>, magnitude: impl ::core::convert::Into<f32>) -> () {
124 unsafe {
125 ::unity::il2cpp_call!((::unity::module_base()+0x299c890usize)as*mut u8,();
126(f32)::core::convert::Into::into(time),(f32)::core::convert::Into::into(magnitude))
127 }
128 }
129
130 #[doc = "`CheckScrollStrictly()` overload"]
131 pub fn check_scroll_strictly() -> bool {
132 unsafe {
133 ::unity::il2cpp_call!((::unity::module_base()+0x299c970usize)as*mut u8,bool;
134 )
135 }
136 }
137
138 #[doc = "`CheckScrollLoosely()` overload"]
139 pub fn check_scroll_loosely() -> bool {
140 unsafe {
141 ::unity::il2cpp_call!((::unity::module_base()+0x299cb60usize)as*mut u8,bool;
142 )
143 }
144 }
145}
146
147#[cfg(feature = "app-mapcamera")]
148pub trait IMapCameraMethods: IMapCamera {
149 #[doc = "`get_Version()` overload"]
150 fn get_version(self) -> i32 {
151 unsafe {
152 let __receiver = <MapCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153 {
154 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
155 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
156 panic!(
157 "unity: virtual slot {}
158 out of range (vtable len {}
159) on the runtime class behind {}
160 (method `{}
161`)",
162 4usize,
163 __vt.len(),
164 <MapCamera as ::unity::ClassIdentity>::NAME,
165 "get_Version",
166 )
167 });
168 let __inner: extern "C" fn(MapCamera, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
169 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
170 __inner(__receiver, __mi)
171 }
172 }
173 }
174 #[doc = "`OnSerialize(crate::app::stream_2::Stream_2)` overload"]
175 fn on_serialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
176 unsafe {
177 let __receiver = <MapCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178 {
179 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
180 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
181 panic!(
182 "unity: virtual slot {}
183 out of range (vtable len {}
184) on the runtime class behind {}
185 (method `{}
186`)",
187 11usize,
188 __vt.len(),
189 <MapCamera as ::unity::ClassIdentity>::NAME,
190 "OnSerialize",
191 )
192 });
193 let __inner: extern "C" fn(MapCamera, crate::app::stream_2::Stream_2, ::unity::OptionalMethod) -> () =
194 ::core::mem::transmute(__vi.method_ptr);
195 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
196 __inner(__receiver, ::core::convert::Into::into(stream), __mi)
197 }
198 }
199 }
200 #[doc = "`OnDeserialize(crate::app::stream_2::Stream_2, i32)` overload"]
201 fn on_deserialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>, version: impl ::core::convert::Into<i32>) -> () {
202 unsafe {
203 let __receiver = <MapCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
204 {
205 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
206 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
207 panic!(
208 "unity: virtual slot {}
209 out of range (vtable len {}
210) on the runtime class behind {}
211 (method `{}
212`)",
213 12usize,
214 __vt.len(),
215 <MapCamera as ::unity::ClassIdentity>::NAME,
216 "OnDeserialize",
217 )
218 });
219 let __inner: extern "C" fn(MapCamera, crate::app::stream_2::Stream_2, i32, ::unity::OptionalMethod) -> () =
220 ::core::mem::transmute(__vi.method_ptr);
221 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
222 __inner(
223 __receiver,
224 ::core::convert::Into::into(stream),
225 ::core::convert::Into::into(version),
226 __mi,
227 )
228 }
229 }
230 }
231 #[doc = "`OnTick()` overload"]
232 fn on_tick(self) -> () {
233 unsafe {
234 let __receiver = <MapCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235 {
236 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
237 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
238 panic!(
239 "unity: virtual slot {}
240 out of range (vtable len {}
241) on the runtime class behind {}
242 (method `{}
243`)",
244 7usize,
245 __vt.len(),
246 <MapCamera as ::unity::ClassIdentity>::NAME,
247 "OnTick",
248 )
249 });
250 let __inner: extern "C" fn(MapCamera, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
251 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
252 __inner(__receiver, __mi)
253 }
254 }
255 }
256 #[doc = "`OnUpdate()` overload"]
257 fn on_update(self) -> () {
258 unsafe {
259 let __receiver = <MapCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
260 {
261 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
262 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
263 panic!(
264 "unity: virtual slot {}
265 out of range (vtable len {}
266) on the runtime class behind {}
267 (method `{}
268`)",
269 8usize,
270 __vt.len(),
271 <MapCamera as ::unity::ClassIdentity>::NAME,
272 "OnUpdate",
273 )
274 });
275 let __inner: extern "C" fn(MapCamera, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
276 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
277 __inner(__receiver, __mi)
278 }
279 }
280 }
281 #[doc = "`Commit(crate::unity_engine::camera::Camera)` overload"]
282 fn commit(self, camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>) -> () {
283 unsafe {
284 let __receiver = <MapCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
285 ::unity::il2cpp_call!((::unity::module_base()+0x299d5e0usize)as*mut u8,();
286(MapCamera)__receiver,(crate::unity_engine::camera::Camera)::core::convert::Into::into(camera))
287 }
288 }
289 #[doc = "`GetParamTime(::unity::Il2CppString)` overload"]
290 fn get_param_time(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> f32 {
291 unsafe {
292 let __receiver = <MapCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
293 ::unity::il2cpp_call!((::unity::module_base()+0x299dbf0usize)as*mut u8,f32;
294(MapCamera)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
295 }
296 }
297 #[doc = "`SetPositionImpl(crate::unity_engine::vector3::Vector3, f32)` overload"]
298 fn set_position_impl(self, pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>, speed: impl ::core::convert::Into<f32>) -> () {
299 unsafe {
300 let __receiver = <MapCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
301 ::unity::il2cpp_call!((::unity::module_base()+0x299a6e0usize)as*mut u8,();
302(MapCamera)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(pos),(f32)::core::convert::Into::into(speed))
303 }
304 }
305 #[doc = "`SetRotationImpl(crate::unity_engine::vector3::Vector3)` overload"]
306 fn set_rotation_impl(self, rot: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
307 unsafe {
308 let __receiver = <MapCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
309 ::unity::il2cpp_call!((::unity::module_base()+0x299c2c0usize)as*mut u8,();
310(MapCamera)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(rot))
311 }
312 }
313 #[doc = "`SetDistanceImpl(f32)` overload"]
314 fn set_distance_impl(self, distance: impl ::core::convert::Into<f32>) -> () {
315 unsafe {
316 let __receiver = <MapCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
317 ::unity::il2cpp_call!((::unity::module_base()+0x299c4b0usize)as*mut u8,();
318(MapCamera)__receiver,(f32)::core::convert::Into::into(distance))
319 }
320 }
321 #[doc = "`InstantImpl(crate::unity_engine::camera::Camera)` overload"]
322 fn instant_impl(self, camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>) -> () {
323 unsafe {
324 let __receiver = <MapCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
325 ::unity::il2cpp_call!((::unity::module_base()+0x299c740usize)as*mut u8,();
326(MapCamera)__receiver,(crate::unity_engine::camera::Camera)::core::convert::Into::into(camera))
327 }
328 }
329 #[doc = "`.ctor()` overload"]
330 fn ctor(self) -> () {
331 unsafe {
332 let __receiver = <MapCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
333 ::unity::il2cpp_call!((::unity::module_base()+0x299dc30usize)as*mut u8,();
334(MapCamera)__receiver)
335 }
336 }
337}
338
339#[cfg(feature = "app-mapcamera")]
340impl<__T: IMapCamera> IMapCameraMethods for __T {}
341
342#[cfg(feature = "app-mapcamera")]
343impl MapCamera {
344 pub fn get_camera_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
346 }
347
348 pub fn set_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
350 }
351
352 pub fn set_position_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
353 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
354 }
355
356 pub fn set_rotation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
357 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
358 }
359
360 pub fn set_distance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
361 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
362 }
363
364 pub fn get_rotation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
365 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
366 }
367
368 pub fn instant_method_info() -> &'static ::unity::il2cpp::MethodInfo {
369 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
370 }
371
372 pub fn effect_shake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
373 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
374 }
375
376 pub fn action_shake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
377 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
378 }
379
380 pub fn check_scroll_strictly_method_info() -> &'static ::unity::il2cpp::MethodInfo {
381 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
382 }
383
384 pub fn check_scroll_loosely_method_info() -> &'static ::unity::il2cpp::MethodInfo {
385 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
386 }
387
388 pub fn get_version_method_info() -> &'static ::unity::il2cpp::MethodInfo {
389 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
390 }
391
392 pub fn on_serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
393 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
394 }
395
396 pub fn on_deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
397 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
398 }
399
400 pub fn on_tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
401 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
402 }
403
404 pub fn on_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
405 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
406 }
407
408 pub fn commit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
409 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
410 }
411
412 pub fn get_param_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
413 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
414 }
415
416 pub fn set_position_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
417 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
418 }
419
420 pub fn set_rotation_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
421 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
422 }
423
424 pub fn set_distance_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
425 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
426 }
427
428 pub fn instant_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
429 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
430 }
431
432 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
433 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
434 }
435}
436
437#[cfg(feature = "app-mapcamera")]
438impl MapCamera {
439 #[doc = "Direct (non-virtual) call to `MapCamera`'s own `get_Version`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
440 pub unsafe fn get_version(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
441 let __mi = Self::get_version_method_info();
442 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
443 __inner(this.into(), ::core::option::Option::None)
444 }
445
446 #[doc = "Direct (non-virtual) call to `MapCamera`'s own `OnSerialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
447 pub unsafe fn on_serialize(this: impl ::core::convert::Into<::unity::IlInstance>, stream: crate::app::stream_2::Stream_2) -> () {
448 let __mi = Self::on_serialize_method_info();
449 let __inner: extern "C" fn(::unity::IlInstance, crate::app::stream_2::Stream_2, ::unity::OptionalMethod) -> () =
450 ::core::mem::transmute(__mi.method_ptr);
451 __inner(this.into(), stream, ::core::option::Option::None)
452 }
453
454 #[doc = "Direct (non-virtual) call to `MapCamera`'s own `OnDeserialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
455 pub unsafe fn on_deserialize(this: impl ::core::convert::Into<::unity::IlInstance>, stream: crate::app::stream_2::Stream_2, version: i32) -> () {
456 let __mi = Self::on_deserialize_method_info();
457 let __inner: extern "C" fn(::unity::IlInstance, crate::app::stream_2::Stream_2, i32, ::unity::OptionalMethod) -> () =
458 ::core::mem::transmute(__mi.method_ptr);
459 __inner(this.into(), stream, version, ::core::option::Option::None)
460 }
461
462 #[doc = "Direct (non-virtual) call to `MapCamera`'s own `OnTick`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
463 pub unsafe fn on_tick(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
464 let __mi = Self::on_tick_method_info();
465 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
466 __inner(this.into(), ::core::option::Option::None)
467 }
468
469 #[doc = "Direct (non-virtual) call to `MapCamera`'s own `OnUpdate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
470 pub unsafe fn on_update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
471 let __mi = Self::on_update_method_info();
472 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
473 __inner(this.into(), ::core::option::Option::None)
474 }
475}
476
477#[cfg(feature = "app-mapcamera")]
478impl MapCamera {
479 #[doc = "`.ctor()` — no args"]
480 pub fn new() -> Self {
481 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
482 panic!(
483 "{}
484::{}
485 failed to instantiate",
486 ::core::stringify!(MapCamera),
487 ::core::stringify!(new),
488 )
489 });
490 <Self as IMapCameraMethods>::ctor(this);
491 this
492 }
493}
494
495#[cfg(feature = "app-mapcamera")]
496pub trait IMapCamera_InterpolatorShakeMethods: IMapCamera_InterpolatorShake {
497 #[doc = "`Run(f32, f32)` overload"]
498 fn run(self, time: impl ::core::convert::Into<f32>, magnitude: impl ::core::convert::Into<f32>) -> () {
499 unsafe {
500 let __receiver =
501 <MapCamera_InterpolatorShake as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
502 ::unity::il2cpp_call!((::unity::module_base()+0x24bd8a0usize)as*mut u8,();
503(MapCamera_InterpolatorShake)__receiver,(f32)::core::convert::Into::into(time),(f32)::core::convert::Into::into(magnitude))
504 }
505 }
506 #[doc = "`Stop()` overload"]
507 fn stop(self) -> () {
508 unsafe {
509 let __receiver =
510 <MapCamera_InterpolatorShake as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
511 ::unity::il2cpp_call!((::unity::module_base()+0x24bd940usize)as*mut u8,();
512(MapCamera_InterpolatorShake)__receiver)
513 }
514 }
515 #[doc = "`Tick()` overload"]
516 fn tick(self) -> () {
517 unsafe {
518 let __receiver =
519 <MapCamera_InterpolatorShake as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
520 ::unity::il2cpp_call!((::unity::module_base()+0x24bd950usize)as*mut u8,();
521(MapCamera_InterpolatorShake)__receiver)
522 }
523 }
524 #[doc = "`get_Offset()` overload"]
525 fn get_offset(self) -> crate::unity_engine::vector3::Vector3 {
526 unsafe {
527 let __receiver =
528 <MapCamera_InterpolatorShake as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
529 ::unity::il2cpp_call!((::unity::module_base()+0x24bdab0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
530(MapCamera_InterpolatorShake)__receiver)
531 }
532 }
533 #[doc = "`.ctor()` overload"]
534 fn ctor(self) -> () {
535 unsafe {
536 let __receiver =
537 <MapCamera_InterpolatorShake as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
538 ::unity::il2cpp_call!((::unity::module_base()+0x24bdac0usize)as*mut u8,();
539(MapCamera_InterpolatorShake)__receiver)
540 }
541 }
542}
543
544#[cfg(feature = "app-mapcamera")]
545impl<__T: IMapCamera_InterpolatorShake> IMapCamera_InterpolatorShakeMethods for __T {}
546
547#[cfg(feature = "app-mapcamera")]
548impl MapCamera_InterpolatorShake {
549 pub fn run_method_info() -> &'static ::unity::il2cpp::MethodInfo {
550 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
551 }
552
553 pub fn stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
554 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
555 }
556
557 pub fn tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
558 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
559 }
560
561 pub fn get_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
562 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
563 }
564
565 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
566 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
567 }
568}
569
570#[cfg(feature = "app-mapcamera")]
571impl MapCamera_InterpolatorShake {
572 #[doc = "`.ctor()` — no args"]
573 pub fn new() -> Self {
574 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
575 panic!(
576 "{}
577::{}
578 failed to instantiate",
579 ::core::stringify!(MapCamera_InterpolatorShake),
580 ::core::stringify!(new),
581 )
582 });
583 <Self as IMapCamera_InterpolatorShakeMethods>::ctor(this);
584 this
585 }
586}
587
588#[cfg(feature = "app-mapcamera")]
589#[doc(hidden)]
590pub mod prelude {
591 pub use super::{
592 IMapCamera, IMapCameraMethods, IMapCamera_InterpolatorShake, IMapCamera_InterpolatorShakeMethods, MapCamera, MapCamera_InterpolatorShake,
593 };
594 #[cfg(feature = "app-singletonclass_1")]
595 pub use crate::app::singletonclass_1::ISingletonClass_1Methods;
596 #[cfg(feature = "system-object")]
597 pub use crate::system::object::IObjectMethods;
598 pub use crate::{app::singletonclass_1::ISingletonClass_1, system::object::IObject};
599}