Skip to main content

engage/generated/combat/
hash.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-hash-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/hash/Hash.md"))]
11    #[::unity::class(namespace = "Combat", name = "Hash")]
12    #[parent(crate::system::object::Object)]
13    pub struct Hash {
14        #[static_field]
15        #[rename(name = "Attack1")]
16        pub attack1: i32,
17        #[static_field]
18        #[rename(name = "Attack2")]
19        pub attack2: i32,
20        #[static_field]
21        #[rename(name = "Attack3")]
22        pub attack3: i32,
23        #[static_field]
24        #[rename(name = "Attack4")]
25        pub attack4: i32,
26        #[static_field]
27        #[rename(name = "Attack5")]
28        pub attack5: i32,
29        #[static_field]
30        #[rename(name = "AttackC")]
31        pub attack_c: i32,
32        #[static_field]
33        #[rename(name = "AttackT")]
34        pub attack_t: i32,
35        #[static_field]
36        #[rename(name = "DamageHigh")]
37        pub damage_high: i32,
38        #[static_field]
39        #[rename(name = "DamageMidB")]
40        pub damage_mid_b: i32,
41        #[static_field]
42        #[rename(name = "DamageMidDU")]
43        pub damage_mid_du: i32,
44        #[static_field]
45        #[rename(name = "DamageMidUD")]
46        pub damage_mid_ud: i32,
47        #[static_field]
48        #[rename(name = "DieB")]
49        pub die_b: i32,
50        #[static_field]
51        #[rename(name = "DieL")]
52        pub die_l: i32,
53        #[static_field]
54        #[rename(name = "DieR")]
55        pub die_r: i32,
56        #[static_field]
57        #[rename(name = "Dive")]
58        pub dive: i32,
59        #[static_field]
60        #[rename(name = "Engage1")]
61        pub engage1: i32,
62        #[static_field]
63        #[rename(name = "Engage2")]
64        pub engage2: i32,
65        #[static_field]
66        #[rename(name = "Engage3")]
67        pub engage3: i32,
68        #[static_field]
69        #[rename(name = "EvasionB")]
70        pub evasion_b: i32,
71        #[static_field]
72        #[rename(name = "EvasionL")]
73        pub evasion_l: i32,
74        #[static_field]
75        #[rename(name = "EvasionR")]
76        pub evasion_r: i32,
77        #[static_field]
78        #[rename(name = "Guard")]
79        pub guard: i32,
80        #[static_field]
81        #[rename(name = "HoveringLoop")]
82        pub hovering_loop: i32,
83        #[static_field]
84        #[rename(name = "Idle")]
85        pub idle: i32,
86        #[static_field]
87        #[rename(name = "ParryL")]
88        pub parry_l: i32,
89        #[static_field]
90        #[rename(name = "ParryR")]
91        pub parry_r: i32,
92        #[static_field]
93        #[rename(name = "Ready")]
94        pub ready: i32,
95        #[static_field]
96        #[rename(name = "RelaxLoop")]
97        pub relax_loop: i32,
98        #[static_field]
99        #[rename(name = "Repelled")]
100        pub repelled: i32,
101        #[static_field]
102        #[rename(name = "RunLoop")]
103        pub run_loop: i32,
104        #[static_field]
105        #[rename(name = "RunStart")]
106        pub run_start: i32,
107        #[static_field]
108        #[rename(name = "Special1")]
109        pub special1: i32,
110        #[static_field]
111        #[rename(name = "Start")]
112        pub start: i32,
113        #[static_field]
114        #[rename(name = "Win")]
115        pub win: i32,
116        #[static_field]
117        #[rename(name = "WinLoop")]
118        pub win_loop: i32,
119        #[static_field]
120        #[rename(name = "AttackAll")]
121        pub attack_all: i32,
122        #[static_field]
123        #[rename(name = "DamageMidAll")]
124        pub damage_mid_all: i32,
125        #[static_field]
126        #[rename(name = "DieAll")]
127        pub die_all: i32,
128        #[static_field]
129        #[rename(name = "EvasionAll")]
130        pub evasion_all: i32,
131        #[static_field]
132        #[rename(name = "ParryAll")]
133        pub parry_all: i32,
134        #[static_field]
135        #[rename(name = "PlaybackRate")]
136        pub playback_rate: i32,
137        #[static_field]
138        #[rename(name = "IsRunning")]
139        pub is_running: i32,
140        #[static_field]
141        #[rename(name = "Dying")]
142        pub dying: i32,
143        #[static_field]
144        #[rename(name = "FacialNormal")]
145        pub facial_normal: i32,
146        #[static_field]
147        #[rename(name = "FacialPain")]
148        pub facial_pain: i32,
149        #[static_field]
150        #[rename(name = "FacialDie")]
151        pub facial_die: i32,
152    }
153}
154
155#[cfg(feature = "combat-hash-types")]
156pub use __types::*;
157
158#[cfg(feature = "combat-hash")]
159impl Hash {
160    #[doc = "`ToHash(::unity::Il2CppString)` overload"]
161    pub fn to_hash(name: impl ::core::convert::Into<::unity::Il2CppString>) -> i32 {
162        unsafe {
163            ::unity::il2cpp_call!((::unity::module_base()+0x297b610usize)as*mut u8,i32;
164(::unity::Il2CppString)::core::convert::Into::into(name))
165        }
166    }
167
168    #[doc = "`ToName(i32)` overload"]
169    pub fn to_name(hash: impl ::core::convert::Into<i32>) -> ::unity::Il2CppString {
170        unsafe {
171            ::unity::il2cpp_call!((::unity::module_base()+0x297b670usize)as*mut u8, ::unity::Il2CppString;
172(i32)::core::convert::Into::into(hash))
173        }
174    }
175
176    #[doc = "`get_HashArray()` overload"]
177    pub fn get_hash_array() -> ::unity::Array<i32> {
178        unsafe {
179            ::unity::il2cpp_call!((::unity::module_base()+0x297bd60usize)as*mut u8, ::unity::Array<i32> ;
180            )
181        }
182    }
183
184    #[doc = "`.cctor()` overload"]
185    pub fn cctor() -> () {
186        unsafe {
187            ::unity::il2cpp_call!((::unity::module_base()+0x297bde0usize)as*mut u8,();
188            )
189        }
190    }
191}
192
193#[cfg(feature = "combat-hash")]
194impl Hash {
195    pub fn to_hash_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
197    }
198
199    pub fn to_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
201    }
202
203    pub fn get_hash_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
205    }
206
207    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
209    }
210}
211
212#[cfg(feature = "combat-hash")]
213#[doc(hidden)]
214pub mod prelude {
215    pub use super::{Hash, IHash};
216    pub use crate::system::object::IObject;
217    #[cfg(feature = "system-object")]
218    pub use crate::system::object::IObjectMethods;
219}