Skip to main content

engage/generated/app/
hubmovestatemove.rs

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