Skip to main content

engage/generated/unity_engine/playables/
playableoutput.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-playables-playableoutput-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/playables/playableoutput/PlayableOutput.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct PlayableOutput {
17        pub m_handle: crate::unity_engine::playables::playableoutputhandle::PlayableOutputHandle,
18    }
19    impl ::unity::ClassIdentity for PlayableOutput {
20        const NAME: &'static str = "PlayableOutput";
21        const NAMESPACE: &'static str = "UnityEngine.Playables";
22
23        fn class() -> ::unity::Class {
24            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
25            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
26        }
27    }
28    impl ::unity::IlType for PlayableOutput {
29        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
30            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
31        }
32    }
33    impl PlayableOutput {
34        #[inline]
35        pub fn m_null_playable_output() -> crate::unity_engine::playables::playableoutput::PlayableOutput {
36            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
37            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "m_NullPlayableOutput");
38            ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
39        }
40
41        #[inline]
42        pub fn set_m_null_playable_output(value: crate::unity_engine::playables::playableoutput::PlayableOutput) {
43            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
44            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "m_NullPlayableOutput");
45            ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
46        }
47    }
48}
49
50#[cfg(feature = "unity_engine-playables-playableoutput-types")]
51pub use __types::*;
52
53#[cfg(feature = "unity_engine-playables-playableoutput")]
54impl PlayableOutput {
55    #[doc = "`get_Null()` overload"]
56    pub fn get_null() -> crate::unity_engine::playables::playableoutput::PlayableOutput {
57        unsafe {
58            ::unity::il2cpp_call!((::unity::module_base()+0x32f1f40usize)as*mut u8,crate::unity_engine::playables::playableoutput::PlayableOutput;
59            )
60        }
61    }
62
63    #[doc = "`.cctor()` overload"]
64    pub fn cctor() -> () {
65        unsafe {
66            ::unity::il2cpp_call!((::unity::module_base()+0x32f4e40usize)as*mut u8,();
67            )
68        }
69    }
70}
71
72#[cfg(feature = "unity_engine-playables-playableoutput")]
73impl PlayableOutput {
74    #[doc = "`.ctor(crate::unity_engine::playables::playableoutputhandle::PlayableOutputHandle)` overload"]
75    pub fn ctor(&mut self, handle: impl ::core::convert::Into<crate::unity_engine::playables::playableoutputhandle::PlayableOutputHandle>) -> () {
76        unsafe {
77            ::unity::il2cpp_call!((::unity::module_base()+0x32f4ca0usize)as*mut u8,();
78(*mut PlayableOutput)self as*mut PlayableOutput,(crate::unity_engine::playables::playableoutputhandle::PlayableOutputHandle)::core::convert::Into::into(handle))
79        }
80    }
81
82    #[doc = "`GetHandle()` overload"]
83    pub fn get_handle(&mut self) -> crate::unity_engine::playables::playableoutputhandle::PlayableOutputHandle {
84        unsafe {
85            ::unity::il2cpp_call!((::unity::module_base()+0x32f4cb0usize)as*mut u8,crate::unity_engine::playables::playableoutputhandle::PlayableOutputHandle;
86(*mut PlayableOutput)self as*mut PlayableOutput)
87        }
88    }
89
90    pub fn is_playable_output_of_type<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(&mut self) -> bool {
91        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
92            ::unity::lookup::method_info_on_class(<PlayableOutput as ::unity::ClassIdentity>::class(), "IsPlayableOutputOfType", 0)
93        });
94        #[allow(clippy::type_complexity)]
95        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
96            ::std::sync::OnceLock::new();
97        let _ = false;
98        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
99            ::core::result::Result::Ok(mi) => *mi,
100            ::core::result::Result::Err(e) => {
101                panic!(
102                    "method lookup failed: {}
103::{}
104: {}
105",
106                    <PlayableOutput as ::unity::ClassIdentity>::NAME,
107                    "IsPlayableOutputOfType",
108                    e
109                )
110            },
111        };
112        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
113        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
114        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
115            let mut __guard = __cache.lock().unwrap();
116            *__guard
117                .entry(__key)
118                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
119        };
120        unsafe {
121            let __f: extern "C" fn(*mut PlayableOutput, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__inflated.method_ptr);
122            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
123            __f(self as *mut PlayableOutput, ::core::option::Option::Some(__mi_opaque))
124        }
125    }
126
127    #[doc = "`Equals(crate::unity_engine::playables::playableoutput::PlayableOutput)` overload"]
128    pub fn equals(&mut self, other: impl ::core::convert::Into<crate::unity_engine::playables::playableoutput::PlayableOutput>) -> bool {
129        unsafe {
130            ::unity::il2cpp_call!((::unity::module_base()+0x32f4cc0usize)as*mut u8,bool;
131(*mut PlayableOutput)self as*mut PlayableOutput,(crate::unity_engine::playables::playableoutput::PlayableOutput)::core::convert::Into::into(other))
132        }
133    }
134}
135
136#[cfg(feature = "unity_engine-playables-playableoutput")]
137impl PlayableOutput {
138    pub fn get_null_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
140    }
141
142    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
144    }
145
146    pub fn get_handle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
148    }
149
150    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
152    }
153
154    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
156    }
157}
158
159#[cfg(feature = "unity_engine-playables-playableoutput")]
160#[doc(hidden)]
161pub mod prelude {
162    pub use super::PlayableOutput;
163    #[cfg(feature = "system-object")]
164    pub use crate::system::object::IObjectMethods;
165    #[cfg(feature = "system-valuetype")]
166    pub use crate::system::valuetype::IValueTypeMethods;
167    pub use crate::system::{object::IObject, valuetype::IValueType};
168}