1#[cfg(feature = "combat-charactertimespace-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/combat/charactertimespace/CharacterTimespace.md"))]
19 #[::unity::class(namespace = "Combat", name = "CharacterTimespace")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct CharacterTimespace {
22 #[offset(24)]
23 #[rename(name = "_cp")]
24 pub cp: crate::combat::character::Character,
25 #[offset(36)]
26 #[rename(name = "DefaultPlayBackRate")]
27 pub default_play_back_rate: f32,
28 #[offset(48)]
29 #[rename(name = "m_bImpactAdjustReserved")]
30 pub m_b_impact_adjust_reserved: bool,
31 #[offset(49)]
32 #[rename(name = "m_bImpactAdjust命中信号実行")]
33 pub m_b_impact_adjust命中信号実行: bool,
34 #[offset(50)]
35 #[rename(name = "m_bImpactAdjust連続実行防止")]
36 pub m_b_impact_adjust連続実行防止: bool,
37 #[offset(52)]
38 #[rename(name = "m_ImpactAdjustWorldTime")]
39 pub m_impact_adjust_world_time: f32,
40 #[offset(56)]
41 #[rename(name = "IsStartCalled")]
42 pub is_start_called: bool,
43 }
44}
45
46#[cfg(feature = "combat-charactertimespace-types")]
47pub use __types::*;
48
49#[cfg(feature = "combat-charactertimespace")]
50impl CharacterTimespace {
51 #[doc = "`CalcTimespanInRealtime(::unity::Array<crate::unity_engine::animationevent::AnimationEvent>, f32, f32, f32, f32)` overload"]
52 pub fn calc_timespan_in_realtime(
53 events: impl ::core::convert::Into<::unity::Array<crate::unity_engine::animationevent::AnimationEvent>>,
54 heaviness_rate: impl ::core::convert::Into<f32>,
55 agility_rate: impl ::core::convert::Into<f32>,
56 start_time: impl ::core::convert::Into<f32>,
57 end_time: impl ::core::convert::Into<f32>,
58 ) -> f32 {
59 unsafe {
60 ::unity::il2cpp_call!((::unity::module_base()+0x25f26e0usize)as*mut u8,f32;
61(::unity::Array<crate::unity_engine::animationevent::AnimationEvent>)::core::convert::Into::into(events),(f32)::core::convert::Into::into(heaviness_rate),(f32)::core::convert::Into::into(agility_rate),(f32)::core::convert::Into::into(start_time),(f32)::core::convert::Into::into(end_time))
62 }
63 }
64}
65
66#[cfg(feature = "combat-charactertimespace")]
67pub trait ICharacterTimespaceMethods: ICharacterTimespace {
68 #[doc = "`get_CP()` overload"]
69 fn get_cp(self) -> crate::combat::character::Character {
70 unsafe {
71 let __receiver = <CharacterTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72 ::unity::il2cpp_call!((::unity::module_base()+0x25f1f70usize)as*mut u8,crate::combat::character::Character;
73(CharacterTimespace)__receiver)
74 }
75 }
76 #[doc = "`get_PlaybackRate()` overload"]
77 fn get_playback_rate(self) -> f32 {
78 unsafe {
79 let __receiver = <CharacterTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 ::unity::il2cpp_call!((::unity::module_base()+0x25f2030usize)as*mut u8,f32;
81(CharacterTimespace)__receiver)
82 }
83 }
84 #[doc = "`set_PlaybackRate(f32)` overload"]
85 fn set_playback_rate(self, value: impl ::core::convert::Into<f32>) -> () {
86 unsafe {
87 let __receiver = <CharacterTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88 ::unity::il2cpp_call!((::unity::module_base()+0x25f2040usize)as*mut u8,();
89(CharacterTimespace)__receiver,(f32)::core::convert::Into::into(value))
90 }
91 }
92 #[doc = "`get_DeltaTime()` overload"]
93 fn get_delta_time(self) -> f32 {
94 unsafe {
95 let __receiver = <CharacterTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96 ::unity::il2cpp_call!((::unity::module_base()+0x25e5020usize)as*mut u8,f32;
97(CharacterTimespace)__receiver)
98 }
99 }
100 #[doc = "`get_SmoothDeltaTime()` overload"]
101 fn get_smooth_delta_time(self) -> f32 {
102 unsafe {
103 let __receiver = <CharacterTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104 ::unity::il2cpp_call!((::unity::module_base()+0x25e6de0usize)as*mut u8,f32;
105(CharacterTimespace)__receiver)
106 }
107 }
108 #[doc = "`get_PerAnimationPlaybackRate()` overload"]
109 fn get_per_animation_playback_rate(self) -> f32 {
110 unsafe {
111 let __receiver = <CharacterTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112 ::unity::il2cpp_call!((::unity::module_base()+0x25f2050usize)as*mut u8,f32;
113(CharacterTimespace)__receiver)
114 }
115 }
116 #[doc = "`set_PerAnimationPlaybackRate(f32)` overload"]
117 fn set_per_animation_playback_rate(self, value: impl ::core::convert::Into<f32>) -> () {
118 unsafe {
119 let __receiver = <CharacterTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120 ::unity::il2cpp_call!((::unity::module_base()+0x25f2060usize)as*mut u8,();
121(CharacterTimespace)__receiver,(f32)::core::convert::Into::into(value))
122 }
123 }
124 #[doc = "`get_SignalWorldTimeScale()` overload"]
125 fn get_signal_world_time_scale(self) -> f32 {
126 unsafe {
127 let __receiver = <CharacterTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128 ::unity::il2cpp_call!((::unity::module_base()+0x25f2070usize)as*mut u8,f32;
129(CharacterTimespace)__receiver)
130 }
131 }
132 #[doc = "`set_SignalWorldTimeScale(f32)` overload"]
133 fn set_signal_world_time_scale(self, value: impl ::core::convert::Into<f32>) -> () {
134 unsafe {
135 let __receiver = <CharacterTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136 ::unity::il2cpp_call!((::unity::module_base()+0x25f2080usize)as*mut u8,();
137(CharacterTimespace)__receiver,(f32)::core::convert::Into::into(value))
138 }
139 }
140 #[doc = "`get_MotionSpeed()` overload"]
141 fn get_motion_speed(self) -> f32 {
142 unsafe {
143 let __receiver = <CharacterTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144 ::unity::il2cpp_call!((::unity::module_base()+0x25f2090usize)as*mut u8,f32;
145(CharacterTimespace)__receiver)
146 }
147 }
148 #[doc = "`ResetPerPlay()` overload"]
149 fn reset_per_play(self) -> () {
150 unsafe {
151 let __receiver = <CharacterTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
152 ::unity::il2cpp_call!((::unity::module_base()+0x25f20a0usize)as*mut u8,();
153(CharacterTimespace)__receiver)
154 }
155 }
156 #[doc = "`SetImpactAdjust(bool)` overload"]
157 fn set_impact_adjust(self, 命中先行呼び出しする: impl ::core::convert::Into<bool>) -> () {
158 unsafe {
159 let __receiver = <CharacterTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
160 ::unity::il2cpp_call!((::unity::module_base()+0x25f20b0usize)as*mut u8,();
161(CharacterTimespace)__receiver,(bool)::core::convert::Into::into(命中先行呼び出しする))
162 }
163 }
164 #[doc = "`SetImpactAdjust(f32)` overload"]
165 fn set_impact_adjust_2(self, time: impl ::core::convert::Into<f32>) -> () {
166 unsafe {
167 let __receiver = <CharacterTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
168 ::unity::il2cpp_call!((::unity::module_base()+0x25f2100usize)as*mut u8,();
169(CharacterTimespace)__receiver,(f32)::core::convert::Into::into(time))
170 }
171 }
172 #[doc = "`RegisterSignalObservers()` overload"]
173 fn register_signal_observers(self) -> () {
174 unsafe {
175 let __receiver = <CharacterTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
176 ::unity::il2cpp_call!((::unity::module_base()+0x25f2120usize)as*mut u8,();
177(CharacterTimespace)__receiver)
178 }
179 }
180 #[doc = "`MyStart()` overload"]
181 fn my_start(self) -> () {
182 unsafe {
183 let __receiver = <CharacterTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
184 ::unity::il2cpp_call!((::unity::module_base()+0x25f2280usize)as*mut u8,();
185(CharacterTimespace)__receiver)
186 }
187 }
188 #[doc = "`Update()` overload"]
189 fn update(self) -> () {
190 unsafe {
191 let __receiver = <CharacterTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
192 ::unity::il2cpp_call!((::unity::module_base()+0x25f2290usize)as*mut u8,();
193(CharacterTimespace)__receiver)
194 }
195 }
196 #[doc = "`CalcTimespanInRealtime(f32, f32)` overload"]
197 fn calc_timespan_in_realtime_2(self, start_time: impl ::core::convert::Into<f32>, end_time: impl ::core::convert::Into<f32>) -> f32 {
198 unsafe {
199 let __receiver = <CharacterTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
200 ::unity::il2cpp_call!((::unity::module_base()+0x25f26f0usize)as*mut u8,f32;
201(CharacterTimespace)__receiver,(f32)::core::convert::Into::into(start_time),(f32)::core::convert::Into::into(end_time))
202 }
203 }
204 #[doc = "`CalcTimespanInRealtime(crate::combat::prefetchedsignal::PrefetchedSignal, f32, f32)` overload"]
205 fn calc_timespan_in_realtime_3(
206 self,
207 store: impl ::core::convert::Into<crate::combat::prefetchedsignal::PrefetchedSignal>,
208 start_time: impl ::core::convert::Into<f32>,
209 end_time: impl ::core::convert::Into<f32>,
210 ) -> f32 {
211 unsafe {
212 let __receiver = <CharacterTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213 ::unity::il2cpp_call!((::unity::module_base()+0x25f2770usize)as*mut u8,f32;
214(CharacterTimespace)__receiver,(crate::combat::prefetchedsignal::PrefetchedSignal)::core::convert::Into::into(store),(f32)::core::convert::Into::into(start_time),(f32)::core::convert::Into::into(end_time))
215 }
216 }
217 #[doc = "`.ctor()` overload"]
218 fn ctor(self) -> () {
219 unsafe {
220 let __receiver = <CharacterTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
221 ::unity::il2cpp_call!((::unity::module_base()+0x25f27e0usize)as*mut u8,();
222(CharacterTimespace)__receiver)
223 }
224 }
225}
226
227#[cfg(feature = "combat-charactertimespace")]
228impl<__T: ICharacterTimespace> ICharacterTimespaceMethods for __T {}
229
230#[cfg(feature = "combat-charactertimespace")]
231impl CharacterTimespace {
232 pub fn get_cp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
233 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
234 }
235
236 pub fn get_playback_rate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
237 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
238 }
239
240 pub fn set_playback_rate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
242 }
243
244 pub fn get_delta_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
245 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
246 }
247
248 pub fn get_smooth_delta_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
250 }
251
252 pub fn get_per_animation_playback_rate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
254 }
255
256 pub fn set_per_animation_playback_rate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
258 }
259
260 pub fn get_signal_world_time_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
262 }
263
264 pub fn set_signal_world_time_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
266 }
267
268 pub fn get_motion_speed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
270 }
271
272 pub fn reset_per_play_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
274 }
275
276 pub fn set_impact_adjust_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
278 }
279
280 pub fn set_impact_adjust_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
282 }
283
284 pub fn register_signal_observers_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
286 }
287
288 pub fn my_start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
290 }
291
292 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
294 }
295
296 pub fn calc_timespan_in_realtime_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
298 }
299
300 pub fn calc_timespan_in_realtime_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
302 }
303
304 pub fn calc_timespan_in_realtime_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
306 }
307
308 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
310 }
311}
312
313#[cfg(feature = "combat-charactertimespace")]
314impl CharacterTimespace {
315 #[doc = "`.ctor()` — no args"]
316 pub fn new() -> Self {
317 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
318 panic!(
319 "{}
320::{}
321 failed to instantiate",
322 ::core::stringify!(CharacterTimespace),
323 ::core::stringify!(new),
324 )
325 });
326 <Self as ICharacterTimespaceMethods>::ctor(this);
327 this
328 }
329}
330
331#[cfg(feature = "combat-charactertimespace")]
332#[doc(hidden)]
333pub mod prelude {
334 pub use super::{CharacterTimespace, ICharacterTimespace, ICharacterTimespaceMethods};
335 #[cfg(feature = "system-object")]
336 pub use crate::system::object::IObjectMethods;
337 #[cfg(feature = "unity_engine-behaviour")]
338 pub use crate::unity_engine::behaviour::IBehaviourMethods;
339 #[cfg(feature = "unity_engine-component")]
340 pub use crate::unity_engine::component::IComponentMethods;
341 #[cfg(feature = "unity_engine-monobehaviour")]
342 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
343 #[cfg(feature = "unity_engine-object_2")]
344 pub use crate::unity_engine::object_2::IObject_2Methods;
345 pub use crate::{
346 system::object::IObject,
347 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
348 };
349}