1#[cfg(feature = "combat-charactermove-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::{
10 object::{IObject, Object},
11 r#enum::{Enum, IEnum},
12 valuetype::{IValueType, ValueType},
13 },
14 unity_engine::{
15 behaviour::{Behaviour, IBehaviour},
16 component::{Component, IComponent},
17 monobehaviour::{IMonoBehaviour, MonoBehaviour},
18 object_2::{IObject_2, Object_2},
19 },
20 };
21
22 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/charactermove/CharacterMove_StartMode.md"))]
23 #[repr(C)]
24 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
25 pub struct CharacterMove_StartMode {
26 pub value: i32,
27 }
28 impl ::unity::ClassIdentity for CharacterMove_StartMode {
29 const NAME: &'static str = "CharacterMove.StartMode";
30 const NAMESPACE: &'static str = "Combat";
31
32 fn class() -> ::unity::Class {
33 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
34 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
35 }
36 }
37 impl ::unity::IlType for CharacterMove_StartMode {
38 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
39 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
40 }
41 }
42 impl CharacterMove_StartMode {
43 pub fn from_start() -> Self {
44 Self { value: 0 }
45 }
46
47 pub fn from_loop() -> Self {
48 Self { value: 1 }
49 }
50
51 pub fn from_max_speed() -> Self {
52 Self { value: 2 }
53 }
54 }
55
56 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/charactermove/CharacterMove_State.md"))]
57 #[repr(C)]
58 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
59 pub struct CharacterMove_State {
60 pub value: i32,
61 }
62 impl ::unity::ClassIdentity for CharacterMove_State {
63 const NAME: &'static str = "CharacterMove.State";
64 const NAMESPACE: &'static str = "Combat";
65
66 fn class() -> ::unity::Class {
67 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
68 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
69 }
70 }
71 impl ::unity::IlType for CharacterMove_State {
72 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
73 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
74 }
75 }
76 impl CharacterMove_State {
77 pub fn waiting() -> Self {
78 Self { value: 0 }
79 }
80
81 pub fn running() -> Self {
82 Self { value: 1 }
83 }
84
85 pub fn braking() -> Self {
86 Self { value: 2 }
87 }
88
89 pub fn jumping() -> Self {
90 Self { value: 3 }
91 }
92 }
93
94 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/charactermove/CharacterMove.md"))]
95 #[::unity::class(namespace = "Combat", name = "CharacterMove")]
96 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
97 pub struct CharacterMove {
98 #[offset(24)]
99 #[rename(name = "_cp")]
100 pub cp: crate::combat::character::Character,
101 #[offset(32)]
102 #[rename(name = "MaxRunSpeedKMPS")]
103 pub max_run_speed_kmps: f32,
104 #[offset(36)]
105 #[rename(name = "TimeToMaxSpeed")]
106 pub time_to_max_speed: f32,
107 #[offset(40)]
108 #[rename(name = "TimeToZero")]
109 pub time_to_zero: f32,
110 #[offset(44)]
111 #[rename(name = "HeightSmoothRatio")]
112 pub height_smooth_ratio: f32,
113 #[offset(48)]
114 #[rename(name = "StairInterpolationLimit")]
115 pub stair_interpolation_limit: f32,
116 #[offset(56)]
117 #[rename(name = "m_State")]
118 pub m_state: crate::combat::charactermove::CharacterMove_State,
119 #[offset(60)]
120 #[rename(name = "m_Goal")]
121 pub m_goal: crate::combat::fxz::FXZ,
122 #[offset(68)]
123 #[rename(name = "m_Velocity")]
124 pub m_velocity: f32,
125 #[offset(72)]
126 #[rename(name = "m_PrevY")]
127 pub m_prev_y: f32,
128 #[offset(80)]
129 #[rename(name = "m_Jump")]
130 pub m_jump: crate::combat::characterjump::CharacterJump,
131 }
132}
133
134#[cfg(feature = "combat-charactermove-types")]
135pub use __types::*;
136
137#[cfg(feature = "combat-charactermove")]
138pub trait ICharacterMoveMethods: ICharacterMove {
139 #[doc = "`get_CP()` overload"]
140 fn get_cp(self) -> crate::combat::character::Character {
141 unsafe {
142 let __receiver = <CharacterMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143 ::unity::il2cpp_call!((::unity::module_base()+0x25e6220usize)as*mut u8,crate::combat::character::Character;
144(CharacterMove)__receiver)
145 }
146 }
147 #[doc = "`get_MaxRunSpeed()` overload"]
148 fn get_max_run_speed(self) -> f32 {
149 unsafe {
150 let __receiver = <CharacterMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151 ::unity::il2cpp_call!((::unity::module_base()+0x25e62e0usize)as*mut u8,f32;
152(CharacterMove)__receiver)
153 }
154 }
155 #[doc = "`set_MaxRunSpeed(f32)` overload"]
156 fn set_max_run_speed(self, value: impl ::core::convert::Into<f32>) -> () {
157 unsafe {
158 let __receiver = <CharacterMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159 ::unity::il2cpp_call!((::unity::module_base()+0x25e62f0usize)as*mut u8,();
160(CharacterMove)__receiver,(f32)::core::convert::Into::into(value))
161 }
162 }
163 #[doc = "`get_Acceleration()` overload"]
164 fn get_acceleration(self) -> f32 {
165 unsafe {
166 let __receiver = <CharacterMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167 ::unity::il2cpp_call!((::unity::module_base()+0x25e6310usize)as*mut u8,f32;
168(CharacterMove)__receiver)
169 }
170 }
171 #[doc = "`get_Deceleration()` overload"]
172 fn get_deceleration(self) -> f32 {
173 unsafe {
174 let __receiver = <CharacterMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175 ::unity::il2cpp_call!((::unity::module_base()+0x25e6320usize)as*mut u8,f32;
176(CharacterMove)__receiver)
177 }
178 }
179 #[doc = "`Stabilize()` overload"]
180 fn stabilize(self) -> () {
181 unsafe {
182 let __receiver = <CharacterMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183 ::unity::il2cpp_call!((::unity::module_base()+0x25e6330usize)as*mut u8,();
184(CharacterMove)__receiver)
185 }
186 }
187 #[doc = "`Awake()` overload"]
188 fn awake(self) -> () {
189 unsafe {
190 let __receiver = <CharacterMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191 ::unity::il2cpp_call!((::unity::module_base()+0x25e6340usize)as*mut u8,();
192(CharacterMove)__receiver)
193 }
194 }
195 #[doc = "`LateUpdate()` overload"]
196 fn late_update(self) -> () {
197 unsafe {
198 let __receiver = <CharacterMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
199 ::unity::il2cpp_call!((::unity::module_base()+0x25e63d0usize)as*mut u8,();
200(CharacterMove)__receiver)
201 }
202 }
203 #[doc = "`WarpTo(crate::combat::fxz::FXZ)` overload"]
204 fn warp_to(self, goal: impl ::core::convert::Into<crate::combat::fxz::FXZ>) -> () {
205 unsafe {
206 let __receiver = <CharacterMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207 ::unity::il2cpp_call!((::unity::module_base()+0x25e65f0usize)as*mut u8,();
208(CharacterMove)__receiver,(crate::combat::fxz::FXZ)::core::convert::Into::into(goal))
209 }
210 }
211 #[doc = "`RunTo(crate::combat::fxz::FXZ, crate::combat::charactermove::CharacterMove_StartMode)` overload"]
212 fn run_to(
213 self,
214 goal: impl ::core::convert::Into<crate::combat::fxz::FXZ>,
215 mode: impl ::core::convert::Into<crate::combat::charactermove::CharacterMove_StartMode>,
216 ) -> () {
217 unsafe {
218 let __receiver = <CharacterMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
219 ::unity::il2cpp_call!((::unity::module_base()+0x25e66b0usize)as*mut u8,();
220(CharacterMove)__receiver,(crate::combat::fxz::FXZ)::core::convert::Into::into(goal),(crate::combat::charactermove::CharacterMove_StartMode)::core::convert::Into::into(mode))
221 }
222 }
223 #[doc = "`RunTo(crate::combat::fxz::FXZ, bool)` overload"]
224 fn run_to_2(self, goal: impl ::core::convert::Into<crate::combat::fxz::FXZ>, from_max_speed: impl ::core::convert::Into<bool>) -> () {
225 unsafe {
226 let __receiver = <CharacterMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
227 ::unity::il2cpp_call!((::unity::module_base()+0x25e67e0usize)as*mut u8,();
228(CharacterMove)__receiver,(crate::combat::fxz::FXZ)::core::convert::Into::into(goal),(bool)::core::convert::Into::into(from_max_speed))
229 }
230 }
231 #[doc = "`JumpTo(crate::unity_engine::vector3::Vector3, f32, bool)` overload"]
232 fn jump_to(
233 self,
234 goal: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
235 duration: impl ::core::convert::Into<f32>,
236 is_grounding: impl ::core::convert::Into<bool>,
237 ) -> () {
238 unsafe {
239 let __receiver = <CharacterMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
240 ::unity::il2cpp_call!((::unity::module_base()+0x25e67f0usize)as*mut u8,();
241(CharacterMove)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(goal),(f32)::core::convert::Into::into(duration),(bool)::core::convert::Into::into(is_grounding))
242 }
243 }
244 #[doc = "`JumpTo(crate::unity_engine::transform::Transform, crate::unity_engine::animationevent::AnimationEvent)` overload"]
245 fn jump_to_2(
246 self,
247 target: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
248 ev: impl ::core::convert::Into<crate::unity_engine::animationevent::AnimationEvent>,
249 ) -> () {
250 unsafe {
251 let __receiver = <CharacterMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
252 ::unity::il2cpp_call!((::unity::module_base()+0x25e6860usize)as*mut u8,();
253(CharacterMove)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(target),(crate::unity_engine::animationevent::AnimationEvent)::core::convert::Into::into(ev))
254 }
255 }
256 #[doc = "`Brake()` overload"]
257 fn brake(self) -> () {
258 unsafe {
259 let __receiver = <CharacterMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
260 ::unity::il2cpp_call!((::unity::module_base()+0x25e6910usize)as*mut u8,();
261(CharacterMove)__receiver)
262 }
263 }
264 #[doc = "`Stop()` overload"]
265 fn stop(self) -> () {
266 unsafe {
267 let __receiver = <CharacterMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
268 ::unity::il2cpp_call!((::unity::module_base()+0x25e6a10usize)as*mut u8,();
269(CharacterMove)__receiver)
270 }
271 }
272 #[doc = "`UpdateMoving()` overload"]
273 fn update_moving(self) -> () {
274 unsafe {
275 let __receiver = <CharacterMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
276 ::unity::il2cpp_call!((::unity::module_base()+0x25e6480usize)as*mut u8,();
277(CharacterMove)__receiver)
278 }
279 }
280 #[doc = "`UpdateRun()` overload"]
281 fn update_run(self) -> () {
282 unsafe {
283 let __receiver = <CharacterMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
284 ::unity::il2cpp_call!((::unity::module_base()+0x25e6b90usize)as*mut u8,();
285(CharacterMove)__receiver)
286 }
287 }
288 #[doc = "`UpdateRunBrake()` overload"]
289 fn update_run_brake(self) -> () {
290 unsafe {
291 let __receiver = <CharacterMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
292 ::unity::il2cpp_call!((::unity::module_base()+0x25e6c80usize)as*mut u8,();
293(CharacterMove)__receiver)
294 }
295 }
296 #[doc = "`AdvanceTimeAndGetDT()` overload"]
297 fn advance_time_and_get_dt(self) -> f32 {
298 unsafe {
299 let __receiver = <CharacterMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
300 ::unity::il2cpp_call!((::unity::module_base()+0x25e6d70usize)as*mut u8,f32;
301(CharacterMove)__receiver)
302 }
303 }
304 #[doc = "`UpdateJump()` overload"]
305 fn update_jump(self) -> () {
306 unsafe {
307 let __receiver = <CharacterMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
308 ::unity::il2cpp_call!((::unity::module_base()+0x25e6b00usize)as*mut u8,();
309(CharacterMove)__receiver)
310 }
311 }
312 #[doc = "`CalcTimeToArrive(f32, bool)` overload"]
313 fn calc_time_to_arrive(self, dist: impl ::core::convert::Into<f32>, run_max_speed: impl ::core::convert::Into<bool>) -> f32 {
314 unsafe {
315 let __receiver = <CharacterMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
316 ::unity::il2cpp_call!((::unity::module_base()+0x25e6e40usize)as*mut u8,f32;
317(CharacterMove)__receiver,(f32)::core::convert::Into::into(dist),(bool)::core::convert::Into::into(run_max_speed))
318 }
319 }
320 #[doc = "`.ctor()` overload"]
321 fn ctor(self) -> () {
322 unsafe {
323 let __receiver = <CharacterMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
324 ::unity::il2cpp_call!((::unity::module_base()+0x25e6f10usize)as*mut u8,();
325(CharacterMove)__receiver)
326 }
327 }
328}
329
330#[cfg(feature = "combat-charactermove")]
331impl<__T: ICharacterMove> ICharacterMoveMethods for __T {}
332
333#[cfg(feature = "combat-charactermove")]
334impl CharacterMove {
335 pub fn get_cp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
336 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
337 }
338
339 pub fn get_max_run_speed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
340 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
341 }
342
343 pub fn set_max_run_speed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
344 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
345 }
346
347 pub fn get_acceleration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
348 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
349 }
350
351 pub fn get_deceleration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
352 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
353 }
354
355 pub fn stabilize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
356 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
357 }
358
359 pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
360 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
361 }
362
363 pub fn late_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
364 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
365 }
366
367 pub fn warp_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
368 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
369 }
370
371 pub fn run_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
372 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
373 }
374
375 pub fn run_to_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
376 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
377 }
378
379 pub fn jump_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
380 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
381 }
382
383 pub fn jump_to_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
384 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
385 }
386
387 pub fn brake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
388 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
389 }
390
391 pub fn stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
392 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
393 }
394
395 pub fn update_moving_method_info() -> &'static ::unity::il2cpp::MethodInfo {
396 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
397 }
398
399 pub fn update_run_method_info() -> &'static ::unity::il2cpp::MethodInfo {
400 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
401 }
402
403 pub fn update_run_brake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
404 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
405 }
406
407 pub fn advance_time_and_get_dt_method_info() -> &'static ::unity::il2cpp::MethodInfo {
408 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
409 }
410
411 pub fn update_jump_method_info() -> &'static ::unity::il2cpp::MethodInfo {
412 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
413 }
414
415 pub fn calc_time_to_arrive_method_info() -> &'static ::unity::il2cpp::MethodInfo {
416 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
417 }
418
419 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
420 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
421 }
422}
423
424#[cfg(feature = "combat-charactermove")]
425impl CharacterMove {
426 #[doc = "`.ctor()` — no args"]
427 pub fn new() -> Self {
428 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
429 panic!(
430 "{}
431::{}
432 failed to instantiate",
433 ::core::stringify!(CharacterMove),
434 ::core::stringify!(new),
435 )
436 });
437 <Self as ICharacterMoveMethods>::ctor(this);
438 this
439 }
440}
441
442#[cfg(feature = "combat-charactermove")]
443#[doc(hidden)]
444pub mod prelude {
445 pub use super::{CharacterMove, CharacterMove_StartMode, CharacterMove_State, ICharacterMove, ICharacterMoveMethods};
446 #[cfg(feature = "system-object")]
447 pub use crate::system::object::IObjectMethods;
448 #[cfg(feature = "system-enum")]
449 pub use crate::system::r#enum::IEnumMethods;
450 #[cfg(feature = "system-valuetype")]
451 pub use crate::system::valuetype::IValueTypeMethods;
452 #[cfg(feature = "unity_engine-behaviour")]
453 pub use crate::unity_engine::behaviour::IBehaviourMethods;
454 #[cfg(feature = "unity_engine-component")]
455 pub use crate::unity_engine::component::IComponentMethods;
456 #[cfg(feature = "unity_engine-monobehaviour")]
457 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
458 #[cfg(feature = "unity_engine-object_2")]
459 pub use crate::unity_engine::object_2::IObject_2Methods;
460 pub use crate::{
461 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
462 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
463 };
464}