Skip to main content

engage/generated/root/
cinemachineshotplayable.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-cinemachineshotplayable-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::playables::playablebehaviour::{IPlayableBehaviour, PlayableBehaviour},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/cinemachineshotplayable/CinemachineShotPlayable.md"))]
14    #[::unity::class(namespace = "", name = "CinemachineShotPlayable")]
15    #[parent(crate::unity_engine::playables::playablebehaviour::PlayableBehaviour)]
16    pub struct CinemachineShotPlayable {}
17}
18
19#[cfg(feature = "root-cinemachineshotplayable-types")]
20pub use __types::*;
21
22#[cfg(feature = "root-cinemachineshotplayable")]
23pub trait ICinemachineShotPlayableMethods: ICinemachineShotPlayable {
24    #[doc = "`get_IsValid()` overload"]
25    fn get_is_valid(self) -> bool {
26        unsafe {
27            let __receiver =
28                <CinemachineShotPlayable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
29            ::unity::il2cpp_call!((::unity::module_base()+0x3887c00usize)as*mut u8,bool;
30(CinemachineShotPlayable)__receiver)
31        }
32    }
33    #[doc = "`.ctor()` overload"]
34    fn ctor(self) -> () {
35        unsafe {
36            let __receiver =
37                <CinemachineShotPlayable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38            ::unity::il2cpp_call!((::unity::module_base()+0x388da10usize)as*mut u8,();
39(CinemachineShotPlayable)__receiver)
40        }
41    }
42}
43
44#[cfg(feature = "root-cinemachineshotplayable")]
45impl<__T: ICinemachineShotPlayable> ICinemachineShotPlayableMethods for __T {}
46
47#[cfg(feature = "root-cinemachineshotplayable")]
48impl CinemachineShotPlayable {
49    pub fn get_is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
50        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
51    }
52
53    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
54        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
55    }
56}
57
58#[cfg(feature = "root-cinemachineshotplayable")]
59impl CinemachineShotPlayable {
60    #[doc = "`.ctor()` — no args"]
61    pub fn new() -> Self {
62        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
63            panic!(
64                "{}
65::{}
66 failed to instantiate",
67                ::core::stringify!(CinemachineShotPlayable),
68                ::core::stringify!(new),
69            )
70        });
71        <Self as ICinemachineShotPlayableMethods>::ctor(this);
72        this
73    }
74}
75
76#[cfg(feature = "root-cinemachineshotplayable")]
77#[doc(hidden)]
78pub mod prelude {
79    pub use super::{CinemachineShotPlayable, ICinemachineShotPlayable, ICinemachineShotPlayableMethods};
80    #[cfg(feature = "system-object")]
81    pub use crate::system::object::IObjectMethods;
82    #[cfg(feature = "unity_engine-playables-playablebehaviour")]
83    pub use crate::unity_engine::playables::playablebehaviour::IPlayableBehaviourMethods;
84    pub use crate::{system::object::IObject, unity_engine::playables::playablebehaviour::IPlayableBehaviour};
85}