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