Skip to main content

engage/generated/app/
myroomeventreceiver.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-myroomeventreceiver-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/myroomeventreceiver/MyRoomEventReceiver.md"))]
19    #[::unity::class(namespace = "App", name = "MyRoomEventReceiver")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct MyRoomEventReceiver {}
22}
23
24#[cfg(feature = "app-myroomeventreceiver-types")]
25pub use __types::*;
26
27#[cfg(feature = "app-myroomeventreceiver")]
28pub trait IMyRoomEventReceiverMethods: IMyRoomEventReceiver {
29    #[doc = "`get_AdjustedTime()` overload"]
30    fn get_adjusted_time(self) -> f64 {
31        unsafe {
32            let __receiver = <MyRoomEventReceiver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
33            ::unity::il2cpp_call!((::unity::module_base()+0x238ee40usize)as*mut u8,f64;
34(MyRoomEventReceiver)__receiver)
35        }
36    }
37    #[doc = "`OnNotify(crate::unity_engine::playables::playable::Playable, crate::unity_engine::playables::inotification::INotification, crate::system::object::Object)` overload"]
38    fn on_notify(
39        self,
40        origin: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>,
41        notification: impl ::core::convert::Into<crate::unity_engine::playables::inotification::INotification>,
42        context: impl ::core::convert::Into<crate::system::object::Object>,
43    ) -> () {
44        unsafe {
45            let __receiver = <MyRoomEventReceiver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46            {
47                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
48                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
49                    panic!(
50                        "unity: virtual slot {}
51 out of range (vtable len {}
52) on the runtime class behind {}
53 (method `{}
54`)",
55                        4usize,
56                        __vt.len(),
57                        <MyRoomEventReceiver as ::unity::ClassIdentity>::NAME,
58                        "OnNotify",
59                    )
60                });
61                let __inner: extern "C" fn(
62                    MyRoomEventReceiver,
63                    crate::unity_engine::playables::playable::Playable,
64                    crate::unity_engine::playables::inotification::INotification,
65                    crate::system::object::Object,
66                    ::unity::OptionalMethod,
67                ) -> () = ::core::mem::transmute(__vi.method_ptr);
68                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
69                __inner(
70                    __receiver,
71                    ::core::convert::Into::into(origin),
72                    ::core::convert::Into::into(notification),
73                    ::core::convert::Into::into(context),
74                    __mi,
75                )
76            }
77        }
78    }
79    #[doc = "`OnNotifyEffectMarker(crate::app::myroomeffectmarker::MyRoomEffectMarker)` overload"]
80    fn on_notify_effect_marker(self, effect_marker: impl ::core::convert::Into<crate::app::myroomeffectmarker::MyRoomEffectMarker>) -> () {
81        unsafe {
82            let __receiver = <MyRoomEventReceiver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            ::unity::il2cpp_call!((::unity::module_base()+0x238f0a0usize)as*mut u8,();
84(MyRoomEventReceiver)__receiver,(crate::app::myroomeffectmarker::MyRoomEffectMarker)::core::convert::Into::into(effect_marker))
85        }
86    }
87    #[doc = "`OnNotifySEMarker(crate::app::myroomsemarker::MyRoomSEMarker)` overload"]
88    fn on_notify_se_marker(self, se_marker: impl ::core::convert::Into<crate::app::myroomsemarker::MyRoomSEMarker>) -> () {
89        unsafe {
90            let __receiver = <MyRoomEventReceiver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91            ::unity::il2cpp_call!((::unity::module_base()+0x238f2e0usize)as*mut u8,();
92(MyRoomEventReceiver)__receiver,(crate::app::myroomsemarker::MyRoomSEMarker)::core::convert::Into::into(se_marker))
93        }
94    }
95    #[doc = "`OnNotifyCameraMarker(crate::app::myroomcameramarker::MyRoomCameraMarker)` overload"]
96    fn on_notify_camera_marker(self, camera_marker: impl ::core::convert::Into<crate::app::myroomcameramarker::MyRoomCameraMarker>) -> () {
97        unsafe {
98            let __receiver = <MyRoomEventReceiver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            ::unity::il2cpp_call!((::unity::module_base()+0x238f3c0usize)as*mut u8,();
100(MyRoomEventReceiver)__receiver,(crate::app::myroomcameramarker::MyRoomCameraMarker)::core::convert::Into::into(camera_marker))
101        }
102    }
103    #[doc = "`OnNotifyLookingCameraMarker(crate::app::myroomlookingcameramarker::MyRoomLookingCameraMarker)` overload"]
104    fn on_notify_looking_camera_marker(
105        self,
106        looking_camera_marker: impl ::core::convert::Into<crate::app::myroomlookingcameramarker::MyRoomLookingCameraMarker>,
107    ) -> () {
108        unsafe {
109            let __receiver = <MyRoomEventReceiver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
110            ::unity::il2cpp_call!((::unity::module_base()+0x238f860usize)as*mut u8,();
111(MyRoomEventReceiver)__receiver,(crate::app::myroomlookingcameramarker::MyRoomLookingCameraMarker)::core::convert::Into::into(looking_camera_marker))
112        }
113    }
114    #[doc = "`.ctor()` overload"]
115    fn ctor(self) -> () {
116        unsafe {
117            let __receiver = <MyRoomEventReceiver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
118            ::unity::il2cpp_call!((::unity::module_base()+0x238fa80usize)as*mut u8,();
119(MyRoomEventReceiver)__receiver)
120        }
121    }
122}
123
124#[cfg(feature = "app-myroomeventreceiver")]
125impl<__T: IMyRoomEventReceiver> IMyRoomEventReceiverMethods for __T {}
126
127#[cfg(feature = "app-myroomeventreceiver")]
128impl MyRoomEventReceiver {
129    pub fn get_adjusted_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
131    }
132
133    pub fn on_notify_method_info() -> &'static ::unity::il2cpp::MethodInfo {
134        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
135    }
136
137    pub fn on_notify_effect_marker_method_info() -> &'static ::unity::il2cpp::MethodInfo {
138        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
139    }
140
141    pub fn on_notify_se_marker_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
143    }
144
145    pub fn on_notify_camera_marker_method_info() -> &'static ::unity::il2cpp::MethodInfo {
146        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
147    }
148
149    pub fn on_notify_looking_camera_marker_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
151    }
152
153    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
155    }
156}
157
158#[cfg(feature = "app-myroomeventreceiver")]
159impl MyRoomEventReceiver {
160    #[doc = "Direct (non-virtual) call to `MyRoomEventReceiver`'s own `OnNotify`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
161    pub unsafe fn on_notify(
162        this: impl ::core::convert::Into<::unity::IlInstance>,
163        origin: crate::unity_engine::playables::playable::Playable,
164        notification: crate::unity_engine::playables::inotification::INotification,
165        context: crate::system::object::Object,
166    ) -> () {
167        let __mi = Self::on_notify_method_info();
168        let __inner: extern "C" fn(
169            ::unity::IlInstance,
170            crate::unity_engine::playables::playable::Playable,
171            crate::unity_engine::playables::inotification::INotification,
172            crate::system::object::Object,
173            ::unity::OptionalMethod,
174        ) -> () = ::core::mem::transmute(__mi.method_ptr);
175        __inner(this.into(), origin, notification, context, ::core::option::Option::None)
176    }
177}
178
179#[cfg(feature = "app-myroomeventreceiver")]
180impl MyRoomEventReceiver {
181    #[doc = "`.ctor()` — no args"]
182    pub fn new() -> Self {
183        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
184            panic!(
185                "{}
186::{}
187 failed to instantiate",
188                ::core::stringify!(MyRoomEventReceiver),
189                ::core::stringify!(new),
190            )
191        });
192        <Self as IMyRoomEventReceiverMethods>::ctor(this);
193        this
194    }
195}
196
197#[cfg(feature = "app-myroomeventreceiver")]
198#[doc(hidden)]
199pub mod prelude {
200    pub use super::{IMyRoomEventReceiver, IMyRoomEventReceiverMethods, MyRoomEventReceiver};
201    #[cfg(feature = "system-object")]
202    pub use crate::system::object::IObjectMethods;
203    #[cfg(feature = "unity_engine-behaviour")]
204    pub use crate::unity_engine::behaviour::IBehaviourMethods;
205    #[cfg(feature = "unity_engine-component")]
206    pub use crate::unity_engine::component::IComponentMethods;
207    #[cfg(feature = "unity_engine-monobehaviour")]
208    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
209    #[cfg(feature = "unity_engine-object_2")]
210    pub use crate::unity_engine::object_2::IObject_2Methods;
211    pub use crate::{
212        system::object::IObject,
213        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
214    };
215}