engage/generated/app/
battleinfoparam.rs1#[cfg(feature = "app-battleinfoparam-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/app/battleinfoparam/BattleInfoParam.md"))]
11 #[::unity::class(namespace = "App", name = "BattleInfoParam")]
12 #[parent(crate::system::object::Object)]
13 pub struct BattleInfoParam {}
14}
15
16#[cfg(feature = "app-battleinfoparam-types")]
17pub use __types::*;
18
19#[cfg(feature = "app-battleinfoparam")]
20pub trait IBattleInfoParamMethods: IBattleInfoParam {
21 #[doc = "`get_MaxHp()` overload"]
22 fn get_max_hp(self) -> i32 {
23 unsafe {
24 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
25 ::unity::il2cpp_call!((::unity::module_base()+0x1e842c0usize)as*mut u8,i32;
26(BattleInfoParam)__receiver)
27 }
28 }
29 #[doc = "`set_MaxHp(i32)` overload"]
30 fn set_max_hp(self, value: impl ::core::convert::Into<i32>) -> () {
31 unsafe {
32 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
33 ::unity::il2cpp_call!((::unity::module_base()+0x1e842d0usize)as*mut u8,();
34(BattleInfoParam)__receiver,(i32)::core::convert::Into::into(value))
35 }
36 }
37 #[doc = "`get_Attack()` overload"]
38 fn get_attack(self) -> i32 {
39 unsafe {
40 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41 ::unity::il2cpp_call!((::unity::module_base()+0x1e842e0usize)as*mut u8,i32;
42(BattleInfoParam)__receiver)
43 }
44 }
45 #[doc = "`set_Attack(i32)` overload"]
46 fn set_attack(self, value: impl ::core::convert::Into<i32>) -> () {
47 unsafe {
48 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49 ::unity::il2cpp_call!((::unity::module_base()+0x1e842f0usize)as*mut u8,();
50(BattleInfoParam)__receiver,(i32)::core::convert::Into::into(value))
51 }
52 }
53 #[doc = "`get_Hit()` overload"]
54 fn get_hit(self) -> i32 {
55 unsafe {
56 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 ::unity::il2cpp_call!((::unity::module_base()+0x1e84300usize)as*mut u8,i32;
58(BattleInfoParam)__receiver)
59 }
60 }
61 #[doc = "`set_Hit(i32)` overload"]
62 fn set_hit(self, value: impl ::core::convert::Into<i32>) -> () {
63 unsafe {
64 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65 ::unity::il2cpp_call!((::unity::module_base()+0x1e84310usize)as*mut u8,();
66(BattleInfoParam)__receiver,(i32)::core::convert::Into::into(value))
67 }
68 }
69 #[doc = "`get_Critical()` overload"]
70 fn get_critical(self) -> i32 {
71 unsafe {
72 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73 ::unity::il2cpp_call!((::unity::module_base()+0x1e84320usize)as*mut u8,i32;
74(BattleInfoParam)__receiver)
75 }
76 }
77 #[doc = "`set_Critical(i32)` overload"]
78 fn set_critical(self, value: impl ::core::convert::Into<i32>) -> () {
79 unsafe {
80 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81 ::unity::il2cpp_call!((::unity::module_base()+0x1e84330usize)as*mut u8,();
82(BattleInfoParam)__receiver,(i32)::core::convert::Into::into(value))
83 }
84 }
85 #[doc = "`get_Avoid()` overload"]
86 fn get_avoid(self) -> i32 {
87 unsafe {
88 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89 ::unity::il2cpp_call!((::unity::module_base()+0x1e84340usize)as*mut u8,i32;
90(BattleInfoParam)__receiver)
91 }
92 }
93 #[doc = "`set_Avoid(i32)` overload"]
94 fn set_avoid(self, value: impl ::core::convert::Into<i32>) -> () {
95 unsafe {
96 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97 ::unity::il2cpp_call!((::unity::module_base()+0x1e84350usize)as*mut u8,();
98(BattleInfoParam)__receiver,(i32)::core::convert::Into::into(value))
99 }
100 }
101 #[doc = "`get_Secure()` overload"]
102 fn get_secure(self) -> i32 {
103 unsafe {
104 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105 ::unity::il2cpp_call!((::unity::module_base()+0x1e84360usize)as*mut u8,i32;
106(BattleInfoParam)__receiver)
107 }
108 }
109 #[doc = "`set_Secure(i32)` overload"]
110 fn set_secure(self, value: impl ::core::convert::Into<i32>) -> () {
111 unsafe {
112 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113 ::unity::il2cpp_call!((::unity::module_base()+0x1e84370usize)as*mut u8,();
114(BattleInfoParam)__receiver,(i32)::core::convert::Into::into(value))
115 }
116 }
117 #[doc = "`get_Continuous()` overload"]
118 fn get_continuous(self) -> i32 {
119 unsafe {
120 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121 ::unity::il2cpp_call!((::unity::module_base()+0x1e84380usize)as*mut u8,i32;
122(BattleInfoParam)__receiver)
123 }
124 }
125 #[doc = "`set_Continuous(i32)` overload"]
126 fn set_continuous(self, value: impl ::core::convert::Into<i32>) -> () {
127 unsafe {
128 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129 ::unity::il2cpp_call!((::unity::module_base()+0x1e84390usize)as*mut u8,();
130(BattleInfoParam)__receiver,(i32)::core::convert::Into::into(value))
131 }
132 }
133 #[doc = "`get_TerrainDefense()` overload"]
134 fn get_terrain_defense(self) -> i32 {
135 unsafe {
136 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137 ::unity::il2cpp_call!((::unity::module_base()+0x1e843a0usize)as*mut u8,i32;
138(BattleInfoParam)__receiver)
139 }
140 }
141 #[doc = "`set_TerrainDefense(i32)` overload"]
142 fn set_terrain_defense(self, value: impl ::core::convert::Into<i32>) -> () {
143 unsafe {
144 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
145 ::unity::il2cpp_call!((::unity::module_base()+0x1e843b0usize)as*mut u8,();
146(BattleInfoParam)__receiver,(i32)::core::convert::Into::into(value))
147 }
148 }
149 #[doc = "`get_TerrainAvoid()` overload"]
150 fn get_terrain_avoid(self) -> i32 {
151 unsafe {
152 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153 ::unity::il2cpp_call!((::unity::module_base()+0x1e843c0usize)as*mut u8,i32;
154(BattleInfoParam)__receiver)
155 }
156 }
157 #[doc = "`set_TerrainAvoid(i32)` overload"]
158 fn set_terrain_avoid(self, value: impl ::core::convert::Into<i32>) -> () {
159 unsafe {
160 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161 ::unity::il2cpp_call!((::unity::module_base()+0x1e843d0usize)as*mut u8,();
162(BattleInfoParam)__receiver,(i32)::core::convert::Into::into(value))
163 }
164 }
165 #[doc = "`get_SupportAvoid()` overload"]
166 fn get_support_avoid(self) -> i32 {
167 unsafe {
168 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
169 ::unity::il2cpp_call!((::unity::module_base()+0x1e843e0usize)as*mut u8,i32;
170(BattleInfoParam)__receiver)
171 }
172 }
173 #[doc = "`set_SupportAvoid(i32)` overload"]
174 fn set_support_avoid(self, value: impl ::core::convert::Into<i32>) -> () {
175 unsafe {
176 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177 ::unity::il2cpp_call!((::unity::module_base()+0x1e843f0usize)as*mut u8,();
178(BattleInfoParam)__receiver,(i32)::core::convert::Into::into(value))
179 }
180 }
181 #[doc = "`get_SupportHit()` overload"]
182 fn get_support_hit(self) -> i32 {
183 unsafe {
184 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185 ::unity::il2cpp_call!((::unity::module_base()+0x1e84400usize)as*mut u8,i32;
186(BattleInfoParam)__receiver)
187 }
188 }
189 #[doc = "`set_SupportHit(i32)` overload"]
190 fn set_support_hit(self, value: impl ::core::convert::Into<i32>) -> () {
191 unsafe {
192 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
193 ::unity::il2cpp_call!((::unity::module_base()+0x1e84410usize)as*mut u8,();
194(BattleInfoParam)__receiver,(i32)::core::convert::Into::into(value))
195 }
196 }
197 #[doc = "`get_SupportCritical()` overload"]
198 fn get_support_critical(self) -> i32 {
199 unsafe {
200 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
201 ::unity::il2cpp_call!((::unity::module_base()+0x1e84420usize)as*mut u8,i32;
202(BattleInfoParam)__receiver)
203 }
204 }
205 #[doc = "`set_SupportCritical(i32)` overload"]
206 fn set_support_critical(self, value: impl ::core::convert::Into<i32>) -> () {
207 unsafe {
208 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
209 ::unity::il2cpp_call!((::unity::module_base()+0x1e84430usize)as*mut u8,();
210(BattleInfoParam)__receiver,(i32)::core::convert::Into::into(value))
211 }
212 }
213 #[doc = "`get_SupportSecure()` overload"]
214 fn get_support_secure(self) -> i32 {
215 unsafe {
216 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
217 ::unity::il2cpp_call!((::unity::module_base()+0x1e84440usize)as*mut u8,i32;
218(BattleInfoParam)__receiver)
219 }
220 }
221 #[doc = "`set_SupportSecure(i32)` overload"]
222 fn set_support_secure(self, value: impl ::core::convert::Into<i32>) -> () {
223 unsafe {
224 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
225 ::unity::il2cpp_call!((::unity::module_base()+0x1e84450usize)as*mut u8,();
226(BattleInfoParam)__receiver,(i32)::core::convert::Into::into(value))
227 }
228 }
229 #[doc = "`CalcSimple(crate::app::unit::Unit, crate::app::battleinfo::BattleInfo, crate::app::battleinfo::BattleInfo_Flags, crate::app::unititem::UnitItem)` overload"]
230 fn calc_simple(
231 self,
232 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
233 info: impl ::core::convert::Into<crate::app::battleinfo::BattleInfo>,
234 flags: impl ::core::convert::Into<crate::app::battleinfo::BattleInfo_Flags>,
235 item: impl ::core::convert::Into<crate::app::unititem::UnitItem>,
236 ) -> () {
237 unsafe {
238 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
239 ::unity::il2cpp_call!((::unity::module_base()+0x1e84460usize)as*mut u8,();
240(BattleInfoParam)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::battleinfo::BattleInfo)::core::convert::Into::into(info),(crate::app::battleinfo::BattleInfo_Flags)::core::convert::Into::into(flags),(crate::app::unititem::UnitItem)::core::convert::Into::into(item))
241 }
242 }
243 #[doc = "`.ctor()` overload"]
244 fn ctor(self) -> () {
245 unsafe {
246 let __receiver = <BattleInfoParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
247 ::unity::il2cpp_call!((::unity::module_base()+0x1e84f40usize)as*mut u8,();
248(BattleInfoParam)__receiver)
249 }
250 }
251}
252
253#[cfg(feature = "app-battleinfoparam")]
254impl<__T: IBattleInfoParam> IBattleInfoParamMethods for __T {}
255
256#[cfg(feature = "app-battleinfoparam")]
257impl BattleInfoParam {
258 pub fn get_max_hp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
260 }
261
262 pub fn set_max_hp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
263 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
264 }
265
266 pub fn get_attack_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
268 }
269
270 pub fn set_attack_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
272 }
273
274 pub fn get_hit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
276 }
277
278 pub fn set_hit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
280 }
281
282 pub fn get_critical_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
284 }
285
286 pub fn set_critical_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
288 }
289
290 pub fn get_avoid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
292 }
293
294 pub fn set_avoid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
295 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
296 }
297
298 pub fn get_secure_method_info() -> &'static ::unity::il2cpp::MethodInfo {
299 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
300 }
301
302 pub fn set_secure_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
304 }
305
306 pub fn get_continuous_method_info() -> &'static ::unity::il2cpp::MethodInfo {
307 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
308 }
309
310 pub fn set_continuous_method_info() -> &'static ::unity::il2cpp::MethodInfo {
311 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
312 }
313
314 pub fn get_terrain_defense_method_info() -> &'static ::unity::il2cpp::MethodInfo {
315 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
316 }
317
318 pub fn set_terrain_defense_method_info() -> &'static ::unity::il2cpp::MethodInfo {
319 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
320 }
321
322 pub fn get_terrain_avoid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
323 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
324 }
325
326 pub fn set_terrain_avoid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
327 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
328 }
329
330 pub fn get_support_avoid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
331 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
332 }
333
334 pub fn set_support_avoid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
336 }
337
338 pub fn get_support_hit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
339 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
340 }
341
342 pub fn set_support_hit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
343 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
344 }
345
346 pub fn get_support_critical_method_info() -> &'static ::unity::il2cpp::MethodInfo {
347 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
348 }
349
350 pub fn set_support_critical_method_info() -> &'static ::unity::il2cpp::MethodInfo {
351 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
352 }
353
354 pub fn get_support_secure_method_info() -> &'static ::unity::il2cpp::MethodInfo {
355 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
356 }
357
358 pub fn set_support_secure_method_info() -> &'static ::unity::il2cpp::MethodInfo {
359 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
360 }
361
362 pub fn calc_simple_method_info() -> &'static ::unity::il2cpp::MethodInfo {
363 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
364 }
365
366 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
367 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
368 }
369}
370
371#[cfg(feature = "app-battleinfoparam")]
372impl BattleInfoParam {
373 #[doc = "`.ctor()` — no args"]
374 pub fn new() -> Self {
375 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
376 panic!(
377 "{}
378::{}
379 failed to instantiate",
380 ::core::stringify!(BattleInfoParam),
381 ::core::stringify!(new),
382 )
383 });
384 <Self as IBattleInfoParamMethods>::ctor(this);
385 this
386 }
387}
388
389#[cfg(feature = "app-battleinfoparam")]
390#[doc(hidden)]
391pub mod prelude {
392 pub use super::{BattleInfoParam, IBattleInfoParam, IBattleInfoParamMethods};
393 pub use crate::system::object::IObject;
394 #[cfg(feature = "system-object")]
395 pub use crate::system::object::IObjectMethods;
396}