Skip to main content

engage/generated/unity_engine/timeline/
animationoutputweightprocessor.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-timeline-animationoutputweightprocessor-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/timeline/animationoutputweightprocessor/AnimationOutputWeightProcessor.md"))]
14    #[::unity::class(namespace = "UnityEngine.Timeline", name = "AnimationOutputWeightProcessor")]
15    #[parent(crate::system::object::Object)]
16    pub struct AnimationOutputWeightProcessor {
17        #[offset(16)]
18        #[rename(name = "m_Output")]
19        pub m_output: crate::unity_engine::animations::animationplayableoutput::AnimationPlayableOutput,
20        #[offset(32)]
21        #[rename(name = "m_Mixers")]
22        pub m_mixers: crate::system::collections::generic::list_1::List_1<
23            crate::unity_engine::timeline::animationoutputweightprocessor::AnimationOutputWeightProcessor_WeightInfo,
24        >,
25    }
26
27    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/timeline/animationoutputweightprocessor/AnimationOutputWeightProcessor_WeightInfo.md"))]
28    #[repr(C)]
29    #[derive(::core::clone::Clone, ::core::marker::Copy)]
30    pub struct AnimationOutputWeightProcessor_WeightInfo {
31        pub mixer: crate::unity_engine::playables::playable::Playable,
32        pub parent_mixer: crate::unity_engine::playables::playable::Playable,
33        pub port: i32,
34    }
35    impl ::unity::ClassIdentity for AnimationOutputWeightProcessor_WeightInfo {
36        const NAME: &'static str = "AnimationOutputWeightProcessor.WeightInfo";
37        const NAMESPACE: &'static str = "UnityEngine.Timeline";
38
39        fn class() -> ::unity::Class {
40            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
41            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
42        }
43    }
44    impl ::unity::IlType for AnimationOutputWeightProcessor_WeightInfo {
45        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
46            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
47        }
48    }
49}
50
51#[cfg(feature = "unity_engine-timeline-animationoutputweightprocessor-types")]
52pub use __types::*;
53
54#[cfg(feature = "unity_engine-timeline-animationoutputweightprocessor")]
55pub trait IAnimationOutputWeightProcessorMethods: IAnimationOutputWeightProcessor {
56    #[doc = "`.ctor(crate::unity_engine::animations::animationplayableoutput::AnimationPlayableOutput)` overload"]
57    fn ctor(self, output: impl ::core::convert::Into<crate::unity_engine::animations::animationplayableoutput::AnimationPlayableOutput>) -> () {
58        unsafe {
59            let __receiver =
60                <AnimationOutputWeightProcessor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
61            ::unity::il2cpp_call!((::unity::module_base()+0x35cf5b0usize)as*mut u8,();
62(AnimationOutputWeightProcessor)__receiver,(crate::unity_engine::animations::animationplayableoutput::AnimationPlayableOutput)::core::convert::Into::into(output))
63        }
64    }
65    #[doc = "`FindMixers()` overload"]
66    fn find_mixers(self) -> () {
67        unsafe {
68            let __receiver =
69                <AnimationOutputWeightProcessor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70            ::unity::il2cpp_call!((::unity::module_base()+0x35cf690usize)as*mut u8,();
71(AnimationOutputWeightProcessor)__receiver)
72        }
73    }
74    #[doc = "`FindMixers(crate::unity_engine::playables::playable::Playable, i32, crate::unity_engine::playables::playable::Playable)` overload"]
75    fn find_mixers_2(
76        self,
77        parent: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>,
78        port: impl ::core::convert::Into<i32>,
79        node: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>,
80    ) -> () {
81        unsafe {
82            let __receiver =
83                <AnimationOutputWeightProcessor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84            ::unity::il2cpp_call!((::unity::module_base()+0x35cf780usize)as*mut u8,();
85(AnimationOutputWeightProcessor)__receiver,(crate::unity_engine::playables::playable::Playable)::core::convert::Into::into(parent),(i32)::core::convert::Into::into(port),(crate::unity_engine::playables::playable::Playable)::core::convert::Into::into(node))
86        }
87    }
88    #[doc = "`Evaluate()` overload"]
89    fn evaluate(self) -> () {
90        unsafe {
91            let __receiver =
92                <AnimationOutputWeightProcessor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93            {
94                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
95                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
96                    panic!(
97                        "unity: virtual slot {}
98 out of range (vtable len {}
99) on the runtime class behind {}
100 (method `{}
101`)",
102                        4usize,
103                        __vt.len(),
104                        <AnimationOutputWeightProcessor as ::unity::ClassIdentity>::NAME,
105                        "Evaluate",
106                    )
107                });
108                let __inner: extern "C" fn(AnimationOutputWeightProcessor, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
109                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
110                __inner(__receiver, __mi)
111            }
112        }
113    }
114}
115
116#[cfg(feature = "unity_engine-timeline-animationoutputweightprocessor")]
117impl<__T: IAnimationOutputWeightProcessor> IAnimationOutputWeightProcessorMethods for __T {}
118
119#[cfg(feature = "unity_engine-timeline-animationoutputweightprocessor")]
120impl AnimationOutputWeightProcessor {
121    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
123    }
124
125    pub fn find_mixers_method_info() -> &'static ::unity::il2cpp::MethodInfo {
126        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
127    }
128
129    pub fn find_mixers_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
131    }
132
133    pub fn evaluate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
134        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
135    }
136}
137
138#[cfg(feature = "unity_engine-timeline-animationoutputweightprocessor")]
139impl AnimationOutputWeightProcessor {
140    #[doc = "Direct (non-virtual) call to `AnimationOutputWeightProcessor`'s own `Evaluate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
141    pub unsafe fn evaluate(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
142        let __mi = Self::evaluate_method_info();
143        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
144        __inner(this.into(), ::core::option::Option::None)
145    }
146}
147
148#[cfg(feature = "unity_engine-timeline-animationoutputweightprocessor")]
149impl AnimationOutputWeightProcessor {
150    #[doc = "`.ctor(crate::unity_engine::animations::animationplayableoutput::AnimationPlayableOutput)` — overload selector"]
151    pub fn new(output: crate::unity_engine::animations::animationplayableoutput::AnimationPlayableOutput) -> Self {
152        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
153            panic!(
154                "{}
155::{}
156 failed to instantiate",
157                ::core::stringify!(AnimationOutputWeightProcessor),
158                ::core::stringify!(new),
159            )
160        });
161        <Self as IAnimationOutputWeightProcessorMethods>::ctor(this, output);
162        this
163    }
164}
165
166#[cfg(feature = "unity_engine-timeline-animationoutputweightprocessor")]
167#[doc(hidden)]
168pub mod prelude {
169    pub use super::{
170        AnimationOutputWeightProcessor, AnimationOutputWeightProcessor_WeightInfo, IAnimationOutputWeightProcessor,
171        IAnimationOutputWeightProcessorMethods,
172    };
173    #[cfg(feature = "system-object")]
174    pub use crate::system::object::IObjectMethods;
175    #[cfg(feature = "system-valuetype")]
176    pub use crate::system::valuetype::IValueTypeMethods;
177    pub use crate::system::{object::IObject, valuetype::IValueType};
178}