Skip to main content

engage/generated/app/
hubmovestatemovespline.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-hubmovestatemovespline-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::hubmovestate::{HubMoveState, IHubMoveState},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/hubmovestatemovespline/HubMoveStateMoveSpline.md"))]
14    #[::unity::class(namespace = "App", name = "HubMoveStateMoveSpline")]
15    #[parent(crate::app::hubmovestate::HubMoveState)]
16    pub struct HubMoveStateMoveSpline {
17        #[offset(16)]
18        #[rename(name = "m_unit")]
19        pub m_unit: crate::app::hubunitcontroller::HubUnitController,
20        #[offset(24)]
21        #[rename(name = "m_data")]
22        pub m_data: ::unity::Array<crate::unity_engine::vector3::Vector3>,
23        #[offset(32)]
24        #[rename(name = "m_term")]
25        pub m_term: f32,
26        #[offset(40)]
27        #[rename(name = "m_bodyAnim")]
28        pub m_body_anim: ::unity::Il2CppString,
29        #[offset(48)]
30        #[rename(name = "m_faceAnim")]
31        pub m_face_anim: ::unity::Il2CppString,
32        #[offset(56)]
33        #[rename(name = "m_isTurn")]
34        pub m_is_turn: bool,
35        #[offset(57)]
36        #[rename(name = "m_resume")]
37        pub m_resume: bool,
38        #[offset(60)]
39        #[rename(name = "m_speed")]
40        pub m_speed: f32,
41    }
42}
43
44#[cfg(feature = "app-hubmovestatemovespline-types")]
45pub use __types::*;
46
47#[cfg(feature = "app-hubmovestatemovespline")]
48pub trait IHubMoveStateMoveSplineMethods: IHubMoveStateMoveSpline {
49    #[doc = "`.ctor(crate::app::hubunitcontroller::HubUnitController, ::unity::Array<crate::unity_engine::vector3::Vector3>, ::unity::Il2CppString, ::unity::Il2CppString, bool, f32)` overload"]
50    fn ctor(
51        self,
52        unit: impl ::core::convert::Into<crate::app::hubunitcontroller::HubUnitController>,
53        data: impl ::core::convert::Into<::unity::Array<crate::unity_engine::vector3::Vector3>>,
54        body_anim: impl ::core::convert::Into<::unity::Il2CppString>,
55        face_anim: impl ::core::convert::Into<::unity::Il2CppString>,
56        is_turn: impl ::core::convert::Into<bool>,
57        speed: impl ::core::convert::Into<f32>,
58    ) -> () {
59        unsafe {
60            let __receiver =
61                <HubMoveStateMoveSpline as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62            ::unity::il2cpp_call!((::unity::module_base()+0x23d2ef0usize)as*mut u8,();
63(HubMoveStateMoveSpline)__receiver,(crate::app::hubunitcontroller::HubUnitController)::core::convert::Into::into(unit),(::unity::Array<crate::unity_engine::vector3::Vector3>)::core::convert::Into::into(data),(::unity::Il2CppString)::core::convert::Into::into(body_anim),(::unity::Il2CppString)::core::convert::Into::into(face_anim),(bool)::core::convert::Into::into(is_turn),(f32)::core::convert::Into::into(speed))
64        }
65    }
66    #[doc = "`IsEnd()` overload"]
67    fn is_end(self) -> bool {
68        unsafe {
69            let __receiver =
70                <HubMoveStateMoveSpline as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71            {
72                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
73                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
74                    panic!(
75                        "unity: virtual slot {}
76 out of range (vtable len {}
77) on the runtime class behind {}
78 (method `{}
79`)",
80                        4usize,
81                        __vt.len(),
82                        <HubMoveStateMoveSpline as ::unity::ClassIdentity>::NAME,
83                        "IsEnd",
84                    )
85                });
86                let __inner: extern "C" fn(HubMoveStateMoveSpline, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
87                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
88                __inner(__receiver, __mi)
89            }
90        }
91    }
92    #[doc = "`Start(bool)` overload"]
93    fn start(self, resume: impl ::core::convert::Into<bool>) -> () {
94        unsafe {
95            let __receiver =
96                <HubMoveStateMoveSpline as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97            {
98                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
99                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
100                    panic!(
101                        "unity: virtual slot {}
102 out of range (vtable len {}
103) on the runtime class behind {}
104 (method `{}
105`)",
106                        5usize,
107                        __vt.len(),
108                        <HubMoveStateMoveSpline as ::unity::ClassIdentity>::NAME,
109                        "Start",
110                    )
111                });
112                let __inner: extern "C" fn(HubMoveStateMoveSpline, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
113                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
114                __inner(__receiver, ::core::convert::Into::into(resume), __mi)
115            }
116        }
117    }
118    #[doc = "`Update()` overload"]
119    fn update(self) -> () {
120        unsafe {
121            let __receiver =
122                <HubMoveStateMoveSpline as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123            {
124                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
125                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
126                    panic!(
127                        "unity: virtual slot {}
128 out of range (vtable len {}
129) on the runtime class behind {}
130 (method `{}
131`)",
132                        6usize,
133                        __vt.len(),
134                        <HubMoveStateMoveSpline as ::unity::ClassIdentity>::NAME,
135                        "Update",
136                    )
137                });
138                let __inner: extern "C" fn(HubMoveStateMoveSpline, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
139                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
140                __inner(__receiver, __mi)
141            }
142        }
143    }
144    #[doc = "`OnDrawGizmos()` overload"]
145    fn on_draw_gizmos(self) -> () {
146        unsafe {
147            let __receiver =
148                <HubMoveStateMoveSpline as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
149            {
150                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
151                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
152                    panic!(
153                        "unity: virtual slot {}
154 out of range (vtable len {}
155) on the runtime class behind {}
156 (method `{}
157`)",
158                        7usize,
159                        __vt.len(),
160                        <HubMoveStateMoveSpline as ::unity::ClassIdentity>::NAME,
161                        "OnDrawGizmos",
162                    )
163                });
164                let __inner: extern "C" fn(HubMoveStateMoveSpline, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
165                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
166                __inner(__receiver, __mi)
167            }
168        }
169    }
170}
171
172#[cfg(feature = "app-hubmovestatemovespline")]
173impl<__T: IHubMoveStateMoveSpline> IHubMoveStateMoveSplineMethods for __T {}
174
175#[cfg(feature = "app-hubmovestatemovespline")]
176impl HubMoveStateMoveSpline {
177    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
179    }
180
181    pub fn is_end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
183    }
184
185    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
187    }
188
189    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
191    }
192
193    pub fn on_draw_gizmos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
195    }
196}
197
198#[cfg(feature = "app-hubmovestatemovespline")]
199impl HubMoveStateMoveSpline {
200    #[doc = "Direct (non-virtual) call to `HubMoveStateMoveSpline`'s own `IsEnd`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
201    pub unsafe fn is_end(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
202        let __mi = Self::is_end_method_info();
203        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
204        __inner(this.into(), ::core::option::Option::None)
205    }
206
207    #[doc = "Direct (non-virtual) call to `HubMoveStateMoveSpline`'s own `Start`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
208    pub unsafe fn start(this: impl ::core::convert::Into<::unity::IlInstance>, resume: bool) -> () {
209        let __mi = Self::start_method_info();
210        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
211        __inner(this.into(), resume, ::core::option::Option::None)
212    }
213
214    #[doc = "Direct (non-virtual) call to `HubMoveStateMoveSpline`'s own `Update`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
215    pub unsafe fn update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
216        let __mi = Self::update_method_info();
217        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
218        __inner(this.into(), ::core::option::Option::None)
219    }
220
221    #[doc = "Direct (non-virtual) call to `HubMoveStateMoveSpline`'s own `OnDrawGizmos`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
222    pub unsafe fn on_draw_gizmos(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
223        let __mi = Self::on_draw_gizmos_method_info();
224        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
225        __inner(this.into(), ::core::option::Option::None)
226    }
227}
228
229#[cfg(feature = "app-hubmovestatemovespline")]
230impl HubMoveStateMoveSpline {
231    #[doc = "`.ctor(crate::app::hubunitcontroller::HubUnitController, ::unity::Array<crate::unity_engine::vector3::Vector3>, ::unity::Il2CppString, ::unity::Il2CppString, bool, f32)` — overload selector"]
232    pub fn new(
233        unit: crate::app::hubunitcontroller::HubUnitController,
234        data: ::unity::Array<crate::unity_engine::vector3::Vector3>,
235        body_anim: ::unity::Il2CppString,
236        face_anim: ::unity::Il2CppString,
237        is_turn: bool,
238        speed: f32,
239    ) -> Self {
240        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
241            panic!(
242                "{}
243::{}
244 failed to instantiate",
245                ::core::stringify!(HubMoveStateMoveSpline),
246                ::core::stringify!(new),
247            )
248        });
249        <Self as IHubMoveStateMoveSplineMethods>::ctor(this, unit, data, body_anim, face_anim, is_turn, speed);
250        this
251    }
252}
253
254#[cfg(feature = "app-hubmovestatemovespline")]
255#[doc(hidden)]
256pub mod prelude {
257    pub use super::{HubMoveStateMoveSpline, IHubMoveStateMoveSpline, IHubMoveStateMoveSplineMethods};
258    #[cfg(feature = "app-hubmovestate")]
259    pub use crate::app::hubmovestate::IHubMoveStateMethods;
260    #[cfg(feature = "system-object")]
261    pub use crate::system::object::IObjectMethods;
262    pub use crate::{app::hubmovestate::IHubMoveState, system::object::IObject};
263}