Skip to main content

engage/generated/root/
cinemachinerecomposer.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-cinemachinerecomposer-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8
9    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/cinemachinerecomposer/CinemachineRecomposer.md"))]
10    #[::unity::class(namespace = "", name = "CinemachineRecomposer")]
11    pub struct CinemachineRecomposer {
12        #[offset(44)]
13        #[rename(name = "m_Tilt")]
14        pub m_tilt: f32,
15        #[offset(48)]
16        #[rename(name = "m_Pan")]
17        pub m_pan: f32,
18        #[offset(52)]
19        #[rename(name = "m_Dutch")]
20        pub m_dutch: f32,
21        #[offset(56)]
22        #[rename(name = "m_ZoomScale")]
23        pub m_zoom_scale: f32,
24        #[offset(60)]
25        #[rename(name = "m_FollowAttachment")]
26        pub m_follow_attachment: f32,
27        #[offset(64)]
28        #[rename(name = "m_LookAtAttachment")]
29        pub m_look_at_attachment: f32,
30    }
31}
32
33#[cfg(feature = "root-cinemachinerecomposer-types")]
34pub use __types::*;
35
36#[cfg(feature = "root-cinemachinerecomposer")]
37pub trait ICinemachineRecomposerMethods: ICinemachineRecomposer {
38    #[doc = "`Reset()` overload"]
39    fn reset(self) -> () {
40        unsafe {
41            let __receiver = <CinemachineRecomposer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42            ::unity::il2cpp_call!((::unity::module_base()+0x388cf10usize)as*mut u8,();
43(CinemachineRecomposer)__receiver)
44        }
45    }
46    #[doc = "`OnValidate()` overload"]
47    fn on_validate(self) -> () {
48        unsafe {
49            let __receiver = <CinemachineRecomposer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50            ::unity::il2cpp_call!((::unity::module_base()+0x388cf30usize)as*mut u8,();
51(CinemachineRecomposer)__receiver)
52        }
53    }
54    #[doc = "`.ctor()` overload"]
55    fn ctor(self) -> () {
56        unsafe {
57            let __receiver = <CinemachineRecomposer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
58            ::unity::il2cpp_call!((::unity::module_base()+0x388d160usize)as*mut u8,();
59(CinemachineRecomposer)__receiver)
60        }
61    }
62}
63
64#[cfg(feature = "root-cinemachinerecomposer")]
65impl<__T: ICinemachineRecomposer> ICinemachineRecomposerMethods for __T {}
66
67#[cfg(feature = "root-cinemachinerecomposer")]
68impl CinemachineRecomposer {
69    pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
70        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
71    }
72
73    pub fn on_validate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
74        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
75    }
76
77    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
78        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
79    }
80}
81
82#[cfg(feature = "root-cinemachinerecomposer")]
83impl CinemachineRecomposer {
84    #[doc = "`.ctor()` — no args"]
85    pub fn new() -> Self {
86        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
87            panic!(
88                "{}
89::{}
90 failed to instantiate",
91                ::core::stringify!(CinemachineRecomposer),
92                ::core::stringify!(new),
93            )
94        });
95        <Self as ICinemachineRecomposerMethods>::ctor(this);
96        this
97    }
98}
99
100#[cfg(feature = "root-cinemachinerecomposer")]
101#[doc(hidden)]
102pub mod prelude {
103    pub use super::{CinemachineRecomposer, ICinemachineRecomposer, ICinemachineRecomposerMethods};
104}