Skip to main content

engage/generated/unity_engine/playables/
playableoutputextensions.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-playables-playableoutputextensions-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/playables/playableoutputextensions/PlayableOutputExtensions.md"))]
11    #[::unity::class(namespace = "UnityEngine.Playables", name = "PlayableOutputExtensions")]
12    #[parent(crate::system::object::Object)]
13    pub struct PlayableOutputExtensions {}
14}
15
16#[cfg(feature = "unity_engine-playables-playableoutputextensions-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-playables-playableoutputextensions")]
20impl PlayableOutputExtensions {
21    pub fn set_reference_object<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
22        output: impl ::core::convert::Into<M0>,
23        value: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>,
24    ) -> () {
25        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
26            ::unity::lookup::method_info_on_class(<PlayableOutputExtensions as ::unity::ClassIdentity>::class(), "SetReferenceObject", 2)
27        });
28        #[allow(clippy::type_complexity)]
29        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
30            ::std::sync::OnceLock::new();
31        let _ = true;
32        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
33            ::core::result::Result::Ok(mi) => *mi,
34            ::core::result::Result::Err(e) => {
35                panic!(
36                    "method lookup failed: {}
37::{}
38: {}
39",
40                    <PlayableOutputExtensions as ::unity::ClassIdentity>::NAME,
41                    "SetReferenceObject",
42                    e
43                )
44            },
45        };
46        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
47        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
48        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
49            let mut __guard = __cache.lock().unwrap();
50            *__guard
51                .entry(__key)
52                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
53        };
54        unsafe {
55            let __f: extern "C" fn(M0, crate::unity_engine::object_2::Object_2, ::unity::OptionalMethod) -> () =
56                ::core::mem::transmute(__inflated.method_ptr);
57            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
58            __f(
59                ::core::convert::Into::into(output),
60                ::core::convert::Into::into(value),
61                ::core::option::Option::Some(__mi_opaque),
62            )
63        }
64    }
65
66    pub fn set_user_data<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
67        output: impl ::core::convert::Into<M0>,
68        value: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>,
69    ) -> () {
70        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
71            ::unity::lookup::method_info_on_class(<PlayableOutputExtensions as ::unity::ClassIdentity>::class(), "SetUserData", 2)
72        });
73        #[allow(clippy::type_complexity)]
74        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
75            ::std::sync::OnceLock::new();
76        let _ = true;
77        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
78            ::core::result::Result::Ok(mi) => *mi,
79            ::core::result::Result::Err(e) => {
80                panic!(
81                    "method lookup failed: {}
82::{}
83: {}
84",
85                    <PlayableOutputExtensions as ::unity::ClassIdentity>::NAME,
86                    "SetUserData",
87                    e
88                )
89            },
90        };
91        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
92        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
93        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
94            let mut __guard = __cache.lock().unwrap();
95            *__guard
96                .entry(__key)
97                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
98        };
99        unsafe {
100            let __f: extern "C" fn(M0, crate::unity_engine::object_2::Object_2, ::unity::OptionalMethod) -> () =
101                ::core::mem::transmute(__inflated.method_ptr);
102            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
103            __f(
104                ::core::convert::Into::into(output),
105                ::core::convert::Into::into(value),
106                ::core::option::Option::Some(__mi_opaque),
107            )
108        }
109    }
110
111    pub fn get_source_playable<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
112        output: impl ::core::convert::Into<M0>,
113    ) -> crate::unity_engine::playables::playable::Playable {
114        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
115            ::unity::lookup::method_info_on_class(<PlayableOutputExtensions as ::unity::ClassIdentity>::class(), "GetSourcePlayable", 1)
116        });
117        #[allow(clippy::type_complexity)]
118        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
119            ::std::sync::OnceLock::new();
120        let _ = true;
121        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
122            ::core::result::Result::Ok(mi) => *mi,
123            ::core::result::Result::Err(e) => {
124                panic!(
125                    "method lookup failed: {}
126::{}
127: {}
128",
129                    <PlayableOutputExtensions as ::unity::ClassIdentity>::NAME,
130                    "GetSourcePlayable",
131                    e
132                )
133            },
134        };
135        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
136        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
137        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
138            let mut __guard = __cache.lock().unwrap();
139            *__guard
140                .entry(__key)
141                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
142        };
143        unsafe {
144            let __f: extern "C" fn(M0, ::unity::OptionalMethod) -> crate::unity_engine::playables::playable::Playable =
145                ::core::mem::transmute(__inflated.method_ptr);
146            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
147            __f(::core::convert::Into::into(output), ::core::option::Option::Some(__mi_opaque))
148        }
149    }
150
151    pub fn set_source_playable<
152        M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity,
153        M1: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity,
154    >(
155        output: impl ::core::convert::Into<M0>,
156        value: impl ::core::convert::Into<M1>,
157        port: impl ::core::convert::Into<i32>,
158    ) -> () {
159        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
160            ::unity::lookup::method_info_on_class(<PlayableOutputExtensions as ::unity::ClassIdentity>::class(), "SetSourcePlayable", 3)
161        });
162        #[allow(clippy::type_complexity)]
163        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
164            ::std::sync::OnceLock::new();
165        let _ = true;
166        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
167            ::core::result::Result::Ok(mi) => *mi,
168            ::core::result::Result::Err(e) => {
169                panic!(
170                    "method lookup failed: {}
171::{}
172: {}
173",
174                    <PlayableOutputExtensions as ::unity::ClassIdentity>::NAME,
175                    "SetSourcePlayable",
176                    e
177                )
178            },
179        };
180        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
181        let __key: usize = (<M0 as ::unity::IlType>::il_type() as *const _ as usize) ^ (<M1 as ::unity::IlType>::il_type() as *const _ as usize);
182        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
183            let mut __guard = __cache.lock().unwrap();
184            *__guard.entry(__key).or_insert_with(|| {
185                ::unity::il2cpp::generic::create_generic_method_info(__open, &[
186                    <M0 as ::unity::IlType>::il_type(),
187                    <M1 as ::unity::IlType>::il_type(),
188                ])
189            })
190        };
191        unsafe {
192            let __f: extern "C" fn(M0, M1, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__inflated.method_ptr);
193            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
194            __f(
195                ::core::convert::Into::into(output),
196                ::core::convert::Into::into(value),
197                ::core::convert::Into::into(port),
198                ::core::option::Option::Some(__mi_opaque),
199            )
200        }
201    }
202
203    pub fn get_source_output_port<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
204        output: impl ::core::convert::Into<M0>,
205    ) -> i32 {
206        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
207            ::unity::lookup::method_info_on_class(<PlayableOutputExtensions as ::unity::ClassIdentity>::class(), "GetSourceOutputPort", 1)
208        });
209        #[allow(clippy::type_complexity)]
210        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
211            ::std::sync::OnceLock::new();
212        let _ = true;
213        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
214            ::core::result::Result::Ok(mi) => *mi,
215            ::core::result::Result::Err(e) => {
216                panic!(
217                    "method lookup failed: {}
218::{}
219: {}
220",
221                    <PlayableOutputExtensions as ::unity::ClassIdentity>::NAME,
222                    "GetSourceOutputPort",
223                    e
224                )
225            },
226        };
227        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
228        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
229        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
230            let mut __guard = __cache.lock().unwrap();
231            *__guard
232                .entry(__key)
233                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
234        };
235        unsafe {
236            let __f: extern "C" fn(M0, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__inflated.method_ptr);
237            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
238            __f(::core::convert::Into::into(output), ::core::option::Option::Some(__mi_opaque))
239        }
240    }
241
242    pub fn set_weight<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
243        output: impl ::core::convert::Into<M0>,
244        value: impl ::core::convert::Into<f32>,
245    ) -> () {
246        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
247            ::unity::lookup::method_info_on_class(<PlayableOutputExtensions as ::unity::ClassIdentity>::class(), "SetWeight", 2)
248        });
249        #[allow(clippy::type_complexity)]
250        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
251            ::std::sync::OnceLock::new();
252        let _ = true;
253        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
254            ::core::result::Result::Ok(mi) => *mi,
255            ::core::result::Result::Err(e) => {
256                panic!(
257                    "method lookup failed: {}
258::{}
259: {}
260",
261                    <PlayableOutputExtensions as ::unity::ClassIdentity>::NAME,
262                    "SetWeight",
263                    e
264                )
265            },
266        };
267        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
268        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
269        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
270            let mut __guard = __cache.lock().unwrap();
271            *__guard
272                .entry(__key)
273                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
274        };
275        unsafe {
276            let __f: extern "C" fn(M0, f32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__inflated.method_ptr);
277            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
278            __f(
279                ::core::convert::Into::into(output),
280                ::core::convert::Into::into(value),
281                ::core::option::Option::Some(__mi_opaque),
282            )
283        }
284    }
285
286    pub fn push_notification<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
287        output: impl ::core::convert::Into<M0>,
288        origin: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>,
289        notification: impl ::core::convert::Into<crate::unity_engine::playables::inotification::INotification>,
290        context: impl ::core::convert::Into<::unity::IlInstance>,
291    ) -> () {
292        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
293            ::unity::lookup::method_info_on_class(<PlayableOutputExtensions as ::unity::ClassIdentity>::class(), "PushNotification", 4)
294        });
295        #[allow(clippy::type_complexity)]
296        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
297            ::std::sync::OnceLock::new();
298        let _ = true;
299        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
300            ::core::result::Result::Ok(mi) => *mi,
301            ::core::result::Result::Err(e) => {
302                panic!(
303                    "method lookup failed: {}
304::{}
305: {}
306",
307                    <PlayableOutputExtensions as ::unity::ClassIdentity>::NAME,
308                    "PushNotification",
309                    e
310                )
311            },
312        };
313        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
314        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
315        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
316            let mut __guard = __cache.lock().unwrap();
317            *__guard
318                .entry(__key)
319                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
320        };
321        unsafe {
322            let __f: extern "C" fn(
323                M0,
324                crate::unity_engine::playables::playable::Playable,
325                crate::unity_engine::playables::inotification::INotification,
326                ::unity::IlInstance,
327                ::unity::OptionalMethod,
328            ) -> () = ::core::mem::transmute(__inflated.method_ptr);
329            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
330            __f(
331                ::core::convert::Into::into(output),
332                ::core::convert::Into::into(origin),
333                ::core::convert::Into::into(notification),
334                ::core::convert::Into::into(context),
335                ::core::option::Option::Some(__mi_opaque),
336            )
337        }
338    }
339
340    pub fn add_notification_receiver<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
341        output: impl ::core::convert::Into<M0>,
342        receiver: impl ::core::convert::Into<crate::unity_engine::playables::inotificationreceiver::INotificationReceiver>,
343    ) -> () {
344        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
345            ::unity::lookup::method_info_on_class(
346                <PlayableOutputExtensions as ::unity::ClassIdentity>::class(),
347                "AddNotificationReceiver",
348                2,
349            )
350        });
351        #[allow(clippy::type_complexity)]
352        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
353            ::std::sync::OnceLock::new();
354        let _ = true;
355        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
356            ::core::result::Result::Ok(mi) => *mi,
357            ::core::result::Result::Err(e) => {
358                panic!(
359                    "method lookup failed: {}
360::{}
361: {}
362",
363                    <PlayableOutputExtensions as ::unity::ClassIdentity>::NAME,
364                    "AddNotificationReceiver",
365                    e
366                )
367            },
368        };
369        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
370        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
371        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
372            let mut __guard = __cache.lock().unwrap();
373            *__guard
374                .entry(__key)
375                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
376        };
377        unsafe {
378            let __f: extern "C" fn(M0, crate::unity_engine::playables::inotificationreceiver::INotificationReceiver, ::unity::OptionalMethod) -> () =
379                ::core::mem::transmute(__inflated.method_ptr);
380            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
381            __f(
382                ::core::convert::Into::into(output),
383                ::core::convert::Into::into(receiver),
384                ::core::option::Option::Some(__mi_opaque),
385            )
386        }
387    }
388}
389
390#[cfg(feature = "unity_engine-playables-playableoutputextensions")]
391#[doc(hidden)]
392pub mod prelude {
393    pub use super::{IPlayableOutputExtensions, PlayableOutputExtensions};
394    pub use crate::system::object::IObject;
395    #[cfg(feature = "system-object")]
396    pub use crate::system::object::IObjectMethods;
397}