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