1#[cfg(feature = "app-myroomeventclip-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::{
10 object::{IObject, Object},
11 r#enum::{Enum, IEnum},
12 valuetype::{IValueType, ValueType},
13 },
14 unity_engine::{
15 object_2::{IObject_2, Object_2},
16 playables::playableasset::{IPlayableAsset, PlayableAsset},
17 scriptableobject::{IScriptableObject, ScriptableObject},
18 },
19 };
20
21 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/myroomeventclip/MyRoomEventClip_EventClipType.md"))]
22 #[repr(C)]
23 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
24 pub struct MyRoomEventClip_EventClipType {
25 pub value: i32,
26 }
27 impl ::unity::ClassIdentity for MyRoomEventClip_EventClipType {
28 const NAME: &'static str = "MyRoomEventClip.EventClipType";
29 const NAMESPACE: &'static str = "App";
30
31 fn class() -> ::unity::Class {
32 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
33 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
34 }
35 }
36 impl ::unity::IlType for MyRoomEventClip_EventClipType {
37 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
38 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
39 }
40 }
41 impl MyRoomEventClip_EventClipType {
42 pub fn effect() -> Self {
43 Self { value: 0 }
44 }
45
46 pub fn sound() -> Self {
47 Self { value: 1 }
48 }
49 }
50
51 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/myroomeventclip/MyRoomEventClip_EventClipLayer.md"))]
52 #[repr(C)]
53 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
54 pub struct MyRoomEventClip_EventClipLayer {
55 pub value: i32,
56 }
57 impl ::unity::ClassIdentity for MyRoomEventClip_EventClipLayer {
58 const NAME: &'static str = "MyRoomEventClip.EventClipLayer";
59 const NAMESPACE: &'static str = "App";
60
61 fn class() -> ::unity::Class {
62 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
63 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
64 }
65 }
66 impl ::unity::IlType for MyRoomEventClip_EventClipLayer {
67 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
68 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
69 }
70 }
71 impl MyRoomEventClip_EventClipLayer {
72 pub fn background() -> Self {
73 Self { value: 0 }
74 }
75
76 pub fn foreground() -> Self {
77 Self { value: 1 }
78 }
79 }
80
81 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/myroomeventclip/MyRoomEventClip.md"))]
82 #[::unity::class(namespace = "App", name = "MyRoomEventClip")]
83 #[parent(crate::unity_engine::playables::playableasset::PlayableAsset)]
84 pub struct MyRoomEventClip {
85 #[offset(24)]
86 #[rename(name = "eventType")]
87 pub event_type: crate::app::myroomeventclip::MyRoomEventClip_EventClipType,
88 #[offset(28)]
89 #[rename(name = "eventLayer")]
90 pub event_layer: crate::app::myroomeventclip::MyRoomEventClip_EventClipLayer,
91 #[offset(32)]
92 #[rename(name = "eventName")]
93 pub event_name: ::unity::Il2CppString,
94 #[offset(40)]
95 #[rename(name = "isOut")]
96 pub is_out: bool,
97 }
98}
99
100#[cfg(feature = "app-myroomeventclip-types")]
101pub use __types::*;
102
103#[cfg(feature = "app-myroomeventclip")]
104pub trait IMyRoomEventClipMethods: IMyRoomEventClip {
105 #[doc = "`get_clipCaps()` overload"]
106 fn get_clip_caps(self) -> crate::unity_engine::timeline::clipcaps::ClipCaps {
107 unsafe {
108 let __receiver = <MyRoomEventClip as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109 {
110 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
111 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
112 panic!(
113 "unity: virtual slot {}
114 out of range (vtable len {}
115) on the runtime class behind {}
116 (method `{}
117`)",
118 9usize,
119 __vt.len(),
120 <MyRoomEventClip as ::unity::ClassIdentity>::NAME,
121 "get_clipCaps",
122 )
123 });
124 let __inner: extern "C" fn(MyRoomEventClip, ::unity::OptionalMethod) -> crate::unity_engine::timeline::clipcaps::ClipCaps =
125 ::core::mem::transmute(__vi.method_ptr);
126 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
127 __inner(__receiver, __mi)
128 }
129 }
130 }
131 #[doc = "`CreatePlayable(crate::unity_engine::playables::playablegraph::PlayableGraph, crate::unity_engine::gameobject::GameObject)` overload"]
132 fn create_playable(
133 self,
134 graph: impl ::core::convert::Into<crate::unity_engine::playables::playablegraph::PlayableGraph>,
135 owner: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
136 ) -> crate::unity_engine::playables::playable::Playable {
137 unsafe {
138 let __receiver = <MyRoomEventClip as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139 {
140 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
141 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
142 panic!(
143 "unity: virtual slot {}
144 out of range (vtable len {}
145) on the runtime class behind {}
146 (method `{}
147`)",
148 6usize,
149 __vt.len(),
150 <MyRoomEventClip as ::unity::ClassIdentity>::NAME,
151 "CreatePlayable",
152 )
153 });
154 let __inner: extern "C" fn(
155 MyRoomEventClip,
156 crate::unity_engine::playables::playablegraph::PlayableGraph,
157 crate::unity_engine::gameobject::GameObject,
158 ::unity::OptionalMethod,
159 ) -> crate::unity_engine::playables::playable::Playable = ::core::mem::transmute(__vi.method_ptr);
160 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
161 __inner(__receiver, ::core::convert::Into::into(graph), ::core::convert::Into::into(owner), __mi)
162 }
163 }
164 }
165 #[doc = "`.ctor()` overload"]
166 fn ctor(self) -> () {
167 unsafe {
168 let __receiver = <MyRoomEventClip as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
169 ::unity::il2cpp_call!((::unity::module_base()+0x238ee20usize)as*mut u8,();
170(MyRoomEventClip)__receiver)
171 }
172 }
173}
174
175#[cfg(feature = "app-myroomeventclip")]
176impl<__T: IMyRoomEventClip> IMyRoomEventClipMethods for __T {}
177
178#[cfg(feature = "app-myroomeventclip")]
179impl MyRoomEventClip {
180 pub fn get_clip_caps_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
182 }
183
184 pub fn create_playable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
186 }
187
188 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
190 }
191}
192
193#[cfg(feature = "app-myroomeventclip")]
194impl MyRoomEventClip {
195 #[doc = "Direct (non-virtual) call to `MyRoomEventClip`'s own `get_clipCaps`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
196 pub unsafe fn get_clip_caps(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::timeline::clipcaps::ClipCaps {
197 let __mi = Self::get_clip_caps_method_info();
198 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::timeline::clipcaps::ClipCaps =
199 ::core::mem::transmute(__mi.method_ptr);
200 __inner(this.into(), ::core::option::Option::None)
201 }
202
203 #[doc = "Direct (non-virtual) call to `MyRoomEventClip`'s own `CreatePlayable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
204 pub unsafe fn create_playable(
205 this: impl ::core::convert::Into<::unity::IlInstance>,
206 graph: crate::unity_engine::playables::playablegraph::PlayableGraph,
207 owner: crate::unity_engine::gameobject::GameObject,
208 ) -> crate::unity_engine::playables::playable::Playable {
209 let __mi = Self::create_playable_method_info();
210 let __inner: extern "C" fn(
211 ::unity::IlInstance,
212 crate::unity_engine::playables::playablegraph::PlayableGraph,
213 crate::unity_engine::gameobject::GameObject,
214 ::unity::OptionalMethod,
215 ) -> crate::unity_engine::playables::playable::Playable = ::core::mem::transmute(__mi.method_ptr);
216 __inner(this.into(), graph, owner, ::core::option::Option::None)
217 }
218}
219
220#[cfg(feature = "app-myroomeventclip")]
221impl MyRoomEventClip {
222 #[doc = "`.ctor()` — no args"]
223 pub fn new() -> Self {
224 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
225 panic!(
226 "{}
227::{}
228 failed to instantiate",
229 ::core::stringify!(MyRoomEventClip),
230 ::core::stringify!(new),
231 )
232 });
233 <Self as IMyRoomEventClipMethods>::ctor(this);
234 this
235 }
236}
237
238#[cfg(feature = "app-myroomeventclip")]
239#[doc(hidden)]
240pub mod prelude {
241 pub use super::{IMyRoomEventClip, IMyRoomEventClipMethods, MyRoomEventClip, MyRoomEventClip_EventClipLayer, MyRoomEventClip_EventClipType};
242 #[cfg(feature = "system-object")]
243 pub use crate::system::object::IObjectMethods;
244 #[cfg(feature = "system-enum")]
245 pub use crate::system::r#enum::IEnumMethods;
246 #[cfg(feature = "system-valuetype")]
247 pub use crate::system::valuetype::IValueTypeMethods;
248 #[cfg(feature = "unity_engine-object_2")]
249 pub use crate::unity_engine::object_2::IObject_2Methods;
250 #[cfg(feature = "unity_engine-playables-playableasset")]
251 pub use crate::unity_engine::playables::playableasset::IPlayableAssetMethods;
252 #[cfg(feature = "unity_engine-scriptableobject")]
253 pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
254 pub use crate::{
255 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
256 unity_engine::{object_2::IObject_2, playables::playableasset::IPlayableAsset, scriptableobject::IScriptableObject},
257 };
258}