engage/generated/app/
camerashake.rs1#[cfg(feature = "app-camerashake-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/camerashake/CameraShake.md"))]
19 #[::unity::class(namespace = "App", name = "CameraShake")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct CameraShake {
22 #[offset(24)]
23 #[rename(name = "m_Delay")]
24 pub m_delay: f32,
25 #[offset(28)]
26 #[rename(name = "m_Time")]
27 pub m_time: f32,
28 #[offset(32)]
29 #[rename(name = "m_Magnitude")]
30 pub m_magnitude: f32,
31 }
32}
33
34#[cfg(feature = "app-camerashake-types")]
35pub use __types::*;
36
37#[cfg(feature = "app-camerashake")]
38pub trait ICameraShakeMethods: ICameraShake {
39 #[doc = "`OnEnable()` overload"]
40 fn on_enable(self) -> () {
41 unsafe {
42 let __receiver = <CameraShake as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 ::unity::il2cpp_call!((::unity::module_base()+0x25ba560usize)as*mut u8,();
44(CameraShake)__receiver)
45 }
46 }
47 #[doc = "`Update()` overload"]
48 fn update(self) -> () {
49 unsafe {
50 let __receiver = <CameraShake as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x25ba570usize)as*mut u8,();
52(CameraShake)__receiver)
53 }
54 }
55 #[doc = "`.ctor()` overload"]
56 fn ctor(self) -> () {
57 unsafe {
58 let __receiver = <CameraShake as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59 ::unity::il2cpp_call!((::unity::module_base()+0x25ba710usize)as*mut u8,();
60(CameraShake)__receiver)
61 }
62 }
63}
64
65#[cfg(feature = "app-camerashake")]
66impl<__T: ICameraShake> ICameraShakeMethods for __T {}
67
68#[cfg(feature = "app-camerashake")]
69impl CameraShake {
70 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
71 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
72 }
73
74 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
75 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
76 }
77
78 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
79 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
80 }
81}
82
83#[cfg(feature = "app-camerashake")]
84impl CameraShake {
85 #[doc = "`.ctor()` — no args"]
86 pub fn new() -> Self {
87 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
88 panic!(
89 "{}
90::{}
91 failed to instantiate",
92 ::core::stringify!(CameraShake),
93 ::core::stringify!(new),
94 )
95 });
96 <Self as ICameraShakeMethods>::ctor(this);
97 this
98 }
99}
100
101#[cfg(feature = "app-camerashake")]
102#[doc(hidden)]
103pub mod prelude {
104 pub use super::{CameraShake, ICameraShake, ICameraShakeMethods};
105 #[cfg(feature = "system-object")]
106 pub use crate::system::object::IObjectMethods;
107 #[cfg(feature = "unity_engine-behaviour")]
108 pub use crate::unity_engine::behaviour::IBehaviourMethods;
109 #[cfg(feature = "unity_engine-component")]
110 pub use crate::unity_engine::component::IComponentMethods;
111 #[cfg(feature = "unity_engine-monobehaviour")]
112 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
113 #[cfg(feature = "unity_engine-object_2")]
114 pub use crate::unity_engine::object_2::IObject_2Methods;
115 pub use crate::{
116 system::object::IObject,
117 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
118 };
119}