engage/generated/unity_engine/switch/
videoplayer_2.rs1#[cfg(feature = "unity_engine-switch-videoplayer_2-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/switch/videoplayer_2/VideoPlayer_2.md"))]
11 #[::unity::class(namespace = "UnityEngine.Switch", name = "VideoPlayer")]
12 #[parent(crate::system::object::Object)]
13 pub struct VideoPlayer_2 {}
14}
15
16#[cfg(feature = "unity_engine-switch-videoplayer_2-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-switch-videoplayer_2")]
20pub trait IVideoPlayer_2Methods: IVideoPlayer_2 {
21 #[doc = "`.ctor()` overload"]
22 fn ctor(self) -> () {
23 unsafe {
24 let __receiver = <VideoPlayer_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
25 ::unity::il2cpp_call!((::unity::module_base()+0x3f47030usize)as*mut u8,();
26(VideoPlayer_2)__receiver)
27 }
28 }
29}
30
31#[cfg(feature = "unity_engine-switch-videoplayer_2")]
32impl<__T: IVideoPlayer_2> IVideoPlayer_2Methods for __T {}
33
34#[cfg(feature = "unity_engine-switch-videoplayer_2")]
35impl VideoPlayer_2 {
36 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
37 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
38 }
39}
40
41#[cfg(feature = "unity_engine-switch-videoplayer_2")]
42impl VideoPlayer_2 {
43 #[doc = "`.ctor()` — no args"]
44 pub fn new() -> Self {
45 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
46 panic!(
47 "{}
48::{}
49 failed to instantiate",
50 ::core::stringify!(VideoPlayer_2),
51 ::core::stringify!(new),
52 )
53 });
54 <Self as IVideoPlayer_2Methods>::ctor(this);
55 this
56 }
57}
58
59#[cfg(feature = "unity_engine-switch-videoplayer_2")]
60#[doc(hidden)]
61pub mod prelude {
62 pub use super::{IVideoPlayer_2, IVideoPlayer_2Methods, VideoPlayer_2};
63 pub use crate::system::object::IObject;
64 #[cfg(feature = "system-object")]
65 pub use crate::system::object::IObjectMethods;
66}