engage/generated/root/
cinemachineshot.rs1#[cfg(feature = "root-cinemachineshot-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 object_2::{IObject_2, Object_2},
12 playables::playableasset::{IPlayableAsset, PlayableAsset},
13 scriptableobject::{IScriptableObject, ScriptableObject},
14 },
15 };
16
17 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/cinemachineshot/CinemachineShot.md"))]
18 #[::unity::class(namespace = "", name = "CinemachineShot")]
19 #[parent(crate::unity_engine::playables::playableasset::PlayableAsset)]
20 pub struct CinemachineShot {
21 #[offset(24)]
22 #[rename(name = "DisplayName")]
23 pub display_name: ::unity::Il2CppString,
24 }
25}
26
27#[cfg(feature = "root-cinemachineshot-types")]
28pub use __types::*;
29
30#[cfg(feature = "root-cinemachineshot")]
31pub trait ICinemachineShotMethods: ICinemachineShot {
32 #[doc = "`CreatePlayable(crate::unity_engine::playables::playablegraph::PlayableGraph, crate::unity_engine::gameobject::GameObject)` overload"]
33 fn create_playable(
34 self,
35 graph: impl ::core::convert::Into<crate::unity_engine::playables::playablegraph::PlayableGraph>,
36 owner: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
37 ) -> crate::unity_engine::playables::playable::Playable {
38 unsafe {
39 let __receiver = <CinemachineShot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40 {
41 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
42 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
43 panic!(
44 "unity: virtual slot {}
45 out of range (vtable len {}
46) on the runtime class behind {}
47 (method `{}
48`)",
49 6usize,
50 __vt.len(),
51 <CinemachineShot as ::unity::ClassIdentity>::NAME,
52 "CreatePlayable",
53 )
54 });
55 let __inner: extern "C" fn(
56 CinemachineShot,
57 crate::unity_engine::playables::playablegraph::PlayableGraph,
58 crate::unity_engine::gameobject::GameObject,
59 ::unity::OptionalMethod,
60 ) -> crate::unity_engine::playables::playable::Playable = ::core::mem::transmute(__vi.method_ptr);
61 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
62 __inner(__receiver, ::core::convert::Into::into(graph), ::core::convert::Into::into(owner), __mi)
63 }
64 }
65 }
66 #[doc = "`GatherProperties(crate::unity_engine::playables::playabledirector::PlayableDirector, crate::unity_engine::timeline::ipropertycollector::IPropertyCollector)` overload"]
67 fn gather_properties(
68 self,
69 director: impl ::core::convert::Into<crate::unity_engine::playables::playabledirector::PlayableDirector>,
70 driver: impl ::core::convert::Into<crate::unity_engine::timeline::ipropertycollector::IPropertyCollector>,
71 ) -> () {
72 unsafe {
73 let __receiver = <CinemachineShot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74 {
75 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
76 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
77 panic!(
78 "unity: virtual slot {}
79 out of range (vtable len {}
80) on the runtime class behind {}
81 (method `{}
82`)",
83 9usize,
84 __vt.len(),
85 <CinemachineShot as ::unity::ClassIdentity>::NAME,
86 "GatherProperties",
87 )
88 });
89 let __inner: extern "C" fn(
90 CinemachineShot,
91 crate::unity_engine::playables::playabledirector::PlayableDirector,
92 crate::unity_engine::timeline::ipropertycollector::IPropertyCollector,
93 ::unity::OptionalMethod,
94 ) -> () = ::core::mem::transmute(__vi.method_ptr);
95 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
96 __inner(
97 __receiver,
98 ::core::convert::Into::into(director),
99 ::core::convert::Into::into(driver),
100 __mi,
101 )
102 }
103 }
104 }
105 #[doc = "`.ctor()` overload"]
106 fn ctor(self) -> () {
107 unsafe {
108 let __receiver = <CinemachineShot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109 ::unity::il2cpp_call!((::unity::module_base()+0x388da00usize)as*mut u8,();
110(CinemachineShot)__receiver)
111 }
112 }
113}
114
115#[cfg(feature = "root-cinemachineshot")]
116impl<__T: ICinemachineShot> ICinemachineShotMethods for __T {}
117
118#[cfg(feature = "root-cinemachineshot")]
119impl CinemachineShot {
120 pub fn create_playable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
121 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
122 }
123
124 pub fn gather_properties_method_info() -> &'static ::unity::il2cpp::MethodInfo {
125 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
126 }
127
128 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
129 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
130 }
131}
132
133#[cfg(feature = "root-cinemachineshot")]
134impl CinemachineShot {
135 #[doc = "Direct (non-virtual) call to `CinemachineShot`'s own `CreatePlayable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
136 pub unsafe fn create_playable(
137 this: impl ::core::convert::Into<::unity::IlInstance>,
138 graph: crate::unity_engine::playables::playablegraph::PlayableGraph,
139 owner: crate::unity_engine::gameobject::GameObject,
140 ) -> crate::unity_engine::playables::playable::Playable {
141 let __mi = Self::create_playable_method_info();
142 let __inner: extern "C" fn(
143 ::unity::IlInstance,
144 crate::unity_engine::playables::playablegraph::PlayableGraph,
145 crate::unity_engine::gameobject::GameObject,
146 ::unity::OptionalMethod,
147 ) -> crate::unity_engine::playables::playable::Playable = ::core::mem::transmute(__mi.method_ptr);
148 __inner(this.into(), graph, owner, ::core::option::Option::None)
149 }
150
151 #[doc = "Direct (non-virtual) call to `CinemachineShot`'s own `GatherProperties`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
152 pub unsafe fn gather_properties(
153 this: impl ::core::convert::Into<::unity::IlInstance>,
154 director: crate::unity_engine::playables::playabledirector::PlayableDirector,
155 driver: crate::unity_engine::timeline::ipropertycollector::IPropertyCollector,
156 ) -> () {
157 let __mi = Self::gather_properties_method_info();
158 let __inner: extern "C" fn(
159 ::unity::IlInstance,
160 crate::unity_engine::playables::playabledirector::PlayableDirector,
161 crate::unity_engine::timeline::ipropertycollector::IPropertyCollector,
162 ::unity::OptionalMethod,
163 ) -> () = ::core::mem::transmute(__mi.method_ptr);
164 __inner(this.into(), director, driver, ::core::option::Option::None)
165 }
166}
167
168#[cfg(feature = "root-cinemachineshot")]
169impl CinemachineShot {
170 #[doc = "`.ctor()` — no args"]
171 pub fn new() -> Self {
172 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
173 panic!(
174 "{}
175::{}
176 failed to instantiate",
177 ::core::stringify!(CinemachineShot),
178 ::core::stringify!(new),
179 )
180 });
181 <Self as ICinemachineShotMethods>::ctor(this);
182 this
183 }
184}
185
186#[cfg(feature = "root-cinemachineshot")]
187#[doc(hidden)]
188pub mod prelude {
189 pub use super::{CinemachineShot, ICinemachineShot, ICinemachineShotMethods};
190 #[cfg(feature = "system-object")]
191 pub use crate::system::object::IObjectMethods;
192 #[cfg(feature = "unity_engine-object_2")]
193 pub use crate::unity_engine::object_2::IObject_2Methods;
194 #[cfg(feature = "unity_engine-playables-playableasset")]
195 pub use crate::unity_engine::playables::playableasset::IPlayableAssetMethods;
196 #[cfg(feature = "unity_engine-scriptableobject")]
197 pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
198 pub use crate::{
199 system::object::IObject,
200 unity_engine::{object_2::IObject_2, playables::playableasset::IPlayableAsset, scriptableobject::IScriptableObject},
201 };
202}