Skip to main content

engage/generated/unity_engine/timeline/
ipropertycollector.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-timeline-ipropertycollector-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8
9    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/timeline/ipropertycollector/IPropertyCollector.md"))]
10    #[::unity::class(namespace = "UnityEngine.Timeline", name = "IPropertyCollector")]
11    pub struct IPropertyCollector {}
12}
13
14#[cfg(feature = "unity_engine-timeline-ipropertycollector-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-timeline-ipropertycollector")]
18pub trait IIPropertyCollectorMethods: IIPropertyCollector {
19    #[doc = "`PushActiveGameObject(crate::unity_engine::gameobject::GameObject)` overload"]
20    fn push_active_game_object(self, game_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
21        unsafe {
22            let __receiver = <IPropertyCollector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
23            {
24                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
25                let __vi = *__vt.get(0usize).unwrap_or_else(|| {
26                    panic!(
27                        "unity: virtual slot {}
28 out of range (vtable len {}
29) on the runtime class behind {}
30 (method `{}
31`)",
32                        0usize,
33                        __vt.len(),
34                        <IPropertyCollector as ::unity::ClassIdentity>::NAME,
35                        "PushActiveGameObject",
36                    )
37                });
38                let __inner: extern "C" fn(IPropertyCollector, crate::unity_engine::gameobject::GameObject, ::unity::OptionalMethod) -> () =
39                    ::core::mem::transmute(__vi.method_ptr);
40                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
41                __inner(__receiver, ::core::convert::Into::into(game_object), __mi)
42            }
43        }
44    }
45    #[doc = "`PopActiveGameObject()` overload"]
46    fn pop_active_game_object(self) -> () {
47        unsafe {
48            let __receiver = <IPropertyCollector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49            {
50                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
51                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
52                    panic!(
53                        "unity: virtual slot {}
54 out of range (vtable len {}
55) on the runtime class behind {}
56 (method `{}
57`)",
58                        1usize,
59                        __vt.len(),
60                        <IPropertyCollector as ::unity::ClassIdentity>::NAME,
61                        "PopActiveGameObject",
62                    )
63                });
64                let __inner: extern "C" fn(IPropertyCollector, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
65                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
66                __inner(__receiver, __mi)
67            }
68        }
69    }
70    #[doc = "`AddFromClip(crate::unity_engine::animationclip::AnimationClip)` overload"]
71    fn add_from_clip(self, clip: impl ::core::convert::Into<crate::unity_engine::animationclip::AnimationClip>) -> () {
72        unsafe {
73            let __receiver = <IPropertyCollector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74            {
75                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
76                let __vi = *__vt.get(2usize).unwrap_or_else(|| {
77                    panic!(
78                        "unity: virtual slot {}
79 out of range (vtable len {}
80) on the runtime class behind {}
81 (method `{}
82`)",
83                        2usize,
84                        __vt.len(),
85                        <IPropertyCollector as ::unity::ClassIdentity>::NAME,
86                        "AddFromClip",
87                    )
88                });
89                let __inner: extern "C" fn(IPropertyCollector, crate::unity_engine::animationclip::AnimationClip, ::unity::OptionalMethod) -> () =
90                    ::core::mem::transmute(__vi.method_ptr);
91                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
92                __inner(__receiver, ::core::convert::Into::into(clip), __mi)
93            }
94        }
95    }
96    fn add_from_name<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
97        self,
98        name: impl ::core::convert::Into<::unity::Il2CppString>,
99    ) -> () {
100        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
101            ::unity::lookup::method_info_on_class(<IPropertyCollector as ::unity::ClassIdentity>::class(), "AddFromName", 1)
102        });
103        #[allow(clippy::type_complexity)]
104        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
105            ::std::sync::OnceLock::new();
106        let _ = false;
107        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
108            ::core::result::Result::Ok(mi) => *mi,
109            ::core::result::Result::Err(e) => {
110                panic!(
111                    "method lookup failed: {}
112::{}
113: {}
114",
115                    <IPropertyCollector as ::unity::ClassIdentity>::NAME,
116                    "AddFromName",
117                    e
118                )
119            },
120        };
121        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
122        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
123        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
124            let mut __guard = __cache.lock().unwrap();
125            *__guard
126                .entry(__key)
127                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
128        };
129        unsafe {
130            let __receiver = <IPropertyCollector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131            let __f: extern "C" fn(IPropertyCollector, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
132                ::core::mem::transmute(__inflated.method_ptr);
133            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
134            __f(__receiver, ::core::convert::Into::into(name), ::core::option::Option::Some(__mi_opaque))
135        }
136    }
137    #[doc = "`AddObjectProperties(crate::unity_engine::object_2::Object_2, crate::unity_engine::animationclip::AnimationClip)` overload"]
138    fn add_object_properties(
139        self,
140        obj: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>,
141        clip: impl ::core::convert::Into<crate::unity_engine::animationclip::AnimationClip>,
142    ) -> () {
143        unsafe {
144            let __receiver = <IPropertyCollector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
145            {
146                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
147                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
148                    panic!(
149                        "unity: virtual slot {}
150 out of range (vtable len {}
151) on the runtime class behind {}
152 (method `{}
153`)",
154                        4usize,
155                        __vt.len(),
156                        <IPropertyCollector as ::unity::ClassIdentity>::NAME,
157                        "AddObjectProperties",
158                    )
159                });
160                let __inner: extern "C" fn(
161                    IPropertyCollector,
162                    crate::unity_engine::object_2::Object_2,
163                    crate::unity_engine::animationclip::AnimationClip,
164                    ::unity::OptionalMethod,
165                ) -> () = ::core::mem::transmute(__vi.method_ptr);
166                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
167                __inner(__receiver, ::core::convert::Into::into(obj), ::core::convert::Into::into(clip), __mi)
168            }
169        }
170    }
171}
172
173#[cfg(feature = "unity_engine-timeline-ipropertycollector")]
174impl<__T: IIPropertyCollector> IIPropertyCollectorMethods for __T {}
175
176#[cfg(feature = "unity_engine-timeline-ipropertycollector")]
177impl IPropertyCollector {
178    pub fn push_active_game_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
180    }
181
182    pub fn pop_active_game_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
184    }
185
186    pub fn add_from_clip_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
188    }
189
190    pub fn add_object_properties_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
192    }
193}
194
195#[cfg(feature = "unity_engine-timeline-ipropertycollector")]
196impl IPropertyCollector {
197    #[doc = "Direct (non-virtual) call to `IPropertyCollector`'s own `PushActiveGameObject`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
198    pub unsafe fn push_active_game_object(
199        this: impl ::core::convert::Into<::unity::IlInstance>,
200        game_object: crate::unity_engine::gameobject::GameObject,
201    ) -> () {
202        let __mi = Self::push_active_game_object_method_info();
203        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::gameobject::GameObject, ::unity::OptionalMethod) -> () =
204            ::core::mem::transmute(__mi.method_ptr);
205        __inner(this.into(), game_object, ::core::option::Option::None)
206    }
207
208    #[doc = "Direct (non-virtual) call to `IPropertyCollector`'s own `PopActiveGameObject`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
209    pub unsafe fn pop_active_game_object(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
210        let __mi = Self::pop_active_game_object_method_info();
211        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
212        __inner(this.into(), ::core::option::Option::None)
213    }
214
215    #[doc = "Direct (non-virtual) call to `IPropertyCollector`'s own `AddFromClip`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
216    pub unsafe fn add_from_clip(
217        this: impl ::core::convert::Into<::unity::IlInstance>,
218        clip: crate::unity_engine::animationclip::AnimationClip,
219    ) -> () {
220        let __mi = Self::add_from_clip_method_info();
221        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::animationclip::AnimationClip, ::unity::OptionalMethod) -> () =
222            ::core::mem::transmute(__mi.method_ptr);
223        __inner(this.into(), clip, ::core::option::Option::None)
224    }
225
226    #[doc = "Direct (non-virtual) call to `IPropertyCollector`'s own `AddObjectProperties`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
227    pub unsafe fn add_object_properties(
228        this: impl ::core::convert::Into<::unity::IlInstance>,
229        obj: crate::unity_engine::object_2::Object_2,
230        clip: crate::unity_engine::animationclip::AnimationClip,
231    ) -> () {
232        let __mi = Self::add_object_properties_method_info();
233        let __inner: extern "C" fn(
234            ::unity::IlInstance,
235            crate::unity_engine::object_2::Object_2,
236            crate::unity_engine::animationclip::AnimationClip,
237            ::unity::OptionalMethod,
238        ) -> () = ::core::mem::transmute(__mi.method_ptr);
239        __inner(this.into(), obj, clip, ::core::option::Option::None)
240    }
241}
242
243#[cfg(feature = "unity_engine-timeline-ipropertycollector")]
244#[doc(hidden)]
245pub mod prelude {
246    pub use super::{IIPropertyCollector, IIPropertyCollectorMethods, IPropertyCollector};
247}