1#[cfg(feature = "unity_engine-playables-iplayablebehaviour_interface-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/playables/iplayablebehaviour_interface/IPlayableBehaviour_Interface.md"))]
10 #[::unity::class(namespace = "UnityEngine.Playables", name = "IPlayableBehaviour")]
11 pub struct IPlayableBehaviour_Interface {}
12}
13
14#[cfg(feature = "unity_engine-playables-iplayablebehaviour_interface-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-playables-iplayablebehaviour_interface")]
18pub trait IIPlayableBehaviour_InterfaceMethods: IIPlayableBehaviour_Interface {
19 #[doc = "`OnGraphStart(crate::unity_engine::playables::playable::Playable)` overload"]
20 fn on_graph_start(self, playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>) -> () {
21 unsafe {
22 let __receiver =
23 <IPlayableBehaviour_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
24 {
25 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
26 let __vi = *__vt.get(0usize).unwrap_or_else(|| {
27 panic!(
28 "unity: virtual slot {}
29 out of range (vtable len {}
30) on the runtime class behind {}
31 (method `{}
32`)",
33 0usize,
34 __vt.len(),
35 <IPlayableBehaviour_Interface as ::unity::ClassIdentity>::NAME,
36 "OnGraphStart",
37 )
38 });
39 let __inner: extern "C" fn(
40 IPlayableBehaviour_Interface,
41 crate::unity_engine::playables::playable::Playable,
42 ::unity::OptionalMethod,
43 ) -> () = ::core::mem::transmute(__vi.method_ptr);
44 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
45 __inner(__receiver, ::core::convert::Into::into(playable), __mi)
46 }
47 }
48 }
49 #[doc = "`OnGraphStop(crate::unity_engine::playables::playable::Playable)` overload"]
50 fn on_graph_stop(self, playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>) -> () {
51 unsafe {
52 let __receiver =
53 <IPlayableBehaviour_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54 {
55 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
56 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
57 panic!(
58 "unity: virtual slot {}
59 out of range (vtable len {}
60) on the runtime class behind {}
61 (method `{}
62`)",
63 1usize,
64 __vt.len(),
65 <IPlayableBehaviour_Interface as ::unity::ClassIdentity>::NAME,
66 "OnGraphStop",
67 )
68 });
69 let __inner: extern "C" fn(
70 IPlayableBehaviour_Interface,
71 crate::unity_engine::playables::playable::Playable,
72 ::unity::OptionalMethod,
73 ) -> () = ::core::mem::transmute(__vi.method_ptr);
74 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
75 __inner(__receiver, ::core::convert::Into::into(playable), __mi)
76 }
77 }
78 }
79 #[doc = "`OnPlayableCreate(crate::unity_engine::playables::playable::Playable)` overload"]
80 fn on_playable_create(self, playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>) -> () {
81 unsafe {
82 let __receiver =
83 <IPlayableBehaviour_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84 {
85 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
86 let __vi = *__vt.get(2usize).unwrap_or_else(|| {
87 panic!(
88 "unity: virtual slot {}
89 out of range (vtable len {}
90) on the runtime class behind {}
91 (method `{}
92`)",
93 2usize,
94 __vt.len(),
95 <IPlayableBehaviour_Interface as ::unity::ClassIdentity>::NAME,
96 "OnPlayableCreate",
97 )
98 });
99 let __inner: extern "C" fn(
100 IPlayableBehaviour_Interface,
101 crate::unity_engine::playables::playable::Playable,
102 ::unity::OptionalMethod,
103 ) -> () = ::core::mem::transmute(__vi.method_ptr);
104 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
105 __inner(__receiver, ::core::convert::Into::into(playable), __mi)
106 }
107 }
108 }
109 #[doc = "`OnPlayableDestroy(crate::unity_engine::playables::playable::Playable)` overload"]
110 fn on_playable_destroy(self, playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>) -> () {
111 unsafe {
112 let __receiver =
113 <IPlayableBehaviour_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114 {
115 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
116 let __vi = *__vt.get(3usize).unwrap_or_else(|| {
117 panic!(
118 "unity: virtual slot {}
119 out of range (vtable len {}
120) on the runtime class behind {}
121 (method `{}
122`)",
123 3usize,
124 __vt.len(),
125 <IPlayableBehaviour_Interface as ::unity::ClassIdentity>::NAME,
126 "OnPlayableDestroy",
127 )
128 });
129 let __inner: extern "C" fn(
130 IPlayableBehaviour_Interface,
131 crate::unity_engine::playables::playable::Playable,
132 ::unity::OptionalMethod,
133 ) -> () = ::core::mem::transmute(__vi.method_ptr);
134 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
135 __inner(__receiver, ::core::convert::Into::into(playable), __mi)
136 }
137 }
138 }
139 #[doc = "`OnBehaviourPlay(crate::unity_engine::playables::playable::Playable, crate::unity_engine::playables::framedata::FrameData)` overload"]
140 fn on_behaviour_play(
141 self,
142 playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>,
143 info: impl ::core::convert::Into<crate::unity_engine::playables::framedata::FrameData>,
144 ) -> () {
145 unsafe {
146 let __receiver =
147 <IPlayableBehaviour_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148 {
149 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
150 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
151 panic!(
152 "unity: virtual slot {}
153 out of range (vtable len {}
154) on the runtime class behind {}
155 (method `{}
156`)",
157 4usize,
158 __vt.len(),
159 <IPlayableBehaviour_Interface as ::unity::ClassIdentity>::NAME,
160 "OnBehaviourPlay",
161 )
162 });
163 let __inner: extern "C" fn(
164 IPlayableBehaviour_Interface,
165 crate::unity_engine::playables::playable::Playable,
166 crate::unity_engine::playables::framedata::FrameData,
167 ::unity::OptionalMethod,
168 ) -> () = ::core::mem::transmute(__vi.method_ptr);
169 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
170 __inner(__receiver, ::core::convert::Into::into(playable), ::core::convert::Into::into(info), __mi)
171 }
172 }
173 }
174 #[doc = "`OnBehaviourPause(crate::unity_engine::playables::playable::Playable, crate::unity_engine::playables::framedata::FrameData)` overload"]
175 fn on_behaviour_pause(
176 self,
177 playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>,
178 info: impl ::core::convert::Into<crate::unity_engine::playables::framedata::FrameData>,
179 ) -> () {
180 unsafe {
181 let __receiver =
182 <IPlayableBehaviour_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183 {
184 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
185 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
186 panic!(
187 "unity: virtual slot {}
188 out of range (vtable len {}
189) on the runtime class behind {}
190 (method `{}
191`)",
192 5usize,
193 __vt.len(),
194 <IPlayableBehaviour_Interface as ::unity::ClassIdentity>::NAME,
195 "OnBehaviourPause",
196 )
197 });
198 let __inner: extern "C" fn(
199 IPlayableBehaviour_Interface,
200 crate::unity_engine::playables::playable::Playable,
201 crate::unity_engine::playables::framedata::FrameData,
202 ::unity::OptionalMethod,
203 ) -> () = ::core::mem::transmute(__vi.method_ptr);
204 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
205 __inner(__receiver, ::core::convert::Into::into(playable), ::core::convert::Into::into(info), __mi)
206 }
207 }
208 }
209 #[doc = "`PrepareFrame(crate::unity_engine::playables::playable::Playable, crate::unity_engine::playables::framedata::FrameData)` overload"]
210 fn prepare_frame(
211 self,
212 playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>,
213 info: impl ::core::convert::Into<crate::unity_engine::playables::framedata::FrameData>,
214 ) -> () {
215 unsafe {
216 let __receiver =
217 <IPlayableBehaviour_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
218 {
219 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
220 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
221 panic!(
222 "unity: virtual slot {}
223 out of range (vtable len {}
224) on the runtime class behind {}
225 (method `{}
226`)",
227 6usize,
228 __vt.len(),
229 <IPlayableBehaviour_Interface as ::unity::ClassIdentity>::NAME,
230 "PrepareFrame",
231 )
232 });
233 let __inner: extern "C" fn(
234 IPlayableBehaviour_Interface,
235 crate::unity_engine::playables::playable::Playable,
236 crate::unity_engine::playables::framedata::FrameData,
237 ::unity::OptionalMethod,
238 ) -> () = ::core::mem::transmute(__vi.method_ptr);
239 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
240 __inner(__receiver, ::core::convert::Into::into(playable), ::core::convert::Into::into(info), __mi)
241 }
242 }
243 }
244 #[doc = "`ProcessFrame(crate::unity_engine::playables::playable::Playable, crate::unity_engine::playables::framedata::FrameData, crate::system::object::Object)` overload"]
245 fn process_frame(
246 self,
247 playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>,
248 info: impl ::core::convert::Into<crate::unity_engine::playables::framedata::FrameData>,
249 player_data: impl ::core::convert::Into<crate::system::object::Object>,
250 ) -> () {
251 unsafe {
252 let __receiver =
253 <IPlayableBehaviour_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
254 {
255 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
256 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
257 panic!(
258 "unity: virtual slot {}
259 out of range (vtable len {}
260) on the runtime class behind {}
261 (method `{}
262`)",
263 7usize,
264 __vt.len(),
265 <IPlayableBehaviour_Interface as ::unity::ClassIdentity>::NAME,
266 "ProcessFrame",
267 )
268 });
269 let __inner: extern "C" fn(
270 IPlayableBehaviour_Interface,
271 crate::unity_engine::playables::playable::Playable,
272 crate::unity_engine::playables::framedata::FrameData,
273 crate::system::object::Object,
274 ::unity::OptionalMethod,
275 ) -> () = ::core::mem::transmute(__vi.method_ptr);
276 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
277 __inner(
278 __receiver,
279 ::core::convert::Into::into(playable),
280 ::core::convert::Into::into(info),
281 ::core::convert::Into::into(player_data),
282 __mi,
283 )
284 }
285 }
286 }
287}
288
289#[cfg(feature = "unity_engine-playables-iplayablebehaviour_interface")]
290impl<__T: IIPlayableBehaviour_Interface> IIPlayableBehaviour_InterfaceMethods for __T {}
291
292#[cfg(feature = "unity_engine-playables-iplayablebehaviour_interface")]
293impl IPlayableBehaviour_Interface {
294 pub fn on_graph_start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
295 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
296 }
297
298 pub fn on_graph_stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
299 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
300 }
301
302 pub fn on_playable_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
304 }
305
306 pub fn on_playable_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
307 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
308 }
309
310 pub fn on_behaviour_play_method_info() -> &'static ::unity::il2cpp::MethodInfo {
311 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
312 }
313
314 pub fn on_behaviour_pause_method_info() -> &'static ::unity::il2cpp::MethodInfo {
315 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
316 }
317
318 pub fn prepare_frame_method_info() -> &'static ::unity::il2cpp::MethodInfo {
319 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
320 }
321
322 pub fn process_frame_method_info() -> &'static ::unity::il2cpp::MethodInfo {
323 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
324 }
325}
326
327#[cfg(feature = "unity_engine-playables-iplayablebehaviour_interface")]
328impl IPlayableBehaviour_Interface {
329 #[doc = "Direct (non-virtual) call to `IPlayableBehaviour_Interface`'s own `OnGraphStart`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
330 pub unsafe fn on_graph_start(
331 this: impl ::core::convert::Into<::unity::IlInstance>,
332 playable: crate::unity_engine::playables::playable::Playable,
333 ) -> () {
334 let __mi = Self::on_graph_start_method_info();
335 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::playables::playable::Playable, ::unity::OptionalMethod) -> () =
336 ::core::mem::transmute(__mi.method_ptr);
337 __inner(this.into(), playable, ::core::option::Option::None)
338 }
339
340 #[doc = "Direct (non-virtual) call to `IPlayableBehaviour_Interface`'s own `OnGraphStop`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
341 pub unsafe fn on_graph_stop(
342 this: impl ::core::convert::Into<::unity::IlInstance>,
343 playable: crate::unity_engine::playables::playable::Playable,
344 ) -> () {
345 let __mi = Self::on_graph_stop_method_info();
346 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::playables::playable::Playable, ::unity::OptionalMethod) -> () =
347 ::core::mem::transmute(__mi.method_ptr);
348 __inner(this.into(), playable, ::core::option::Option::None)
349 }
350
351 #[doc = "Direct (non-virtual) call to `IPlayableBehaviour_Interface`'s own `OnPlayableCreate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
352 pub unsafe fn on_playable_create(
353 this: impl ::core::convert::Into<::unity::IlInstance>,
354 playable: crate::unity_engine::playables::playable::Playable,
355 ) -> () {
356 let __mi = Self::on_playable_create_method_info();
357 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::playables::playable::Playable, ::unity::OptionalMethod) -> () =
358 ::core::mem::transmute(__mi.method_ptr);
359 __inner(this.into(), playable, ::core::option::Option::None)
360 }
361
362 #[doc = "Direct (non-virtual) call to `IPlayableBehaviour_Interface`'s own `OnPlayableDestroy`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
363 pub unsafe fn on_playable_destroy(
364 this: impl ::core::convert::Into<::unity::IlInstance>,
365 playable: crate::unity_engine::playables::playable::Playable,
366 ) -> () {
367 let __mi = Self::on_playable_destroy_method_info();
368 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::playables::playable::Playable, ::unity::OptionalMethod) -> () =
369 ::core::mem::transmute(__mi.method_ptr);
370 __inner(this.into(), playable, ::core::option::Option::None)
371 }
372
373 #[doc = "Direct (non-virtual) call to `IPlayableBehaviour_Interface`'s own `OnBehaviourPlay`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
374 pub unsafe fn on_behaviour_play(
375 this: impl ::core::convert::Into<::unity::IlInstance>,
376 playable: crate::unity_engine::playables::playable::Playable,
377 info: crate::unity_engine::playables::framedata::FrameData,
378 ) -> () {
379 let __mi = Self::on_behaviour_play_method_info();
380 let __inner: extern "C" fn(
381 ::unity::IlInstance,
382 crate::unity_engine::playables::playable::Playable,
383 crate::unity_engine::playables::framedata::FrameData,
384 ::unity::OptionalMethod,
385 ) -> () = ::core::mem::transmute(__mi.method_ptr);
386 __inner(this.into(), playable, info, ::core::option::Option::None)
387 }
388
389 #[doc = "Direct (non-virtual) call to `IPlayableBehaviour_Interface`'s own `OnBehaviourPause`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
390 pub unsafe fn on_behaviour_pause(
391 this: impl ::core::convert::Into<::unity::IlInstance>,
392 playable: crate::unity_engine::playables::playable::Playable,
393 info: crate::unity_engine::playables::framedata::FrameData,
394 ) -> () {
395 let __mi = Self::on_behaviour_pause_method_info();
396 let __inner: extern "C" fn(
397 ::unity::IlInstance,
398 crate::unity_engine::playables::playable::Playable,
399 crate::unity_engine::playables::framedata::FrameData,
400 ::unity::OptionalMethod,
401 ) -> () = ::core::mem::transmute(__mi.method_ptr);
402 __inner(this.into(), playable, info, ::core::option::Option::None)
403 }
404
405 #[doc = "Direct (non-virtual) call to `IPlayableBehaviour_Interface`'s own `PrepareFrame`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
406 pub unsafe fn prepare_frame(
407 this: impl ::core::convert::Into<::unity::IlInstance>,
408 playable: crate::unity_engine::playables::playable::Playable,
409 info: crate::unity_engine::playables::framedata::FrameData,
410 ) -> () {
411 let __mi = Self::prepare_frame_method_info();
412 let __inner: extern "C" fn(
413 ::unity::IlInstance,
414 crate::unity_engine::playables::playable::Playable,
415 crate::unity_engine::playables::framedata::FrameData,
416 ::unity::OptionalMethod,
417 ) -> () = ::core::mem::transmute(__mi.method_ptr);
418 __inner(this.into(), playable, info, ::core::option::Option::None)
419 }
420
421 #[doc = "Direct (non-virtual) call to `IPlayableBehaviour_Interface`'s own `ProcessFrame`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
422 pub unsafe fn process_frame(
423 this: impl ::core::convert::Into<::unity::IlInstance>,
424 playable: crate::unity_engine::playables::playable::Playable,
425 info: crate::unity_engine::playables::framedata::FrameData,
426 player_data: crate::system::object::Object,
427 ) -> () {
428 let __mi = Self::process_frame_method_info();
429 let __inner: extern "C" fn(
430 ::unity::IlInstance,
431 crate::unity_engine::playables::playable::Playable,
432 crate::unity_engine::playables::framedata::FrameData,
433 crate::system::object::Object,
434 ::unity::OptionalMethod,
435 ) -> () = ::core::mem::transmute(__mi.method_ptr);
436 __inner(this.into(), playable, info, player_data, ::core::option::Option::None)
437 }
438}
439
440#[cfg(feature = "unity_engine-playables-iplayablebehaviour_interface")]
441#[doc(hidden)]
442pub mod prelude {
443 pub use super::{IIPlayableBehaviour_Interface, IIPlayableBehaviour_InterfaceMethods, IPlayableBehaviour_Interface};
444}