engage/generated/combat/
side.rs1#[cfg(feature = "combat-side-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/side/Side.md"))]
11 #[::unity::class(namespace = "Combat", name = "Side")]
12 #[parent(crate::system::object::Object)]
13 pub struct Side {
14 #[static_field]
15 #[rename(name = "Invalid")]
16 pub invalid: i32,
17 #[static_field]
18 #[rename(name = "Player")]
19 pub player: i32,
20 #[static_field]
21 #[rename(name = "Enemy")]
22 pub enemy: i32,
23 #[static_field]
24 #[rename(name = "PGrandew")]
25 pub p_grandew: i32,
26 #[static_field]
27 #[rename(name = "EGrandew")]
28 pub e_grandew: i32,
29 #[static_field]
30 #[rename(name = "PChainAtk")]
31 pub p_chain_atk: i32,
32 #[static_field]
33 #[rename(name = "EChainAtk")]
34 pub e_chain_atk: i32,
35 #[static_field]
36 #[rename(name = "PChainGrd1")]
37 pub p_chain_grd1: i32,
38 #[static_field]
39 #[rename(name = "EChainGrd1")]
40 pub e_chain_grd1: i32,
41 #[static_field]
42 #[rename(name = "PChainGrd2")]
43 pub p_chain_grd2: i32,
44 #[static_field]
45 #[rename(name = "EChainGrd2")]
46 pub e_chain_grd2: i32,
47 #[static_field]
48 #[rename(name = "PChainGrd3")]
49 pub p_chain_grd3: i32,
50 #[static_field]
51 #[rename(name = "EChainGrd3")]
52 pub e_chain_grd3: i32,
53 #[static_field]
54 #[rename(name = "PChainGrd4")]
55 pub p_chain_grd4: i32,
56 #[static_field]
57 #[rename(name = "EChainGrd4")]
58 pub e_chain_grd4: i32,
59 #[static_field]
60 #[rename(name = "Max")]
61 pub max: i32,
62 #[static_field]
63 #[rename(name = "Regular")]
64 pub regular: i32,
65 }
66}
67
68#[cfg(feature = "combat-side-types")]
69pub use __types::*;
70
71#[cfg(feature = "combat-side")]
72impl Side {
73 #[doc = "`ToName(i32)` overload"]
74 pub fn to_name(i: impl ::core::convert::Into<i32>) -> ::unity::Il2CppString {
75 unsafe {
76 ::unity::il2cpp_call!((::unity::module_base()+0x247c130usize)as*mut u8, ::unity::Il2CppString;
77(i32)::core::convert::Into::into(i))
78 }
79 }
80
81 #[doc = "`FromName(::unity::Il2CppString)` overload"]
82 pub fn from_name(name: impl ::core::convert::Into<::unity::Il2CppString>) -> i32 {
83 unsafe {
84 ::unity::il2cpp_call!((::unity::module_base()+0x247c6e0usize)as*mut u8,i32;
85(::unity::Il2CppString)::core::convert::Into::into(name))
86 }
87 }
88
89 #[doc = "`IsMaster(i32)` overload"]
90 pub fn is_master(i: impl ::core::convert::Into<i32>) -> bool {
91 unsafe {
92 ::unity::il2cpp_call!((::unity::module_base()+0x247cad0usize)as*mut u8,bool;
93(i32)::core::convert::Into::into(i))
94 }
95 }
96
97 #[doc = "`IsPairedGrandew(i32)` overload"]
98 pub fn is_paired_grandew(i: impl ::core::convert::Into<i32>) -> bool {
99 unsafe {
100 ::unity::il2cpp_call!((::unity::module_base()+0x247cae0usize)as*mut u8,bool;
101(i32)::core::convert::Into::into(i))
102 }
103 }
104
105 #[doc = "`IsChain(i32)` overload"]
106 pub fn is_chain(i: impl ::core::convert::Into<i32>) -> bool {
107 unsafe {
108 ::unity::il2cpp_call!((::unity::module_base()+0x247caf0usize)as*mut u8,bool;
109(i32)::core::convert::Into::into(i))
110 }
111 }
112
113 #[doc = "`IsChainAtk(i32)` overload"]
114 pub fn is_chain_atk(i: impl ::core::convert::Into<i32>) -> bool {
115 unsafe {
116 ::unity::il2cpp_call!((::unity::module_base()+0x247cb00usize)as*mut u8,bool;
117(i32)::core::convert::Into::into(i))
118 }
119 }
120
121 #[doc = "`IsChainGrd(i32)` overload"]
122 pub fn is_chain_grd(i: impl ::core::convert::Into<i32>) -> bool {
123 unsafe {
124 ::unity::il2cpp_call!((::unity::module_base()+0x247cb10usize)as*mut u8,bool;
125(i32)::core::convert::Into::into(i))
126 }
127 }
128
129 #[doc = "`IsPlayerSide(i32)` overload"]
130 pub fn is_player_side(i: impl ::core::convert::Into<i32>) -> bool {
131 unsafe {
132 ::unity::il2cpp_call!((::unity::module_base()+0x247cb30usize)as*mut u8,bool;
133(i32)::core::convert::Into::into(i))
134 }
135 }
136
137 #[doc = "`IsEnemySide(i32)` overload"]
138 pub fn is_enemy_side(i: impl ::core::convert::Into<i32>) -> bool {
139 unsafe {
140 ::unity::il2cpp_call!((::unity::module_base()+0x247cb40usize)as*mut u8,bool;
141(i32)::core::convert::Into::into(i))
142 }
143 }
144
145 #[doc = "`ToEnemy(i32)` overload"]
146 pub fn to_enemy(i: impl ::core::convert::Into<i32>) -> i32 {
147 unsafe {
148 ::unity::il2cpp_call!((::unity::module_base()+0x247cb50usize)as*mut u8,i32;
149(i32)::core::convert::Into::into(i))
150 }
151 }
152
153 #[doc = "`ToEnemyGrandew(i32)` overload"]
154 pub fn to_enemy_grandew(i: impl ::core::convert::Into<i32>) -> i32 {
155 unsafe {
156 ::unity::il2cpp_call!((::unity::module_base()+0x247cb60usize)as*mut u8,i32;
157(i32)::core::convert::Into::into(i))
158 }
159 }
160
161 #[doc = "`ToGrandew(i32)` overload"]
162 pub fn to_grandew(i: impl ::core::convert::Into<i32>) -> i32 {
163 unsafe {
164 ::unity::il2cpp_call!((::unity::module_base()+0x247cb70usize)as*mut u8,i32;
165(i32)::core::convert::Into::into(i))
166 }
167 }
168
169 #[doc = "`ToMaster(i32)` overload"]
170 pub fn to_master(i: impl ::core::convert::Into<i32>) -> i32 {
171 unsafe {
172 ::unity::il2cpp_call!((::unity::module_base()+0x247cb90usize)as*mut u8,i32;
173(i32)::core::convert::Into::into(i))
174 }
175 }
176
177 #[doc = "`ToPartner(i32)` overload"]
178 pub fn to_partner(i: impl ::core::convert::Into<i32>) -> i32 {
179 unsafe {
180 ::unity::il2cpp_call!((::unity::module_base()+0x247cbb0usize)as*mut u8,i32;
181(i32)::core::convert::Into::into(i))
182 }
183 }
184
185 #[doc = "`ToMirrorSide(i32)` overload"]
186 pub fn to_mirror_side(i: impl ::core::convert::Into<i32>) -> i32 {
187 unsafe {
188 ::unity::il2cpp_call!((::unity::module_base()+0x247cbd0usize)as*mut u8,i32;
189(i32)::core::convert::Into::into(i))
190 }
191 }
192
193 #[doc = "`ToEnemyChr(i32)` overload"]
194 pub fn to_enemy_chr(i: impl ::core::convert::Into<i32>) -> crate::combat::character::Character {
195 unsafe {
196 ::unity::il2cpp_call!((::unity::module_base()+0x247cbf0usize)as*mut u8,crate::combat::character::Character;
197(i32)::core::convert::Into::into(i))
198 }
199 }
200
201 #[doc = "`ToGrandewChr(i32)` overload"]
202 pub fn to_grandew_chr(i: impl ::core::convert::Into<i32>) -> crate::combat::character::Character {
203 unsafe {
204 ::unity::il2cpp_call!((::unity::module_base()+0x247cc50usize)as*mut u8,crate::combat::character::Character;
205(i32)::core::convert::Into::into(i))
206 }
207 }
208
209 #[doc = "`ToMasterChr(i32)` overload"]
210 pub fn to_master_chr(i: impl ::core::convert::Into<i32>) -> crate::combat::character::Character {
211 unsafe {
212 ::unity::il2cpp_call!((::unity::module_base()+0x247cce0usize)as*mut u8,crate::combat::character::Character;
213(i32)::core::convert::Into::into(i))
214 }
215 }
216
217 #[doc = "`ToPartnerChr(i32)` overload"]
218 pub fn to_partner_chr(i: impl ::core::convert::Into<i32>) -> crate::combat::character::Character {
219 unsafe {
220 ::unity::il2cpp_call!((::unity::module_base()+0x247cd50usize)as*mut u8,crate::combat::character::Character;
221(i32)::core::convert::Into::into(i))
222 }
223 }
224
225 #[doc = "`ToEnemyGrandewChr(i32)` overload"]
226 pub fn to_enemy_grandew_chr(i: impl ::core::convert::Into<i32>) -> crate::combat::character::Character {
227 unsafe {
228 ::unity::il2cpp_call!((::unity::module_base()+0x247cdc0usize)as*mut u8,crate::combat::character::Character;
229(i32)::core::convert::Into::into(i))
230 }
231 }
232
233 #[doc = "`ConvertFrom(crate::app::battleside::BattleSide_Type, bool)` overload"]
234 pub fn convert_from(
235 side_type: impl ::core::convert::Into<crate::app::battleside::BattleSide_Type>,
236 is_reversed: impl ::core::convert::Into<bool>,
237 ) -> i32 {
238 unsafe {
239 ::unity::il2cpp_call!((::unity::module_base()+0x247ce20usize)as*mut u8,i32;
240(crate::app::battleside::BattleSide_Type)::core::convert::Into::into(side_type),(bool)::core::convert::Into::into(is_reversed))
241 }
242 }
243}
244
245#[cfg(feature = "combat-side")]
246impl Side {
247 pub fn to_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
249 }
250
251 pub fn from_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
253 }
254
255 pub fn is_master_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
257 }
258
259 pub fn is_paired_grandew_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
261 }
262
263 pub fn is_chain_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
265 }
266
267 pub fn is_chain_atk_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
269 }
270
271 pub fn is_chain_grd_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
273 }
274
275 pub fn is_player_side_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
277 }
278
279 pub fn is_enemy_side_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
281 }
282
283 pub fn to_enemy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
284 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
285 }
286
287 pub fn to_enemy_grandew_method_info() -> &'static ::unity::il2cpp::MethodInfo {
288 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
289 }
290
291 pub fn to_grandew_method_info() -> &'static ::unity::il2cpp::MethodInfo {
292 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
293 }
294
295 pub fn to_master_method_info() -> &'static ::unity::il2cpp::MethodInfo {
296 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
297 }
298
299 pub fn to_partner_method_info() -> &'static ::unity::il2cpp::MethodInfo {
300 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
301 }
302
303 pub fn to_mirror_side_method_info() -> &'static ::unity::il2cpp::MethodInfo {
304 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
305 }
306
307 pub fn to_enemy_chr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
308 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
309 }
310
311 pub fn to_grandew_chr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
312 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
313 }
314
315 pub fn to_master_chr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
316 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
317 }
318
319 pub fn to_partner_chr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
320 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
321 }
322
323 pub fn to_enemy_grandew_chr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
324 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
325 }
326
327 pub fn convert_from_method_info() -> &'static ::unity::il2cpp::MethodInfo {
328 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
329 }
330}
331
332#[cfg(feature = "combat-side")]
333#[doc(hidden)]
334pub mod prelude {
335 pub use super::{ISide, Side};
336 pub use crate::system::object::IObject;
337 #[cfg(feature = "system-object")]
338 pub use crate::system::object::IObjectMethods;
339}