Skip to main content

engage/generated/combat/
characterconfig.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-characterconfig-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/characterconfig/CharacterConfig.md"))]
19    #[::unity::class(namespace = "Combat", name = "CharacterConfig")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct CharacterConfig {
22        #[offset(24)]
23        #[rename(name = "InitialDebugPlaybackRate")]
24        pub initial_debug_playback_rate: f32,
25        #[offset(28)]
26        #[rename(name = "InitialBackwardCancelRatio")]
27        pub initial_backward_cancel_ratio: f32,
28        #[offset(32)]
29        #[rename(name = "InitialHeavinessFactor")]
30        pub initial_heaviness_factor: f32,
31        #[offset(36)]
32        #[rename(name = "InitialAgilityFactor")]
33        pub initial_agility_factor: f32,
34        #[offset(40)]
35        #[rename(name = "InitialHitRatio")]
36        pub initial_hit_ratio: f32,
37        #[offset(44)]
38        #[rename(name = "InitialCriticalRatio")]
39        pub initial_critical_ratio: f32,
40        #[offset(48)]
41        #[rename(name = "InitialGuardRatio")]
42        pub initial_guard_ratio: f32,
43        #[offset(52)]
44        #[rename(name = "InitialDamageRatio")]
45        pub initial_damage_ratio: f32,
46        #[offset(56)]
47        #[rename(name = "InitialAttackRatio")]
48        pub initial_attack_ratio: f32,
49        #[offset(136)]
50        #[rename(name = "_cp")]
51        pub cp: crate::combat::character::Character,
52    }
53}
54
55#[cfg(feature = "combat-characterconfig-types")]
56pub use __types::*;
57
58#[cfg(feature = "combat-characterconfig")]
59impl CharacterConfig {
60    #[doc = "`IN(f32)` overload"]
61    pub fn r#in(value: impl ::core::convert::Into<f32>) -> bool {
62        unsafe {
63            ::unity::il2cpp_call!((::unity::module_base()+0x27db310usize)as*mut u8,bool;
64(f32)::core::convert::Into::into(value))
65        }
66    }
67}
68
69#[cfg(feature = "combat-characterconfig")]
70pub trait ICharacterConfigMethods: ICharacterConfig {
71    #[doc = "`set_DebugPlaybackRate(f32)` overload"]
72    fn set_debug_playback_rate(self, value: impl ::core::convert::Into<f32>) -> () {
73        unsafe {
74            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            ::unity::il2cpp_call!((::unity::module_base()+0x27d9b20usize)as*mut u8,();
76(CharacterConfig)__receiver,(f32)::core::convert::Into::into(value))
77        }
78    }
79    #[doc = "`get_DebugPlaybackRate()` overload"]
80    fn get_debug_playback_rate(self) -> f32 {
81        unsafe {
82            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            ::unity::il2cpp_call!((::unity::module_base()+0x27d9b90usize)as*mut u8,f32;
84(CharacterConfig)__receiver)
85        }
86    }
87    #[doc = "`set_BackwardCancelRatio(f32)` overload"]
88    fn set_backward_cancel_ratio(self, value: impl ::core::convert::Into<f32>) -> () {
89        unsafe {
90            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91            ::unity::il2cpp_call!((::unity::module_base()+0x27d9be0usize)as*mut u8,();
92(CharacterConfig)__receiver,(f32)::core::convert::Into::into(value))
93        }
94    }
95    #[doc = "`get_BackwardCancelRatio()` overload"]
96    fn get_backward_cancel_ratio(self) -> f32 {
97        unsafe {
98            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            ::unity::il2cpp_call!((::unity::module_base()+0x27d9c50usize)as*mut u8,f32;
100(CharacterConfig)__receiver)
101        }
102    }
103    #[doc = "`set_HeavinessFactor(f32)` overload"]
104    fn set_heaviness_factor(self, value: impl ::core::convert::Into<f32>) -> () {
105        unsafe {
106            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107            ::unity::il2cpp_call!((::unity::module_base()+0x27d9ca0usize)as*mut u8,();
108(CharacterConfig)__receiver,(f32)::core::convert::Into::into(value))
109        }
110    }
111    #[doc = "`get_HeavinessFactor()` overload"]
112    fn get_heaviness_factor(self) -> f32 {
113        unsafe {
114            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115            ::unity::il2cpp_call!((::unity::module_base()+0x27d9d10usize)as*mut u8,f32;
116(CharacterConfig)__receiver)
117        }
118    }
119    #[doc = "`set_AgilityFactor(f32)` overload"]
120    fn set_agility_factor(self, value: impl ::core::convert::Into<f32>) -> () {
121        unsafe {
122            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123            ::unity::il2cpp_call!((::unity::module_base()+0x27d9d60usize)as*mut u8,();
124(CharacterConfig)__receiver,(f32)::core::convert::Into::into(value))
125        }
126    }
127    #[doc = "`get_AgilityFactor()` overload"]
128    fn get_agility_factor(self) -> f32 {
129        unsafe {
130            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131            ::unity::il2cpp_call!((::unity::module_base()+0x27d9dd0usize)as*mut u8,f32;
132(CharacterConfig)__receiver)
133        }
134    }
135    #[doc = "`set_HitRatio(f32)` overload"]
136    fn set_hit_ratio(self, value: impl ::core::convert::Into<f32>) -> () {
137        unsafe {
138            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139            ::unity::il2cpp_call!((::unity::module_base()+0x27d9e20usize)as*mut u8,();
140(CharacterConfig)__receiver,(f32)::core::convert::Into::into(value))
141        }
142    }
143    #[doc = "`get_HitRatio()` overload"]
144    fn get_hit_ratio(self) -> f32 {
145        unsafe {
146            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147            ::unity::il2cpp_call!((::unity::module_base()+0x27d9e90usize)as*mut u8,f32;
148(CharacterConfig)__receiver)
149        }
150    }
151    #[doc = "`set_CriticalRatio(f32)` overload"]
152    fn set_critical_ratio(self, value: impl ::core::convert::Into<f32>) -> () {
153        unsafe {
154            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155            ::unity::il2cpp_call!((::unity::module_base()+0x27d9ee0usize)as*mut u8,();
156(CharacterConfig)__receiver,(f32)::core::convert::Into::into(value))
157        }
158    }
159    #[doc = "`get_CriticalRatio()` overload"]
160    fn get_critical_ratio(self) -> f32 {
161        unsafe {
162            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163            ::unity::il2cpp_call!((::unity::module_base()+0x27d9f50usize)as*mut u8,f32;
164(CharacterConfig)__receiver)
165        }
166    }
167    #[doc = "`set_GuardRatio(f32)` overload"]
168    fn set_guard_ratio(self, value: impl ::core::convert::Into<f32>) -> () {
169        unsafe {
170            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171            ::unity::il2cpp_call!((::unity::module_base()+0x27d9fa0usize)as*mut u8,();
172(CharacterConfig)__receiver,(f32)::core::convert::Into::into(value))
173        }
174    }
175    #[doc = "`get_GuardRatio()` overload"]
176    fn get_guard_ratio(self) -> f32 {
177        unsafe {
178            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179            ::unity::il2cpp_call!((::unity::module_base()+0x27da010usize)as*mut u8,f32;
180(CharacterConfig)__receiver)
181        }
182    }
183    #[doc = "`set_DamageRatio(f32)` overload"]
184    fn set_damage_ratio(self, value: impl ::core::convert::Into<f32>) -> () {
185        unsafe {
186            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
187            ::unity::il2cpp_call!((::unity::module_base()+0x27da060usize)as*mut u8,();
188(CharacterConfig)__receiver,(f32)::core::convert::Into::into(value))
189        }
190    }
191    #[doc = "`get_DamageRatio()` overload"]
192    fn get_damage_ratio(self) -> f32 {
193        unsafe {
194            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195            ::unity::il2cpp_call!((::unity::module_base()+0x27da0d0usize)as*mut u8,f32;
196(CharacterConfig)__receiver)
197        }
198    }
199    #[doc = "`set_AttackRatio(f32)` overload"]
200    fn set_attack_ratio(self, value: impl ::core::convert::Into<f32>) -> () {
201        unsafe {
202            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203            ::unity::il2cpp_call!((::unity::module_base()+0x27da120usize)as*mut u8,();
204(CharacterConfig)__receiver,(f32)::core::convert::Into::into(value))
205        }
206    }
207    #[doc = "`get_AttackRatio()` overload"]
208    fn get_attack_ratio(self) -> f32 {
209        unsafe {
210            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211            ::unity::il2cpp_call!((::unity::module_base()+0x27da190usize)as*mut u8,f32;
212(CharacterConfig)__receiver)
213        }
214    }
215    #[doc = "`Reset()` overload"]
216    fn reset(self) -> () {
217        unsafe {
218            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
219            ::unity::il2cpp_call!((::unity::module_base()+0x27da1e0usize)as*mut u8,();
220(CharacterConfig)__receiver)
221        }
222    }
223    #[doc = "`Load()` overload"]
224    fn load(self) -> () {
225        unsafe {
226            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
227            ::unity::il2cpp_call!((::unity::module_base()+0x27da3f0usize)as*mut u8,();
228(CharacterConfig)__receiver)
229        }
230    }
231    #[doc = "`Save()` overload"]
232    fn save(self) -> () {
233        unsafe {
234            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235            ::unity::il2cpp_call!((::unity::module_base()+0x27da610usize)as*mut u8,();
236(CharacterConfig)__receiver)
237        }
238    }
239    #[doc = "`get_CP()` overload"]
240    fn get_cp(self) -> crate::combat::character::Character {
241        unsafe {
242            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
243            ::unity::il2cpp_call!((::unity::module_base()+0x27da7c0usize)as*mut u8,crate::combat::character::Character;
244(CharacterConfig)__receiver)
245        }
246    }
247    #[doc = "`Start()` overload"]
248    fn start(self) -> () {
249        unsafe {
250            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
251            ::unity::il2cpp_call!((::unity::module_base()+0x27da880usize)as*mut u8,();
252(CharacterConfig)__receiver)
253        }
254    }
255    #[doc = "`StartImpl()` overload"]
256    fn start_impl(self) -> () {
257        unsafe {
258            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
259            ::unity::il2cpp_call!((::unity::module_base()+0x27da920usize)as*mut u8,();
260(CharacterConfig)__receiver)
261        }
262    }
263    #[doc = "`OnDestroy()` overload"]
264    fn on_destroy(self) -> () {
265        unsafe {
266            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
267            ::unity::il2cpp_call!((::unity::module_base()+0x27da930usize)as*mut u8,();
268(CharacterConfig)__receiver)
269        }
270    }
271    #[doc = "`InternalGUI()` overload"]
272    fn internal_gui(self) -> () {
273        unsafe {
274            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
275            ::unity::il2cpp_call!((::unity::module_base()+0x27dae10usize)as*mut u8,();
276(CharacterConfig)__receiver)
277        }
278    }
279    #[doc = "`GetAttackSideByDice()` overload"]
280    fn get_attack_side_by_dice(self) -> i32 {
281        unsafe {
282            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
283            ::unity::il2cpp_call!((::unity::module_base()+0x27db250usize)as*mut u8,i32;
284(CharacterConfig)__receiver)
285        }
286    }
287    #[doc = "`MakePhaseD()` overload"]
288    fn make_phase_d(self) -> crate::combat::phase::Phase {
289        unsafe {
290            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
291            ::unity::il2cpp_call!((::unity::module_base()+0x27db340usize)as*mut u8,crate::combat::phase::Phase;
292(CharacterConfig)__receiver)
293        }
294    }
295    #[doc = "`.ctor()` overload"]
296    fn ctor(self) -> () {
297        unsafe {
298            let __receiver = <CharacterConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
299            ::unity::il2cpp_call!((::unity::module_base()+0x27db630usize)as*mut u8,();
300(CharacterConfig)__receiver)
301        }
302    }
303}
304
305#[cfg(feature = "combat-characterconfig")]
306impl<__T: ICharacterConfig> ICharacterConfigMethods for __T {}
307
308#[cfg(feature = "combat-characterconfig")]
309impl CharacterConfig {
310    pub fn set_debug_playback_rate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
311        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
312    }
313
314    pub fn get_debug_playback_rate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
315        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
316    }
317
318    pub fn set_backward_cancel_ratio_method_info() -> &'static ::unity::il2cpp::MethodInfo {
319        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
320    }
321
322    pub fn get_backward_cancel_ratio_method_info() -> &'static ::unity::il2cpp::MethodInfo {
323        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
324    }
325
326    pub fn set_heaviness_factor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
327        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
328    }
329
330    pub fn get_heaviness_factor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
331        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
332    }
333
334    pub fn set_agility_factor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
336    }
337
338    pub fn get_agility_factor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
339        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
340    }
341
342    pub fn set_hit_ratio_method_info() -> &'static ::unity::il2cpp::MethodInfo {
343        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
344    }
345
346    pub fn get_hit_ratio_method_info() -> &'static ::unity::il2cpp::MethodInfo {
347        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
348    }
349
350    pub fn set_critical_ratio_method_info() -> &'static ::unity::il2cpp::MethodInfo {
351        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
352    }
353
354    pub fn get_critical_ratio_method_info() -> &'static ::unity::il2cpp::MethodInfo {
355        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
356    }
357
358    pub fn set_guard_ratio_method_info() -> &'static ::unity::il2cpp::MethodInfo {
359        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
360    }
361
362    pub fn get_guard_ratio_method_info() -> &'static ::unity::il2cpp::MethodInfo {
363        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
364    }
365
366    pub fn set_damage_ratio_method_info() -> &'static ::unity::il2cpp::MethodInfo {
367        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
368    }
369
370    pub fn get_damage_ratio_method_info() -> &'static ::unity::il2cpp::MethodInfo {
371        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
372    }
373
374    pub fn set_attack_ratio_method_info() -> &'static ::unity::il2cpp::MethodInfo {
375        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
376    }
377
378    pub fn get_attack_ratio_method_info() -> &'static ::unity::il2cpp::MethodInfo {
379        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
380    }
381
382    pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
383        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
384    }
385
386    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
387        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
388    }
389
390    pub fn save_method_info() -> &'static ::unity::il2cpp::MethodInfo {
391        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
392    }
393
394    pub fn get_cp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
395        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
396    }
397
398    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
399        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
400    }
401
402    pub fn start_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
403        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
404    }
405
406    pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
407        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
408    }
409
410    pub fn internal_gui_method_info() -> &'static ::unity::il2cpp::MethodInfo {
411        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
412    }
413
414    pub fn get_attack_side_by_dice_method_info() -> &'static ::unity::il2cpp::MethodInfo {
415        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
416    }
417
418    pub fn make_phase_d_method_info() -> &'static ::unity::il2cpp::MethodInfo {
419        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
420    }
421
422    pub fn in_method_info() -> &'static ::unity::il2cpp::MethodInfo {
423        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
424    }
425
426    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
427        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
428    }
429}
430
431#[cfg(feature = "combat-characterconfig")]
432impl CharacterConfig {
433    #[doc = "`.ctor()` — no args"]
434    pub fn new() -> Self {
435        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
436            panic!(
437                "{}
438::{}
439 failed to instantiate",
440                ::core::stringify!(CharacterConfig),
441                ::core::stringify!(new),
442            )
443        });
444        <Self as ICharacterConfigMethods>::ctor(this);
445        this
446    }
447}
448
449#[cfg(feature = "combat-characterconfig")]
450#[doc(hidden)]
451pub mod prelude {
452    pub use super::{CharacterConfig, ICharacterConfig, ICharacterConfigMethods};
453    #[cfg(feature = "system-object")]
454    pub use crate::system::object::IObjectMethods;
455    #[cfg(feature = "unity_engine-behaviour")]
456    pub use crate::unity_engine::behaviour::IBehaviourMethods;
457    #[cfg(feature = "unity_engine-component")]
458    pub use crate::unity_engine::component::IComponentMethods;
459    #[cfg(feature = "unity_engine-monobehaviour")]
460    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
461    #[cfg(feature = "unity_engine-object_2")]
462    pub use crate::unity_engine::object_2::IObject_2Methods;
463    pub use crate::{
464        system::object::IObject,
465        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
466    };
467}