Skip to main content

engage/generated/unity_engine/playables/
scriptplayable_1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-playables-scriptplayable_1-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/scriptplayable_1/ScriptPlayable_1.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct ScriptPlayable_1<T0> {
17        pub _phantom: ::core::marker::PhantomData<(T0,)>,
18    }
19    impl<T0: ::unity::ClassIdentity> ::unity::ClassIdentity for ScriptPlayable_1<T0> {
20        const NAME: &'static str = "ScriptPlayable`1";
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(|| {
26                ::unity::Class::lookup(Self::NAMESPACE, Self::NAME)
27                    .make_generic(&[<T0 as ::unity::ClassIdentity>::class()])
28                    .expect("generic instantiation")
29            })
30        }
31    }
32    impl<T0: ::unity::ClassIdentity> ::unity::IlType for ScriptPlayable_1<T0> {
33        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35        }
36    }
37}
38
39#[cfg(feature = "unity_engine-playables-scriptplayable_1-types")]
40pub use __types::*;
41
42#[cfg(feature = "unity_engine-playables-scriptplayable_1")]
43#[::unity::methods(value)]
44impl<T0: ::unity::ClassIdentity> ScriptPlayable_1<T0> {
45    #[doc = "`get_Null()` overload"]
46    #[method(name = "get_Null", args = 0)]
47    pub fn get_null() -> crate::unity_engine::playables::scriptplayable_1::ScriptPlayable_1<T0>;
48
49    #[doc = "`Create(crate::unity_engine::playables::playablegraph::PlayableGraph, i32)` overload"]
50    #[method(name = "Create", args = 2)]
51    pub fn create(
52        graph: crate::unity_engine::playables::playablegraph::PlayableGraph,
53        input_count: i32,
54    ) -> crate::unity_engine::playables::scriptplayable_1::ScriptPlayable_1<T0>;
55
56    #[doc = "`Create(crate::unity_engine::playables::playablegraph::PlayableGraph, T0, i32)` overload"]
57    #[method(name = "Create", args = 3)]
58    pub fn create_2(
59        graph: crate::unity_engine::playables::playablegraph::PlayableGraph,
60        template: T0,
61        input_count: i32,
62    ) -> crate::unity_engine::playables::scriptplayable_1::ScriptPlayable_1<T0>;
63
64    #[doc = "`CreateHandle(crate::unity_engine::playables::playablegraph::PlayableGraph, T0, i32)` overload"]
65    #[method(name = "CreateHandle", args = 3)]
66    pub fn create_handle(
67        graph: crate::unity_engine::playables::playablegraph::PlayableGraph,
68        template: T0,
69        input_count: i32,
70    ) -> crate::unity_engine::playables::playablehandle::PlayableHandle;
71
72    #[doc = "`CreateScriptInstance()` overload"]
73    #[method(name = "CreateScriptInstance", args = 0)]
74    pub fn create_script_instance() -> crate::system::object::Object;
75
76    #[doc = "`CloneScriptInstance(crate::unity_engine::playables::iplayablebehaviour_interface::IPlayableBehaviour_Interface)` overload"]
77    #[method(name = "CloneScriptInstance", args = 1)]
78    pub fn clone_script_instance(
79        source: crate::unity_engine::playables::iplayablebehaviour_interface::IPlayableBehaviour_Interface,
80    ) -> crate::system::object::Object;
81
82    #[doc = "`CloneScriptInstanceFromEngineObject(crate::unity_engine::object_2::Object_2)` overload"]
83    #[method(name = "CloneScriptInstanceFromEngineObject", args = 1)]
84    pub fn clone_script_instance_from_engine_object(source: crate::unity_engine::object_2::Object_2) -> crate::system::object::Object;
85
86    #[doc = "`.ctor(crate::unity_engine::playables::playablehandle::PlayableHandle)` overload"]
87    #[method(name = ".ctor", args = 1)]
88    pub fn ctor(self, handle: crate::unity_engine::playables::playablehandle::PlayableHandle) -> ();
89
90    #[doc = "`GetHandle()` overload"]
91    #[method(name = "GetHandle", args = 0)]
92    pub fn get_handle(self) -> crate::unity_engine::playables::playablehandle::PlayableHandle;
93
94    #[doc = "`GetBehaviour()` overload"]
95    #[method(name = "GetBehaviour", args = 0)]
96    pub fn get_behaviour(self) -> T0;
97
98    #[doc = "`op_Implicit(crate::unity_engine::playables::scriptplayable_1::ScriptPlayable_1<T0>)` overload"]
99    #[method(name = "op_Implicit", args = 1)]
100    pub fn op_implicit(
101        playable: crate::unity_engine::playables::scriptplayable_1::ScriptPlayable_1<T0>,
102    ) -> crate::unity_engine::playables::playable::Playable;
103
104    #[doc = "`op_Explicit(crate::unity_engine::playables::playable::Playable)` overload"]
105    #[method(name = "op_Explicit", args = 1)]
106    pub fn op_explicit(
107        playable: crate::unity_engine::playables::playable::Playable,
108    ) -> crate::unity_engine::playables::scriptplayable_1::ScriptPlayable_1<T0>;
109
110    #[doc = "`Equals(crate::unity_engine::playables::scriptplayable_1::ScriptPlayable_1<T0>)` overload"]
111    #[method(name = "Equals", args = 1)]
112    pub fn equals(self, other: crate::unity_engine::playables::scriptplayable_1::ScriptPlayable_1<T0>) -> bool;
113
114    #[doc = "`.cctor()` overload"]
115    #[method(name = ".cctor", args = 0)]
116    pub fn cctor() -> ();
117}
118
119#[cfg(feature = "unity_engine-playables-scriptplayable_1")]
120#[doc(hidden)]
121pub mod prelude {
122    pub use super::ScriptPlayable_1;
123    #[cfg(feature = "system-object")]
124    pub use crate::system::object::IObjectMethods;
125    #[cfg(feature = "system-valuetype")]
126    pub use crate::system::valuetype::IValueTypeMethods;
127    pub use crate::system::{object::IObject, valuetype::IValueType};
128}