Skip to main content

engage/generated/app/
movieplayer.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-movieplayer-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::movieplayerbase::{IMoviePlayerBase, MoviePlayerBase},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/movieplayer/MoviePlayer.md"))]
14    #[::unity::class(namespace = "App", name = "MoviePlayer")]
15    #[parent(crate::app::movieplayerbase::MoviePlayerBase)]
16    pub struct MoviePlayer {
17        #[offset(128)]
18        #[rename(name = "m_VideoPlayer")]
19        pub m_video_player: crate::unity_engine::video::videoplayer::VideoPlayer,
20        #[offset(136)]
21        #[rename(name = "m_IsSoundEventEnable")]
22        pub m_is_sound_event_enable: bool,
23        #[offset(137)]
24        #[rename(name = "m_triggerStop")]
25        pub m_trigger_stop: bool,
26    }
27}
28
29#[cfg(feature = "app-movieplayer-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-movieplayer")]
33pub trait IMoviePlayerMethods: IMoviePlayer {
34    #[doc = "`.ctor(::unity::Il2CppString, bool)` overload"]
35    fn ctor(
36        self,
37        movie_file_name: impl ::core::convert::Into<::unity::Il2CppString>,
38        is_movie_file_name_direct: impl ::core::convert::Into<bool>,
39    ) -> () {
40        unsafe {
41            let __receiver = <MoviePlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42            ::unity::il2cpp_call!((::unity::module_base()+0x277d820usize)as*mut u8,();
43(MoviePlayer)__receiver,(::unity::Il2CppString)::core::convert::Into::into(movie_file_name),(bool)::core::convert::Into::into(is_movie_file_name_direct))
44        }
45    }
46    #[doc = "`ErrorCallback(crate::unity_engine::video::videoplayer::VideoPlayer, ::unity::Il2CppString)` overload"]
47    fn error_callback(
48        self,
49        player: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer>,
50        mess: impl ::core::convert::Into<::unity::Il2CppString>,
51    ) -> () {
52        unsafe {
53            let __receiver = <MoviePlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54            ::unity::il2cpp_call!((::unity::module_base()+0x277d8b0usize)as*mut u8,();
55(MoviePlayer)__receiver,(crate::unity_engine::video::videoplayer::VideoPlayer)::core::convert::Into::into(player),(::unity::Il2CppString)::core::convert::Into::into(mess))
56        }
57    }
58    #[doc = "`LoopPointReached(crate::unity_engine::video::videoplayer::VideoPlayer)` overload"]
59    fn loop_point_reached(self, player: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer>) -> () {
60        unsafe {
61            let __receiver = <MoviePlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62            ::unity::il2cpp_call!((::unity::module_base()+0x277d8e0usize)as*mut u8,();
63(MoviePlayer)__receiver,(crate::unity_engine::video::videoplayer::VideoPlayer)::core::convert::Into::into(player))
64        }
65    }
66    #[doc = "`FrameReady(crate::unity_engine::video::videoplayer::VideoPlayer, i64)` overload"]
67    fn frame_ready(
68        self,
69        player: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer>,
70        frame_idx: impl ::core::convert::Into<i64>,
71    ) -> () {
72        unsafe {
73            let __receiver = <MoviePlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74            ::unity::il2cpp_call!((::unity::module_base()+0x277d900usize)as*mut u8,();
75(MoviePlayer)__receiver,(crate::unity_engine::video::videoplayer::VideoPlayer)::core::convert::Into::into(player),(i64)::core::convert::Into::into(frame_idx))
76        }
77    }
78    #[doc = "`SetupAfterLoadScene()` overload"]
79    fn setup_after_load_scene(self) -> bool {
80        unsafe {
81            let __receiver = <MoviePlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82            {
83                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
84                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
85                    panic!(
86                        "unity: virtual slot {}
87 out of range (vtable len {}
88) on the runtime class behind {}
89 (method `{}
90`)",
91                        4usize,
92                        __vt.len(),
93                        <MoviePlayer as ::unity::ClassIdentity>::NAME,
94                        "SetupAfterLoadScene",
95                    )
96                });
97                let __inner: extern "C" fn(MoviePlayer, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
98                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
99                __inner(__receiver, __mi)
100            }
101        }
102    }
103    #[doc = "`SetupByMovieCanvasPrefab(crate::unity_engine::gameobject::GameObject)` overload"]
104    fn setup_by_movie_canvas_prefab(self, canvas_prefab: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> bool {
105        unsafe {
106            let __receiver = <MoviePlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107            {
108                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
109                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
110                    panic!(
111                        "unity: virtual slot {}
112 out of range (vtable len {}
113) on the runtime class behind {}
114 (method `{}
115`)",
116                        5usize,
117                        __vt.len(),
118                        <MoviePlayer as ::unity::ClassIdentity>::NAME,
119                        "SetupByMovieCanvasPrefab",
120                    )
121                });
122                let __inner: extern "C" fn(MoviePlayer, crate::unity_engine::gameobject::GameObject, ::unity::OptionalMethod) -> bool =
123                    ::core::mem::transmute(__vi.method_ptr);
124                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
125                __inner(__receiver, ::core::convert::Into::into(canvas_prefab), __mi)
126            }
127        }
128    }
129    #[doc = "`SetMovieFilePathToVideoPlayer()` overload"]
130    fn set_movie_file_path_to_video_player(self) -> bool {
131        unsafe {
132            let __receiver = <MoviePlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133            {
134                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
135                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
136                    panic!(
137                        "unity: virtual slot {}
138 out of range (vtable len {}
139) on the runtime class behind {}
140 (method `{}
141`)",
142                        6usize,
143                        __vt.len(),
144                        <MoviePlayer as ::unity::ClassIdentity>::NAME,
145                        "SetMovieFilePathToVideoPlayer",
146                    )
147                });
148                let __inner: extern "C" fn(MoviePlayer, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
149                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
150                __inner(__receiver, __mi)
151            }
152        }
153    }
154    #[doc = "`EnableSoundEvent()` overload"]
155    fn enable_sound_event(self) -> () {
156        unsafe {
157            let __receiver = <MoviePlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158            ::unity::il2cpp_call!((::unity::module_base()+0x277dee0usize)as*mut u8,();
159(MoviePlayer)__receiver)
160        }
161    }
162    #[doc = "`DisableSoundEvent()` overload"]
163    fn disable_sound_event(self) -> () {
164        unsafe {
165            let __receiver = <MoviePlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166            ::unity::il2cpp_call!((::unity::module_base()+0x277def0usize)as*mut u8,();
167(MoviePlayer)__receiver)
168        }
169    }
170    #[doc = "`IsTruePlayEnd()` overload"]
171    fn is_true_play_end(self) -> bool {
172        unsafe {
173            let __receiver = <MoviePlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174            ::unity::il2cpp_call!((::unity::module_base()+0x277df00usize)as*mut u8,bool;
175(MoviePlayer)__receiver)
176        }
177    }
178    #[doc = "`GetScreenObjectName()` overload"]
179    fn get_screen_object_name(self) -> ::unity::Il2CppString {
180        unsafe {
181            let __receiver = <MoviePlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182            {
183                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
184                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
185                    panic!(
186                        "unity: virtual slot {}
187 out of range (vtable len {}
188) on the runtime class behind {}
189 (method `{}
190`)",
191                        7usize,
192                        __vt.len(),
193                        <MoviePlayer as ::unity::ClassIdentity>::NAME,
194                        "GetScreenObjectName",
195                    )
196                });
197                let __inner: extern "C" fn(MoviePlayer, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
198                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
199                __inner(__receiver, __mi)
200            }
201        }
202    }
203    #[doc = "`IsPaused()` overload"]
204    fn is_paused(self) -> bool {
205        unsafe {
206            let __receiver = <MoviePlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207            {
208                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
209                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
210                    panic!(
211                        "unity: virtual slot {}
212 out of range (vtable len {}
213) on the runtime class behind {}
214 (method `{}
215`)",
216                        8usize,
217                        __vt.len(),
218                        <MoviePlayer as ::unity::ClassIdentity>::NAME,
219                        "IsPaused",
220                    )
221                });
222                let __inner: extern "C" fn(MoviePlayer, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
223                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
224                __inner(__receiver, __mi)
225            }
226        }
227    }
228    #[doc = "`IsPlaying()` overload"]
229    fn is_playing(self) -> bool {
230        unsafe {
231            let __receiver = <MoviePlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
232            {
233                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
234                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
235                    panic!(
236                        "unity: virtual slot {}
237 out of range (vtable len {}
238) on the runtime class behind {}
239 (method `{}
240`)",
241                        9usize,
242                        __vt.len(),
243                        <MoviePlayer as ::unity::ClassIdentity>::NAME,
244                        "IsPlaying",
245                    )
246                });
247                let __inner: extern "C" fn(MoviePlayer, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
248                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
249                __inner(__receiver, __mi)
250            }
251        }
252    }
253    #[doc = "`IsPlayEnd()` overload"]
254    fn is_play_end(self) -> bool {
255        unsafe {
256            let __receiver = <MoviePlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
257            {
258                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
259                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
260                    panic!(
261                        "unity: virtual slot {}
262 out of range (vtable len {}
263) on the runtime class behind {}
264 (method `{}
265`)",
266                        10usize,
267                        __vt.len(),
268                        <MoviePlayer as ::unity::ClassIdentity>::NAME,
269                        "IsPlayEnd",
270                    )
271                });
272                let __inner: extern "C" fn(MoviePlayer, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
273                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
274                __inner(__receiver, __mi)
275            }
276        }
277    }
278    #[doc = "`GetMovieLength()` overload"]
279    fn get_movie_length(self) -> f32 {
280        unsafe {
281            let __receiver = <MoviePlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
282            {
283                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
284                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
285                    panic!(
286                        "unity: virtual slot {}
287 out of range (vtable len {}
288) on the runtime class behind {}
289 (method `{}
290`)",
291                        12usize,
292                        __vt.len(),
293                        <MoviePlayer as ::unity::ClassIdentity>::NAME,
294                        "GetMovieLength",
295                    )
296                });
297                let __inner: extern "C" fn(MoviePlayer, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
298                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
299                __inner(__receiver, __mi)
300            }
301        }
302    }
303    #[doc = "`GetPlayingPosition()` overload"]
304    fn get_playing_position(self) -> f32 {
305        unsafe {
306            let __receiver = <MoviePlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
307            {
308                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
309                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
310                    panic!(
311                        "unity: virtual slot {}
312 out of range (vtable len {}
313) on the runtime class behind {}
314 (method `{}
315`)",
316                        13usize,
317                        __vt.len(),
318                        <MoviePlayer as ::unity::ClassIdentity>::NAME,
319                        "GetPlayingPosition",
320                    )
321                });
322                let __inner: extern "C" fn(MoviePlayer, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
323                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
324                __inner(__receiver, __mi)
325            }
326        }
327    }
328    #[doc = "`Tick()` overload"]
329    fn tick(self) -> () {
330        unsafe {
331            let __receiver = <MoviePlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
332            {
333                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
334                let __vi = *__vt.get(15usize).unwrap_or_else(|| {
335                    panic!(
336                        "unity: virtual slot {}
337 out of range (vtable len {}
338) on the runtime class behind {}
339 (method `{}
340`)",
341                        15usize,
342                        __vt.len(),
343                        <MoviePlayer as ::unity::ClassIdentity>::NAME,
344                        "Tick",
345                    )
346                });
347                let __inner: extern "C" fn(MoviePlayer, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
348                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
349                __inner(__receiver, __mi)
350            }
351        }
352    }
353    #[doc = "`Prepare()` overload"]
354    fn prepare(self) -> () {
355        unsafe {
356            let __receiver = <MoviePlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
357            {
358                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
359                let __vi = *__vt.get(16usize).unwrap_or_else(|| {
360                    panic!(
361                        "unity: virtual slot {}
362 out of range (vtable len {}
363) on the runtime class behind {}
364 (method `{}
365`)",
366                        16usize,
367                        __vt.len(),
368                        <MoviePlayer as ::unity::ClassIdentity>::NAME,
369                        "Prepare",
370                    )
371                });
372                let __inner: extern "C" fn(MoviePlayer, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
373                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
374                __inner(__receiver, __mi)
375            }
376        }
377    }
378    #[doc = "`IsPrepared()` overload"]
379    fn is_prepared(self) -> bool {
380        unsafe {
381            let __receiver = <MoviePlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
382            {
383                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
384                let __vi = *__vt.get(17usize).unwrap_or_else(|| {
385                    panic!(
386                        "unity: virtual slot {}
387 out of range (vtable len {}
388) on the runtime class behind {}
389 (method `{}
390`)",
391                        17usize,
392                        __vt.len(),
393                        <MoviePlayer as ::unity::ClassIdentity>::NAME,
394                        "IsPrepared",
395                    )
396                });
397                let __inner: extern "C" fn(MoviePlayer, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
398                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
399                __inner(__receiver, __mi)
400            }
401        }
402    }
403    #[doc = "`Play()` overload"]
404    fn play(self) -> () {
405        unsafe {
406            let __receiver = <MoviePlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
407            {
408                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
409                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
410                    panic!(
411                        "unity: virtual slot {}
412 out of range (vtable len {}
413) on the runtime class behind {}
414 (method `{}
415`)",
416                        18usize,
417                        __vt.len(),
418                        <MoviePlayer as ::unity::ClassIdentity>::NAME,
419                        "Play",
420                    )
421                });
422                let __inner: extern "C" fn(MoviePlayer, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
423                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
424                __inner(__receiver, __mi)
425            }
426        }
427    }
428    #[doc = "`Stop()` overload"]
429    fn stop(self) -> () {
430        unsafe {
431            let __receiver = <MoviePlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
432            {
433                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
434                let __vi = *__vt.get(19usize).unwrap_or_else(|| {
435                    panic!(
436                        "unity: virtual slot {}
437 out of range (vtable len {}
438) on the runtime class behind {}
439 (method `{}
440`)",
441                        19usize,
442                        __vt.len(),
443                        <MoviePlayer as ::unity::ClassIdentity>::NAME,
444                        "Stop",
445                    )
446                });
447                let __inner: extern "C" fn(MoviePlayer, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
448                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
449                __inner(__receiver, __mi)
450            }
451        }
452    }
453    #[doc = "`SuspendOn()` overload"]
454    fn suspend_on(self) -> () {
455        unsafe {
456            let __receiver = <MoviePlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
457            {
458                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
459                let __vi = *__vt.get(20usize).unwrap_or_else(|| {
460                    panic!(
461                        "unity: virtual slot {}
462 out of range (vtable len {}
463) on the runtime class behind {}
464 (method `{}
465`)",
466                        20usize,
467                        __vt.len(),
468                        <MoviePlayer as ::unity::ClassIdentity>::NAME,
469                        "SuspendOn",
470                    )
471                });
472                let __inner: extern "C" fn(MoviePlayer, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
473                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
474                __inner(__receiver, __mi)
475            }
476        }
477    }
478    #[doc = "`SuspendOff()` overload"]
479    fn suspend_off(self) -> () {
480        unsafe {
481            let __receiver = <MoviePlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
482            {
483                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
484                let __vi = *__vt.get(21usize).unwrap_or_else(|| {
485                    panic!(
486                        "unity: virtual slot {}
487 out of range (vtable len {}
488) on the runtime class behind {}
489 (method `{}
490`)",
491                        21usize,
492                        __vt.len(),
493                        <MoviePlayer as ::unity::ClassIdentity>::NAME,
494                        "SuspendOff",
495                    )
496                });
497                let __inner: extern "C" fn(MoviePlayer, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
498                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
499                __inner(__receiver, __mi)
500            }
501        }
502    }
503}
504
505#[cfg(feature = "app-movieplayer")]
506impl<__T: IMoviePlayer> IMoviePlayerMethods for __T {}
507
508#[cfg(feature = "app-movieplayer")]
509impl MoviePlayer {
510    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
511        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
512    }
513
514    pub fn error_callback_method_info() -> &'static ::unity::il2cpp::MethodInfo {
515        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
516    }
517
518    pub fn loop_point_reached_method_info() -> &'static ::unity::il2cpp::MethodInfo {
519        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
520    }
521
522    pub fn frame_ready_method_info() -> &'static ::unity::il2cpp::MethodInfo {
523        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
524    }
525
526    pub fn setup_after_load_scene_method_info() -> &'static ::unity::il2cpp::MethodInfo {
527        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
528    }
529
530    pub fn setup_by_movie_canvas_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
531        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
532    }
533
534    pub fn set_movie_file_path_to_video_player_method_info() -> &'static ::unity::il2cpp::MethodInfo {
535        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
536    }
537
538    pub fn enable_sound_event_method_info() -> &'static ::unity::il2cpp::MethodInfo {
539        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
540    }
541
542    pub fn disable_sound_event_method_info() -> &'static ::unity::il2cpp::MethodInfo {
543        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
544    }
545
546    pub fn is_true_play_end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
547        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
548    }
549
550    pub fn get_screen_object_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
551        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
552    }
553
554    pub fn is_paused_method_info() -> &'static ::unity::il2cpp::MethodInfo {
555        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
556    }
557
558    pub fn is_playing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
559        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
560    }
561
562    pub fn is_play_end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
563        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
564    }
565
566    pub fn get_movie_length_method_info() -> &'static ::unity::il2cpp::MethodInfo {
567        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
568    }
569
570    pub fn get_playing_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
571        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
572    }
573
574    pub fn tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
575        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
576    }
577
578    pub fn prepare_method_info() -> &'static ::unity::il2cpp::MethodInfo {
579        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
580    }
581
582    pub fn is_prepared_method_info() -> &'static ::unity::il2cpp::MethodInfo {
583        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
584    }
585
586    pub fn play_method_info() -> &'static ::unity::il2cpp::MethodInfo {
587        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
588    }
589
590    pub fn stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
591        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
592    }
593
594    pub fn suspend_on_method_info() -> &'static ::unity::il2cpp::MethodInfo {
595        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
596    }
597
598    pub fn suspend_off_method_info() -> &'static ::unity::il2cpp::MethodInfo {
599        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
600    }
601}
602
603#[cfg(feature = "app-movieplayer")]
604impl MoviePlayer {
605    #[doc = "Direct (non-virtual) call to `MoviePlayer`'s own `SetupAfterLoadScene`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
606    pub unsafe fn setup_after_load_scene(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
607        let __mi = Self::setup_after_load_scene_method_info();
608        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
609        __inner(this.into(), ::core::option::Option::None)
610    }
611
612    #[doc = "Direct (non-virtual) call to `MoviePlayer`'s own `SetupByMovieCanvasPrefab`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
613    pub unsafe fn setup_by_movie_canvas_prefab(
614        this: impl ::core::convert::Into<::unity::IlInstance>,
615        canvas_prefab: crate::unity_engine::gameobject::GameObject,
616    ) -> bool {
617        let __mi = Self::setup_by_movie_canvas_prefab_method_info();
618        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::gameobject::GameObject, ::unity::OptionalMethod) -> bool =
619            ::core::mem::transmute(__mi.method_ptr);
620        __inner(this.into(), canvas_prefab, ::core::option::Option::None)
621    }
622
623    #[doc = "Direct (non-virtual) call to `MoviePlayer`'s own `SetMovieFilePathToVideoPlayer`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
624    pub unsafe fn set_movie_file_path_to_video_player(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
625        let __mi = Self::set_movie_file_path_to_video_player_method_info();
626        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
627        __inner(this.into(), ::core::option::Option::None)
628    }
629
630    #[doc = "Direct (non-virtual) call to `MoviePlayer`'s own `GetScreenObjectName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
631    pub unsafe fn get_screen_object_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
632        let __mi = Self::get_screen_object_name_method_info();
633        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
634        __inner(this.into(), ::core::option::Option::None)
635    }
636
637    #[doc = "Direct (non-virtual) call to `MoviePlayer`'s own `IsPaused`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
638    pub unsafe fn is_paused(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
639        let __mi = Self::is_paused_method_info();
640        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
641        __inner(this.into(), ::core::option::Option::None)
642    }
643
644    #[doc = "Direct (non-virtual) call to `MoviePlayer`'s own `IsPlaying`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
645    pub unsafe fn is_playing(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
646        let __mi = Self::is_playing_method_info();
647        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
648        __inner(this.into(), ::core::option::Option::None)
649    }
650
651    #[doc = "Direct (non-virtual) call to `MoviePlayer`'s own `IsPlayEnd`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
652    pub unsafe fn is_play_end(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
653        let __mi = Self::is_play_end_method_info();
654        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
655        __inner(this.into(), ::core::option::Option::None)
656    }
657
658    #[doc = "Direct (non-virtual) call to `MoviePlayer`'s own `GetMovieLength`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
659    pub unsafe fn get_movie_length(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
660        let __mi = Self::get_movie_length_method_info();
661        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
662        __inner(this.into(), ::core::option::Option::None)
663    }
664
665    #[doc = "Direct (non-virtual) call to `MoviePlayer`'s own `GetPlayingPosition`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
666    pub unsafe fn get_playing_position(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
667        let __mi = Self::get_playing_position_method_info();
668        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
669        __inner(this.into(), ::core::option::Option::None)
670    }
671
672    #[doc = "Direct (non-virtual) call to `MoviePlayer`'s own `Tick`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
673    pub unsafe fn tick(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
674        let __mi = Self::tick_method_info();
675        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
676        __inner(this.into(), ::core::option::Option::None)
677    }
678
679    #[doc = "Direct (non-virtual) call to `MoviePlayer`'s own `Prepare`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
680    pub unsafe fn prepare(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
681        let __mi = Self::prepare_method_info();
682        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
683        __inner(this.into(), ::core::option::Option::None)
684    }
685
686    #[doc = "Direct (non-virtual) call to `MoviePlayer`'s own `IsPrepared`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
687    pub unsafe fn is_prepared(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
688        let __mi = Self::is_prepared_method_info();
689        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
690        __inner(this.into(), ::core::option::Option::None)
691    }
692
693    #[doc = "Direct (non-virtual) call to `MoviePlayer`'s own `Play`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
694    pub unsafe fn play(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
695        let __mi = Self::play_method_info();
696        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
697        __inner(this.into(), ::core::option::Option::None)
698    }
699
700    #[doc = "Direct (non-virtual) call to `MoviePlayer`'s own `Stop`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
701    pub unsafe fn stop(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
702        let __mi = Self::stop_method_info();
703        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
704        __inner(this.into(), ::core::option::Option::None)
705    }
706
707    #[doc = "Direct (non-virtual) call to `MoviePlayer`'s own `SuspendOn`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
708    pub unsafe fn suspend_on(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
709        let __mi = Self::suspend_on_method_info();
710        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
711        __inner(this.into(), ::core::option::Option::None)
712    }
713
714    #[doc = "Direct (non-virtual) call to `MoviePlayer`'s own `SuspendOff`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
715    pub unsafe fn suspend_off(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
716        let __mi = Self::suspend_off_method_info();
717        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
718        __inner(this.into(), ::core::option::Option::None)
719    }
720}
721
722#[cfg(feature = "app-movieplayer")]
723impl MoviePlayer {
724    #[doc = "`.ctor(::unity::Il2CppString, bool)` — overload selector"]
725    pub fn new(movie_file_name: ::unity::Il2CppString, is_movie_file_name_direct: bool) -> Self {
726        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
727            panic!(
728                "{}
729::{}
730 failed to instantiate",
731                ::core::stringify!(MoviePlayer),
732                ::core::stringify!(new),
733            )
734        });
735        <Self as IMoviePlayerMethods>::ctor(this, movie_file_name, is_movie_file_name_direct);
736        this
737    }
738}
739
740#[cfg(feature = "app-movieplayer")]
741#[doc(hidden)]
742pub mod prelude {
743    pub use super::{IMoviePlayer, IMoviePlayerMethods, MoviePlayer};
744    #[cfg(feature = "app-movieplayerbase")]
745    pub use crate::app::movieplayerbase::IMoviePlayerBaseMethods;
746    #[cfg(feature = "system-object")]
747    pub use crate::system::object::IObjectMethods;
748    pub use crate::{app::movieplayerbase::IMoviePlayerBase, system::object::IObject};
749}