engage/generated/app/
myroomfadebehaviour.rs1#[cfg(feature = "app-myroomfadebehaviour-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::playables::playablebehaviour::{IPlayableBehaviour, PlayableBehaviour},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/myroomfadebehaviour/MyRoomFadeBehaviour.md"))]
14 #[::unity::class(namespace = "App", name = "MyRoomFadeBehaviour")]
15 #[parent(crate::unity_engine::playables::playablebehaviour::PlayableBehaviour)]
16 pub struct MyRoomFadeBehaviour {}
17}
18
19#[cfg(feature = "app-myroomfadebehaviour-types")]
20pub use __types::*;
21
22#[cfg(feature = "app-myroomfadebehaviour")]
23pub trait IMyRoomFadeBehaviourMethods: IMyRoomFadeBehaviour {
24 #[doc = "`ProcessFrame(crate::unity_engine::playables::playable::Playable, crate::unity_engine::playables::framedata::FrameData, crate::system::object::Object)` overload"]
25 fn process_frame(
26 self,
27 playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>,
28 info: impl ::core::convert::Into<crate::unity_engine::playables::framedata::FrameData>,
29 player_data: impl ::core::convert::Into<crate::system::object::Object>,
30 ) -> () {
31 unsafe {
32 let __receiver = <MyRoomFadeBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
33 {
34 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
35 let __vi = *__vt.get(20usize).unwrap_or_else(|| {
36 panic!(
37 "unity: virtual slot {}
38 out of range (vtable len {}
39) on the runtime class behind {}
40 (method `{}
41`)",
42 20usize,
43 __vt.len(),
44 <MyRoomFadeBehaviour as ::unity::ClassIdentity>::NAME,
45 "ProcessFrame",
46 )
47 });
48 let __inner: extern "C" fn(
49 MyRoomFadeBehaviour,
50 crate::unity_engine::playables::playable::Playable,
51 crate::unity_engine::playables::framedata::FrameData,
52 crate::system::object::Object,
53 ::unity::OptionalMethod,
54 ) -> () = ::core::mem::transmute(__vi.method_ptr);
55 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
56 __inner(
57 __receiver,
58 ::core::convert::Into::into(playable),
59 ::core::convert::Into::into(info),
60 ::core::convert::Into::into(player_data),
61 __mi,
62 )
63 }
64 }
65 }
66 #[doc = "`.ctor()` overload"]
67 fn ctor(self) -> () {
68 unsafe {
69 let __receiver = <MyRoomFadeBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70 ::unity::il2cpp_call!((::unity::module_base()+0x238ff50usize)as*mut u8,();
71(MyRoomFadeBehaviour)__receiver)
72 }
73 }
74}
75
76#[cfg(feature = "app-myroomfadebehaviour")]
77impl<__T: IMyRoomFadeBehaviour> IMyRoomFadeBehaviourMethods for __T {}
78
79#[cfg(feature = "app-myroomfadebehaviour")]
80impl MyRoomFadeBehaviour {
81 pub fn process_frame_method_info() -> &'static ::unity::il2cpp::MethodInfo {
82 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
83 }
84
85 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
86 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
87 }
88}
89
90#[cfg(feature = "app-myroomfadebehaviour")]
91impl MyRoomFadeBehaviour {
92 #[doc = "Direct (non-virtual) call to `MyRoomFadeBehaviour`'s own `ProcessFrame`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
93 pub unsafe fn process_frame(
94 this: impl ::core::convert::Into<::unity::IlInstance>,
95 playable: crate::unity_engine::playables::playable::Playable,
96 info: crate::unity_engine::playables::framedata::FrameData,
97 player_data: crate::system::object::Object,
98 ) -> () {
99 let __mi = Self::process_frame_method_info();
100 let __inner: extern "C" fn(
101 ::unity::IlInstance,
102 crate::unity_engine::playables::playable::Playable,
103 crate::unity_engine::playables::framedata::FrameData,
104 crate::system::object::Object,
105 ::unity::OptionalMethod,
106 ) -> () = ::core::mem::transmute(__mi.method_ptr);
107 __inner(this.into(), playable, info, player_data, ::core::option::Option::None)
108 }
109}
110
111#[cfg(feature = "app-myroomfadebehaviour")]
112impl MyRoomFadeBehaviour {
113 #[doc = "`.ctor()` — no args"]
114 pub fn new() -> Self {
115 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
116 panic!(
117 "{}
118::{}
119 failed to instantiate",
120 ::core::stringify!(MyRoomFadeBehaviour),
121 ::core::stringify!(new),
122 )
123 });
124 <Self as IMyRoomFadeBehaviourMethods>::ctor(this);
125 this
126 }
127}
128
129#[cfg(feature = "app-myroomfadebehaviour")]
130#[doc(hidden)]
131pub mod prelude {
132 pub use super::{IMyRoomFadeBehaviour, IMyRoomFadeBehaviourMethods, MyRoomFadeBehaviour};
133 #[cfg(feature = "system-object")]
134 pub use crate::system::object::IObjectMethods;
135 #[cfg(feature = "unity_engine-playables-playablebehaviour")]
136 pub use crate::unity_engine::playables::playablebehaviour::IPlayableBehaviourMethods;
137 pub use crate::{system::object::IObject, unity_engine::playables::playablebehaviour::IPlayableBehaviour};
138}