engage/generated/combat/
animname.rs1#[cfg(feature = "combat-animname-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 r#enum::{Enum, IEnum},
11 valuetype::{IValueType, ValueType},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/animname/AnimName.md"))]
15 #[::unity::class(namespace = "Combat", name = "AnimName")]
16 #[parent(crate::system::object::Object)]
17 pub struct AnimName {}
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/animname/AnimName_Race.md"))]
20 #[repr(C)]
21 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
22 pub struct AnimName_Race {
23 pub value: i32,
24 }
25 impl ::unity::ClassIdentity for AnimName_Race {
26 const NAME: &'static str = "AnimName.Race";
27 const NAMESPACE: &'static str = "Combat";
28
29 fn class() -> ::unity::Class {
30 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
31 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
32 }
33 }
34 impl ::unity::IlType for AnimName_Race {
35 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
36 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
37 }
38 }
39 impl AnimName_Race {
40 pub fn unknown() -> Self {
41 Self { value: 0 }
42 }
43
44 pub fn human() -> Self {
45 Self { value: 1 }
46 }
47
48 pub fn horse() -> Self {
49 Self { value: 2 }
50 }
51
52 pub fn wolf() -> Self {
53 Self { value: 3 }
54 }
55
56 pub fn dragon() -> Self {
57 Self { value: 4 }
58 }
59
60 pub fn pegasus() -> Self {
61 Self { value: 5 }
62 }
63
64 pub fn griffon() -> Self {
65 Self { value: 6 }
66 }
67
68 pub fn dragonic() -> Self {
69 Self { value: 7 }
70 }
71 }
72}
73
74#[cfg(feature = "combat-animname-types")]
75pub use __types::*;
76
77#[cfg(feature = "combat-animname")]
78impl AnimName {
79 #[doc = "`GetRace(crate::combat::character::Character)` overload"]
80 pub fn get_race(c: impl ::core::convert::Into<crate::combat::character::Character>) -> crate::combat::animname::AnimName_Race {
81 unsafe {
82 ::unity::il2cpp_call!((::unity::module_base()+0x1c8e920usize)as*mut u8,crate::combat::animname::AnimName_Race;
83(crate::combat::character::Character)::core::convert::Into::into(c))
84 }
85 }
86
87 #[doc = "`GetRace(crate::combat::charactergamestatus::CharacterGameStatus)` overload"]
88 pub fn get_race_2(
89 gs: impl ::core::convert::Into<crate::combat::charactergamestatus::CharacterGameStatus>,
90 ) -> crate::combat::animname::AnimName_Race {
91 unsafe {
92 ::unity::il2cpp_call!((::unity::module_base()+0x1c8eaa0usize)as*mut u8,crate::combat::animname::AnimName_Race;
93(crate::combat::charactergamestatus::CharacterGameStatus)::core::convert::Into::into(gs))
94 }
95 }
96
97 #[doc = "`GetRace(::unity::Il2CppString)` overload"]
98 pub fn get_race_3(name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::combat::animname::AnimName_Race {
99 unsafe {
100 ::unity::il2cpp_call!((::unity::module_base()+0x1c8eb20usize)as*mut u8,crate::combat::animname::AnimName_Race;
101(::unity::Il2CppString)::core::convert::Into::into(name))
102 }
103 }
104
105 #[doc = "`IsHeavy(::unity::Il2CppString)` overload"]
106 pub fn is_heavy(name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
107 unsafe {
108 ::unity::il2cpp_call!((::unity::module_base()+0x1c8ecc0usize)as*mut u8,bool;
109(::unity::Il2CppString)::core::convert::Into::into(name))
110 }
111 }
112
113 #[doc = "`IsRidingHuman(::unity::Il2CppString)` overload"]
114 pub fn is_riding_human(name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
115 unsafe {
116 ::unity::il2cpp_call!((::unity::module_base()+0x1c8ed20usize)as*mut u8,bool;
117(::unity::Il2CppString)::core::convert::Into::into(name))
118 }
119 }
120
121 #[doc = "`IsVehicle(::unity::Il2CppString)` overload"]
122 pub fn is_vehicle(name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
123 unsafe {
124 ::unity::il2cpp_call!((::unity::module_base()+0x1c8edf0usize)as*mut u8,bool;
125(::unity::Il2CppString)::core::convert::Into::into(name))
126 }
127 }
128
129 #[doc = "`ToRideName(::unity::Il2CppString)` overload"]
130 pub fn to_ride_name(name: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
131 unsafe {
132 ::unity::il2cpp_call!((::unity::module_base()+0x1c8eec0usize)as*mut u8, ::unity::Il2CppString;
133(::unity::Il2CppString)::core::convert::Into::into(name))
134 }
135 }
136
137 #[doc = "`IsUnknown(crate::combat::animname::AnimName_Race)` overload"]
138 pub fn is_unknown(race: impl ::core::convert::Into<crate::combat::animname::AnimName_Race>) -> bool {
139 unsafe {
140 ::unity::il2cpp_call!((::unity::module_base()+0x1c8f010usize)as*mut u8,bool;
141(crate::combat::animname::AnimName_Race)::core::convert::Into::into(race))
142 }
143 }
144
145 #[doc = "`IsUnknown(::unity::Il2CppString)` overload"]
146 pub fn is_unknown_2(name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
147 unsafe {
148 ::unity::il2cpp_call!((::unity::module_base()+0x1c8f020usize)as*mut u8,bool;
149(::unity::Il2CppString)::core::convert::Into::into(name))
150 }
151 }
152
153 #[doc = "`IsHuman(crate::combat::animname::AnimName_Race)` overload"]
154 pub fn is_human(race: impl ::core::convert::Into<crate::combat::animname::AnimName_Race>) -> bool {
155 unsafe {
156 ::unity::il2cpp_call!((::unity::module_base()+0x1c8f040usize)as*mut u8,bool;
157(crate::combat::animname::AnimName_Race)::core::convert::Into::into(race))
158 }
159 }
160
161 #[doc = "`IsHuman(::unity::Il2CppString)` overload"]
162 pub fn is_human_2(name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
163 unsafe {
164 ::unity::il2cpp_call!((::unity::module_base()+0x1c8f060usize)as*mut u8,bool;
165(::unity::Il2CppString)::core::convert::Into::into(name))
166 }
167 }
168
169 #[doc = "`IsRide(crate::combat::animname::AnimName_Race)` overload"]
170 pub fn is_ride(race: impl ::core::convert::Into<crate::combat::animname::AnimName_Race>) -> bool {
171 unsafe {
172 ::unity::il2cpp_call!((::unity::module_base()+0x1c8f090usize)as*mut u8,bool;
173(crate::combat::animname::AnimName_Race)::core::convert::Into::into(race))
174 }
175 }
176
177 #[doc = "`IsRide(::unity::Il2CppString)` overload"]
178 pub fn is_ride_2(name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
179 unsafe {
180 ::unity::il2cpp_call!((::unity::module_base()+0x1c8edb0usize)as*mut u8,bool;
181(::unity::Il2CppString)::core::convert::Into::into(name))
182 }
183 }
184
185 #[doc = "`Is4Legged(crate::combat::animname::AnimName_Race)` overload"]
186 pub fn is4_legged(race: impl ::core::convert::Into<crate::combat::animname::AnimName_Race>) -> bool {
187 unsafe {
188 ::unity::il2cpp_call!((::unity::module_base()+0x1c8f0c0usize)as*mut u8,bool;
189(crate::combat::animname::AnimName_Race)::core::convert::Into::into(race))
190 }
191 }
192
193 #[doc = "`Is4Legged(::unity::Il2CppString)` overload"]
194 pub fn is4_legged_2(name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
195 unsafe {
196 ::unity::il2cpp_call!((::unity::module_base()+0x1c8f0e0usize)as*mut u8,bool;
197(::unity::Il2CppString)::core::convert::Into::into(name))
198 }
199 }
200
201 #[doc = "`IsFlying(crate::combat::animname::AnimName_Race)` overload"]
202 pub fn is_flying(race: impl ::core::convert::Into<crate::combat::animname::AnimName_Race>) -> bool {
203 unsafe {
204 ::unity::il2cpp_call!((::unity::module_base()+0x1c8f110usize)as*mut u8,bool;
205(crate::combat::animname::AnimName_Race)::core::convert::Into::into(race))
206 }
207 }
208
209 #[doc = "`IsFlying(::unity::Il2CppString)` overload"]
210 pub fn is_flying_2(name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
211 unsafe {
212 ::unity::il2cpp_call!((::unity::module_base()+0x1c8f120usize)as*mut u8,bool;
213(::unity::Il2CppString)::core::convert::Into::into(name))
214 }
215 }
216}
217
218#[cfg(feature = "combat-animname")]
219impl AnimName {
220 pub fn get_race_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
222 }
223
224 pub fn get_race_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
226 }
227
228 pub fn get_race_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
230 }
231
232 pub fn is_heavy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
233 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
234 }
235
236 pub fn is_riding_human_method_info() -> &'static ::unity::il2cpp::MethodInfo {
237 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
238 }
239
240 pub fn is_vehicle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
242 }
243
244 pub fn to_ride_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
245 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
246 }
247
248 pub fn is_unknown_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
250 }
251
252 pub fn is_unknown_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
254 }
255
256 pub fn is_human_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
258 }
259
260 pub fn is_human_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
262 }
263
264 pub fn is_ride_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
266 }
267
268 pub fn is_ride_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
270 }
271
272 pub fn is4_legged_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
274 }
275
276 pub fn is4_legged_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
278 }
279
280 pub fn is_flying_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
282 }
283
284 pub fn is_flying_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
286 }
287}
288
289#[cfg(feature = "combat-animname")]
290#[doc(hidden)]
291pub mod prelude {
292 pub use super::{AnimName, AnimName_Race, IAnimName};
293 #[cfg(feature = "system-object")]
294 pub use crate::system::object::IObjectMethods;
295 #[cfg(feature = "system-enum")]
296 pub use crate::system::r#enum::IEnumMethods;
297 #[cfg(feature = "system-valuetype")]
298 pub use crate::system::valuetype::IValueTypeMethods;
299 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
300}