Skip to main content

engage/generated/app/
railendmarkerreciever.rs

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