engage/generated/app/
cutsceneeventreceiver.rs1#[cfg(feature = "app-cutsceneeventreceiver-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::{
11 behaviour::{Behaviour, IBehaviour},
12 component::{Component, IComponent},
13 monobehaviour::{IMonoBehaviour, MonoBehaviour},
14 object_2::{IObject_2, Object_2},
15 },
16 };
17
18 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/cutsceneeventreceiver/CutSceneEventReceiver.md"))]
19 #[::unity::class(namespace = "App", name = "CutSceneEventReceiver")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct CutSceneEventReceiver {}
22}
23
24#[cfg(feature = "app-cutsceneeventreceiver-types")]
25pub use __types::*;
26
27#[cfg(feature = "app-cutsceneeventreceiver")]
28pub trait ICutSceneEventReceiverMethods: ICutSceneEventReceiver {
29 #[doc = "`OnNotify(crate::unity_engine::playables::playable::Playable, crate::unity_engine::playables::inotification::INotification, crate::system::object::Object)` overload"]
30 fn on_notify(
31 self,
32 origin: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>,
33 notification: impl ::core::convert::Into<crate::unity_engine::playables::inotification::INotification>,
34 context: impl ::core::convert::Into<crate::system::object::Object>,
35 ) -> () {
36 unsafe {
37 let __receiver = <CutSceneEventReceiver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38 {
39 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
40 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
41 panic!(
42 "unity: virtual slot {}
43 out of range (vtable len {}
44) on the runtime class behind {}
45 (method `{}
46`)",
47 4usize,
48 __vt.len(),
49 <CutSceneEventReceiver as ::unity::ClassIdentity>::NAME,
50 "OnNotify",
51 )
52 });
53 let __inner: extern "C" fn(
54 CutSceneEventReceiver,
55 crate::unity_engine::playables::playable::Playable,
56 crate::unity_engine::playables::inotification::INotification,
57 crate::system::object::Object,
58 ::unity::OptionalMethod,
59 ) -> () = ::core::mem::transmute(__vi.method_ptr);
60 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
61 __inner(
62 __receiver,
63 ::core::convert::Into::into(origin),
64 ::core::convert::Into::into(notification),
65 ::core::convert::Into::into(context),
66 __mi,
67 )
68 }
69 }
70 }
71 #[doc = "`OnNotifySpringResestMarker(crate::app::cutscenespringresetmarker::CutSceneSpringResetMarker)` overload"]
72 fn on_notify_spring_resest_marker(
73 self,
74 spring_marker: impl ::core::convert::Into<crate::app::cutscenespringresetmarker::CutSceneSpringResetMarker>,
75 ) -> () {
76 unsafe {
77 let __receiver = <CutSceneEventReceiver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78 ::unity::il2cpp_call!((::unity::module_base()+0x29f3140usize)as*mut u8,();
79(CutSceneEventReceiver)__receiver,(crate::app::cutscenespringresetmarker::CutSceneSpringResetMarker)::core::convert::Into::into(spring_marker))
80 }
81 }
82 #[doc = "`.ctor()` overload"]
83 fn ctor(self) -> () {
84 unsafe {
85 let __receiver = <CutSceneEventReceiver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86 ::unity::il2cpp_call!((::unity::module_base()+0x29f31f0usize)as*mut u8,();
87(CutSceneEventReceiver)__receiver)
88 }
89 }
90}
91
92#[cfg(feature = "app-cutsceneeventreceiver")]
93impl<__T: ICutSceneEventReceiver> ICutSceneEventReceiverMethods for __T {}
94
95#[cfg(feature = "app-cutsceneeventreceiver")]
96impl CutSceneEventReceiver {
97 pub fn on_notify_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
99 }
100
101 pub fn on_notify_spring_resest_marker_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
103 }
104
105 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
107 }
108}
109
110#[cfg(feature = "app-cutsceneeventreceiver")]
111impl CutSceneEventReceiver {
112 #[doc = "Direct (non-virtual) call to `CutSceneEventReceiver`'s own `OnNotify`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
113 pub unsafe fn on_notify(
114 this: impl ::core::convert::Into<::unity::IlInstance>,
115 origin: crate::unity_engine::playables::playable::Playable,
116 notification: crate::unity_engine::playables::inotification::INotification,
117 context: crate::system::object::Object,
118 ) -> () {
119 let __mi = Self::on_notify_method_info();
120 let __inner: extern "C" fn(
121 ::unity::IlInstance,
122 crate::unity_engine::playables::playable::Playable,
123 crate::unity_engine::playables::inotification::INotification,
124 crate::system::object::Object,
125 ::unity::OptionalMethod,
126 ) -> () = ::core::mem::transmute(__mi.method_ptr);
127 __inner(this.into(), origin, notification, context, ::core::option::Option::None)
128 }
129}
130
131#[cfg(feature = "app-cutsceneeventreceiver")]
132impl CutSceneEventReceiver {
133 #[doc = "`.ctor()` — no args"]
134 pub fn new() -> Self {
135 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
136 panic!(
137 "{}
138::{}
139 failed to instantiate",
140 ::core::stringify!(CutSceneEventReceiver),
141 ::core::stringify!(new),
142 )
143 });
144 <Self as ICutSceneEventReceiverMethods>::ctor(this);
145 this
146 }
147}
148
149#[cfg(feature = "app-cutsceneeventreceiver")]
150#[doc(hidden)]
151pub mod prelude {
152 pub use super::{CutSceneEventReceiver, ICutSceneEventReceiver, ICutSceneEventReceiverMethods};
153 #[cfg(feature = "system-object")]
154 pub use crate::system::object::IObjectMethods;
155 #[cfg(feature = "unity_engine-behaviour")]
156 pub use crate::unity_engine::behaviour::IBehaviourMethods;
157 #[cfg(feature = "unity_engine-component")]
158 pub use crate::unity_engine::component::IComponentMethods;
159 #[cfg(feature = "unity_engine-monobehaviour")]
160 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
161 #[cfg(feature = "unity_engine-object_2")]
162 pub use crate::unity_engine::object_2::IObject_2Methods;
163 pub use crate::{
164 system::object::IObject,
165 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
166 };
167}