Skip to main content

engage/generated/combat/
combattimespace.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-combattimespace-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/combattimespace/CombatTimespace.md"))]
19    #[::unity::class(namespace = "Combat", name = "CombatTimespace")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct CombatTimespace {
22        #[static_field]
23        #[rename(name = "s_time")]
24        pub s_time: f32,
25        #[static_field]
26        #[rename(name = "EditorPrefsName")]
27        pub editor_prefs_name: ::unity::Il2CppString,
28        #[offset(40)]
29        #[rename(name = "HitStopSpeedCurve")]
30        pub hit_stop_speed_curve: crate::unity_engine::animationcurve::AnimationCurve,
31        #[offset(48)]
32        #[rename(name = "EvasionSpeedCurve")]
33        pub evasion_speed_curve: crate::unity_engine::animationcurve::AnimationCurve,
34        #[offset(56)]
35        #[rename(name = "SkillDisplayFreezeDuration")]
36        pub skill_display_freeze_duration: f32,
37        #[offset(60)]
38        #[rename(name = "BossKilledHitStopTime")]
39        pub boss_killed_hit_stop_time: f32,
40        #[offset(64)]
41        #[rename(name = "BossKilledTimeScale")]
42        pub boss_killed_time_scale: f32,
43        #[offset(68)]
44        #[rename(name = "BossKilledTimeScaleDuration")]
45        pub boss_killed_time_scale_duration: f32,
46        #[offset(96)]
47        #[rename(name = "isCombatSkipped")]
48        pub is_combat_skipped: bool,
49    }
50}
51
52#[cfg(feature = "combat-combattimespace-types")]
53pub use __types::*;
54
55#[cfg(feature = "combat-combattimespace")]
56impl CombatTimespace {
57    #[doc = "`get_SmoothDeltaTime()` overload"]
58    pub fn get_smooth_delta_time() -> f32 {
59        unsafe {
60            ::unity::il2cpp_call!((::unity::module_base()+0x2933300usize)as*mut u8,f32;
61            )
62        }
63    }
64
65    #[doc = "`get_Time()` overload"]
66    pub fn get_time() -> f32 {
67        unsafe {
68            ::unity::il2cpp_call!((::unity::module_base()+0x2933350usize)as*mut u8,f32;
69            )
70        }
71    }
72
73    #[doc = "`GetCharactersTotalTimeScale()` overload"]
74    pub fn get_characters_total_time_scale() -> f32 {
75        unsafe {
76            ::unity::il2cpp_call!((::unity::module_base()+0x2933b00usize)as*mut u8,f32;
77            )
78        }
79    }
80
81    #[doc = "`SimulatePhysics(f32, f32)` overload"]
82    pub fn simulate_physics(total_time: impl ::core::convert::Into<f32>, delta_time: impl ::core::convert::Into<f32>) -> () {
83        unsafe {
84            ::unity::il2cpp_call!((::unity::module_base()+0x292fd60usize)as*mut u8,();
85(f32)::core::convert::Into::into(total_time),(f32)::core::convert::Into::into(delta_time))
86        }
87    }
88}
89
90#[cfg(feature = "combat-combattimespace")]
91pub trait ICombatTimespaceMethods: ICombatTimespace {
92    #[doc = "`get_debugTimeScale()` overload"]
93    fn get_debug_time_scale(self) -> f32 {
94        unsafe {
95            let __receiver = <CombatTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96            ::unity::il2cpp_call!((::unity::module_base()+0x29333c0usize)as*mut u8,f32;
97(CombatTimespace)__receiver)
98        }
99    }
100    #[doc = "`set_debugTimeScale(f32)` overload"]
101    fn set_debug_time_scale(self, value: impl ::core::convert::Into<f32>) -> () {
102        unsafe {
103            let __receiver = <CombatTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104            ::unity::il2cpp_call!((::unity::module_base()+0x2933410usize)as*mut u8,();
105(CombatTimespace)__receiver,(f32)::core::convert::Into::into(value))
106        }
107    }
108    #[doc = "`get_HitStop()` overload"]
109    fn get_hit_stop(self) -> crate::combat::hitstop::HitStop {
110        unsafe {
111            let __receiver = <CombatTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112            ::unity::il2cpp_call!((::unity::module_base()+0x2933480usize)as*mut u8,crate::combat::hitstop::HitStop;
113(CombatTimespace)__receiver)
114        }
115    }
116    #[doc = "`set_HitStop(crate::combat::hitstop::HitStop)` overload"]
117    fn set_hit_stop(self, value: impl ::core::convert::Into<crate::combat::hitstop::HitStop>) -> () {
118        unsafe {
119            let __receiver = <CombatTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120            ::unity::il2cpp_call!((::unity::module_base()+0x2933490usize)as*mut u8,();
121(CombatTimespace)__receiver,(crate::combat::hitstop::HitStop)::core::convert::Into::into(value))
122        }
123    }
124    #[doc = "`get_EvasionSpeed()` overload"]
125    fn get_evasion_speed(self) -> crate::combat::evasionspeed::EvasionSpeed {
126        unsafe {
127            let __receiver = <CombatTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128            ::unity::il2cpp_call!((::unity::module_base()+0x29334a0usize)as*mut u8,crate::combat::evasionspeed::EvasionSpeed;
129(CombatTimespace)__receiver)
130        }
131    }
132    #[doc = "`set_EvasionSpeed(crate::combat::evasionspeed::EvasionSpeed)` overload"]
133    fn set_evasion_speed(self, value: impl ::core::convert::Into<crate::combat::evasionspeed::EvasionSpeed>) -> () {
134        unsafe {
135            let __receiver = <CombatTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136            ::unity::il2cpp_call!((::unity::module_base()+0x29334b0usize)as*mut u8,();
137(CombatTimespace)__receiver,(crate::combat::evasionspeed::EvasionSpeed)::core::convert::Into::into(value))
138        }
139    }
140    #[doc = "`get_PresentationTimeScale()` overload"]
141    fn get_presentation_time_scale(self) -> f32 {
142        unsafe {
143            let __receiver = <CombatTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144            ::unity::il2cpp_call!((::unity::module_base()+0x29334c0usize)as*mut u8,f32;
145(CombatTimespace)__receiver)
146        }
147    }
148    #[doc = "`set_PresentationTimeScale(f32)` overload"]
149    fn set_presentation_time_scale(self, value: impl ::core::convert::Into<f32>) -> () {
150        unsafe {
151            let __receiver = <CombatTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
152            ::unity::il2cpp_call!((::unity::module_base()+0x29334d0usize)as*mut u8,();
153(CombatTimespace)__receiver,(f32)::core::convert::Into::into(value))
154        }
155    }
156    #[doc = "`get_SkillDisplayTimeScale()` overload"]
157    fn get_skill_display_time_scale(self) -> f32 {
158        unsafe {
159            let __receiver = <CombatTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
160            ::unity::il2cpp_call!((::unity::module_base()+0x29334e0usize)as*mut u8,f32;
161(CombatTimespace)__receiver)
162        }
163    }
164    #[doc = "`set_SkillDisplayTimeScale(f32)` overload"]
165    fn set_skill_display_time_scale(self, value: impl ::core::convert::Into<f32>) -> () {
166        unsafe {
167            let __receiver = <CombatTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
168            ::unity::il2cpp_call!((::unity::module_base()+0x29334f0usize)as*mut u8,();
169(CombatTimespace)__receiver,(f32)::core::convert::Into::into(value))
170        }
171    }
172    #[doc = "`get_UserFastForwardTimeScale()` overload"]
173    fn get_user_fast_forward_time_scale(self) -> f32 {
174        unsafe {
175            let __receiver = <CombatTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
176            ::unity::il2cpp_call!((::unity::module_base()+0x2933500usize)as*mut u8,f32;
177(CombatTimespace)__receiver)
178        }
179    }
180    #[doc = "`set_UserFastForwardTimeScale(f32)` overload"]
181    fn set_user_fast_forward_time_scale(self, value: impl ::core::convert::Into<f32>) -> () {
182        unsafe {
183            let __receiver = <CombatTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
184            ::unity::il2cpp_call!((::unity::module_base()+0x2933510usize)as*mut u8,();
185(CombatTimespace)__receiver,(f32)::core::convert::Into::into(value))
186        }
187    }
188    #[doc = "`get_FinalTimeScale()` overload"]
189    fn get_final_time_scale(self) -> f32 {
190        unsafe {
191            let __receiver = <CombatTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
192            ::unity::il2cpp_call!((::unity::module_base()+0x2933520usize)as*mut u8,f32;
193(CombatTimespace)__receiver)
194        }
195    }
196    #[doc = "`set_FinalTimeScale(f32)` overload"]
197    fn set_final_time_scale(self, value: impl ::core::convert::Into<f32>) -> () {
198        unsafe {
199            let __receiver = <CombatTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
200            ::unity::il2cpp_call!((::unity::module_base()+0x2933530usize)as*mut u8,();
201(CombatTimespace)__receiver,(f32)::core::convert::Into::into(value))
202        }
203    }
204    #[doc = "`MultiplyToWorldTimeScale(f32)` overload"]
205    fn multiply_to_world_time_scale(self, scale: impl ::core::convert::Into<f32>) -> () {
206        unsafe {
207            let __receiver = <CombatTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
208            ::unity::il2cpp_call!((::unity::module_base()+0x2933540usize)as*mut u8,();
209(CombatTimespace)__receiver,(f32)::core::convert::Into::into(scale))
210        }
211    }
212    #[doc = "`Reset()` overload"]
213    fn reset(self) -> () {
214        unsafe {
215            let __receiver = <CombatTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
216            ::unity::il2cpp_call!((::unity::module_base()+0x2933670usize)as*mut u8,();
217(CombatTimespace)__receiver)
218        }
219    }
220    #[doc = "`ResetWorldAndUserTimeScale()` overload"]
221    fn reset_world_and_user_time_scale(self) -> () {
222        unsafe {
223            let __receiver = <CombatTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
224            ::unity::il2cpp_call!((::unity::module_base()+0x292fed0usize)as*mut u8,();
225(CombatTimespace)__receiver)
226        }
227    }
228    #[doc = "`Start()` overload"]
229    fn start(self) -> () {
230        unsafe {
231            let __receiver = <CombatTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
232            ::unity::il2cpp_call!((::unity::module_base()+0x2933690usize)as*mut u8,();
233(CombatTimespace)__receiver)
234        }
235    }
236    #[doc = "`InternalGUI()` overload"]
237    fn internal_gui(self) -> () {
238        unsafe {
239            let __receiver = <CombatTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
240            ::unity::il2cpp_call!((::unity::module_base()+0x29337c0usize)as*mut u8,();
241(CombatTimespace)__receiver)
242        }
243    }
244    #[doc = "`OnDestroy()` overload"]
245    fn on_destroy(self) -> () {
246        unsafe {
247            let __receiver = <CombatTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
248            ::unity::il2cpp_call!((::unity::module_base()+0x2933920usize)as*mut u8,();
249(CombatTimespace)__receiver)
250        }
251    }
252    #[doc = "`Update()` overload"]
253    fn update(self) -> () {
254        unsafe {
255            let __receiver = <CombatTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
256            ::unity::il2cpp_call!((::unity::module_base()+0x29339b0usize)as*mut u8,();
257(CombatTimespace)__receiver)
258        }
259    }
260    #[doc = "`.ctor()` overload"]
261    fn ctor(self) -> () {
262        unsafe {
263            let __receiver = <CombatTimespace as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
264            ::unity::il2cpp_call!((::unity::module_base()+0x2933c70usize)as*mut u8,();
265(CombatTimespace)__receiver)
266        }
267    }
268}
269
270#[cfg(feature = "combat-combattimespace")]
271impl<__T: ICombatTimespace> ICombatTimespaceMethods for __T {}
272
273#[cfg(feature = "combat-combattimespace")]
274impl CombatTimespace {
275    pub fn get_smooth_delta_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
277    }
278
279    pub fn get_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
281    }
282
283    pub fn get_debug_time_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
284        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
285    }
286
287    pub fn set_debug_time_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
288        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
289    }
290
291    pub fn get_hit_stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
292        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
293    }
294
295    pub fn set_hit_stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
296        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
297    }
298
299    pub fn get_evasion_speed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
300        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
301    }
302
303    pub fn set_evasion_speed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
304        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
305    }
306
307    pub fn get_presentation_time_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
308        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
309    }
310
311    pub fn set_presentation_time_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
312        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
313    }
314
315    pub fn get_skill_display_time_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
316        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
317    }
318
319    pub fn set_skill_display_time_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
320        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
321    }
322
323    pub fn get_user_fast_forward_time_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
324        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
325    }
326
327    pub fn set_user_fast_forward_time_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
328        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
329    }
330
331    pub fn get_final_time_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
332        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
333    }
334
335    pub fn set_final_time_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
336        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
337    }
338
339    pub fn multiply_to_world_time_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
340        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
341    }
342
343    pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
344        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
345    }
346
347    pub fn reset_world_and_user_time_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
348        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
349    }
350
351    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
352        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
353    }
354
355    pub fn internal_gui_method_info() -> &'static ::unity::il2cpp::MethodInfo {
356        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
357    }
358
359    pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
360        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
361    }
362
363    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
364        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
365    }
366
367    pub fn get_characters_total_time_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
368        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
369    }
370
371    pub fn simulate_physics_method_info() -> &'static ::unity::il2cpp::MethodInfo {
372        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
373    }
374
375    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
376        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
377    }
378}
379
380#[cfg(feature = "combat-combattimespace")]
381impl CombatTimespace {
382    #[doc = "`.ctor()` — no args"]
383    pub fn new() -> Self {
384        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
385            panic!(
386                "{}
387::{}
388 failed to instantiate",
389                ::core::stringify!(CombatTimespace),
390                ::core::stringify!(new),
391            )
392        });
393        <Self as ICombatTimespaceMethods>::ctor(this);
394        this
395    }
396}
397
398#[cfg(feature = "combat-combattimespace")]
399#[doc(hidden)]
400pub mod prelude {
401    pub use super::{CombatTimespace, ICombatTimespace, ICombatTimespaceMethods};
402    #[cfg(feature = "system-object")]
403    pub use crate::system::object::IObjectMethods;
404    #[cfg(feature = "unity_engine-behaviour")]
405    pub use crate::unity_engine::behaviour::IBehaviourMethods;
406    #[cfg(feature = "unity_engine-component")]
407    pub use crate::unity_engine::component::IComponentMethods;
408    #[cfg(feature = "unity_engine-monobehaviour")]
409    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
410    #[cfg(feature = "unity_engine-object_2")]
411    pub use crate::unity_engine::object_2::IObject_2Methods;
412    pub use crate::{
413        system::object::IObject,
414        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
415    };
416}