1#[cfg(feature = "combat-skillstack-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/skillstack/SkillStack_Packet.md"))]
11 #[::unity::class(namespace = "Combat", name = "SkillStack.Packet")]
12 #[parent(crate::system::object::Object)]
13 pub struct SkillStack_Packet {}
14
15 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/skillstack/SkillStack.md"))]
16 #[::unity::class(namespace = "Combat", name = "SkillStack")]
17 #[parent(crate::system::object::Object)]
18 pub struct SkillStack {
19 #[offset(16)]
20 #[rename(name = "list")]
21 pub list: crate::system::collections::generic::list_1::List_1<crate::combat::skillstack::SkillStack_Packet>,
22 #[offset(24)]
23 #[rename(name = "damages")]
24 pub damages_field: ::unity::Array<i32>,
25 }
26}
27
28#[cfg(feature = "combat-skillstack-types")]
29pub use __types::*;
30
31#[cfg(feature = "combat-skillstack")]
32pub trait ISkillStack_PacketMethods: ISkillStack_Packet {
33 #[doc = "`get_FromSide()` overload"]
34 fn get_from_side(self) -> i32 {
35 unsafe {
36 let __receiver = <SkillStack_Packet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
37 ::unity::il2cpp_call!((::unity::module_base()+0x1d6f420usize)as*mut u8,i32;
38(SkillStack_Packet)__receiver)
39 }
40 }
41 #[doc = "`set_FromSide(i32)` overload"]
42 fn set_from_side(self, value: impl ::core::convert::Into<i32>) -> () {
43 unsafe {
44 let __receiver = <SkillStack_Packet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
45 ::unity::il2cpp_call!((::unity::module_base()+0x1d6f430usize)as*mut u8,();
46(SkillStack_Packet)__receiver,(i32)::core::convert::Into::into(value))
47 }
48 }
49 #[doc = "`get_ToSide()` overload"]
50 fn get_to_side(self) -> i32 {
51 unsafe {
52 let __receiver = <SkillStack_Packet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53 ::unity::il2cpp_call!((::unity::module_base()+0x1d6f440usize)as*mut u8,i32;
54(SkillStack_Packet)__receiver)
55 }
56 }
57 #[doc = "`set_ToSide(i32)` overload"]
58 fn set_to_side(self, value: impl ::core::convert::Into<i32>) -> () {
59 unsafe {
60 let __receiver = <SkillStack_Packet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
61 ::unity::il2cpp_call!((::unity::module_base()+0x1d6f450usize)as*mut u8,();
62(SkillStack_Packet)__receiver,(i32)::core::convert::Into::into(value))
63 }
64 }
65 #[doc = "`ChangeSideFromTo_For絆神竜破(i32, i32)` overload"]
66 fn change_side_from_to_for絆神竜破(self, old: impl ::core::convert::Into<i32>, new: impl ::core::convert::Into<i32>) -> () {
67 unsafe {
68 let __receiver = <SkillStack_Packet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
69 ::unity::il2cpp_call!((::unity::module_base()+0x1d6f460usize)as*mut u8,();
70(SkillStack_Packet)__receiver,(i32)::core::convert::Into::into(old),(i32)::core::convert::Into::into(new))
71 }
72 }
73 #[doc = "`get_Data()` overload"]
74 fn get_data(self) -> crate::app::skilldata::SkillData {
75 unsafe {
76 let __receiver = <SkillStack_Packet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
77 ::unity::il2cpp_call!((::unity::module_base()+0x1d6f4a0usize)as*mut u8,crate::app::skilldata::SkillData;
78(SkillStack_Packet)__receiver)
79 }
80 }
81 #[doc = "`set_Data(crate::app::skilldata::SkillData)` overload"]
82 fn set_data(self, value: impl ::core::convert::Into<crate::app::skilldata::SkillData>) -> () {
83 unsafe {
84 let __receiver = <SkillStack_Packet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85 ::unity::il2cpp_call!((::unity::module_base()+0x1d6f4b0usize)as*mut u8,();
86(SkillStack_Packet)__receiver,(crate::app::skilldata::SkillData)::core::convert::Into::into(value))
87 }
88 }
89 #[doc = "`.ctor(i32, i32, crate::app::skilldata::SkillData)` overload"]
90 fn ctor(
91 self,
92 from_side: impl ::core::convert::Into<i32>,
93 to_side: impl ::core::convert::Into<i32>,
94 data: impl ::core::convert::Into<crate::app::skilldata::SkillData>,
95 ) -> () {
96 unsafe {
97 let __receiver = <SkillStack_Packet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 ::unity::il2cpp_call!((::unity::module_base()+0x1d6f4c0usize)as*mut u8,();
99(SkillStack_Packet)__receiver,(i32)::core::convert::Into::into(from_side),(i32)::core::convert::Into::into(to_side),(crate::app::skilldata::SkillData)::core::convert::Into::into(data))
100 }
101 }
102 #[doc = "`IsEqualTo(i32, i32, crate::app::skilldata::SkillData)` overload"]
103 fn is_equal_to(
104 self,
105 from_side: impl ::core::convert::Into<i32>,
106 to_side: impl ::core::convert::Into<i32>,
107 data: impl ::core::convert::Into<crate::app::skilldata::SkillData>,
108 ) -> bool {
109 unsafe {
110 let __receiver = <SkillStack_Packet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111 ::unity::il2cpp_call!((::unity::module_base()+0x1d6f510usize)as*mut u8,bool;
112(SkillStack_Packet)__receiver,(i32)::core::convert::Into::into(from_side),(i32)::core::convert::Into::into(to_side),(crate::app::skilldata::SkillData)::core::convert::Into::into(data))
113 }
114 }
115}
116
117#[cfg(feature = "combat-skillstack")]
118impl<__T: ISkillStack_Packet> ISkillStack_PacketMethods for __T {}
119
120#[cfg(feature = "combat-skillstack")]
121impl SkillStack_Packet {
122 pub fn get_from_side_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
124 }
125
126 pub fn set_from_side_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
128 }
129
130 pub fn get_to_side_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
132 }
133
134 pub fn set_to_side_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
136 }
137
138 pub fn change_side_from_to_for絆神竜破_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
140 }
141
142 pub fn get_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
144 }
145
146 pub fn set_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
148 }
149
150 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
152 }
153
154 pub fn is_equal_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
156 }
157}
158
159#[cfg(feature = "combat-skillstack")]
160impl SkillStack_Packet {
161 #[doc = "`.ctor(i32, i32, crate::app::skilldata::SkillData)` — overload selector"]
162 pub fn new(from_side: i32, to_side: i32, data: crate::app::skilldata::SkillData) -> Self {
163 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
164 panic!(
165 "{}
166::{}
167 failed to instantiate",
168 ::core::stringify!(SkillStack_Packet),
169 ::core::stringify!(new),
170 )
171 });
172 <Self as ISkillStack_PacketMethods>::ctor(this, from_side, to_side, data);
173 this
174 }
175}
176
177#[cfg(feature = "combat-skillstack")]
178pub trait ISkillStackMethods: ISkillStack {
179 #[doc = "`get_DebuggerDisplay()` overload"]
180 fn get_debugger_display(self) -> ::unity::Il2CppString {
181 unsafe {
182 let __receiver = <SkillStack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183 ::unity::il2cpp_call!((::unity::module_base()+0x1fda090usize)as*mut u8, ::unity::Il2CppString;
184(SkillStack)__receiver)
185 }
186 }
187 #[doc = "`GetEnumerator()` overload"]
188 fn get_enumerator(self) -> crate::system::collections::generic::ienumerator_1::IEnumerator_1<crate::combat::skillstack::SkillStack_Packet> {
189 unsafe {
190 let __receiver = <SkillStack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191 ::unity::il2cpp_call!((::unity::module_base()+0x1fda2e0usize)as*mut u8,crate::system::collections::generic::ienumerator_1::IEnumerator_1<crate::combat::skillstack::SkillStack_Packet> ;
192(SkillStack)__receiver)
193 }
194 }
195 #[doc = "`Damages(i32)` overload"]
196 fn damages(self, side: impl ::core::convert::Into<i32>) -> i32 {
197 unsafe {
198 let __receiver = <SkillStack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
199 ::unity::il2cpp_call!((::unity::module_base()+0x1fda380usize)as*mut u8,i32;
200(SkillStack)__receiver,(i32)::core::convert::Into::into(side))
201 }
202 }
203 #[doc = "`HasDamage()` overload"]
204 fn has_damage(self) -> bool {
205 unsafe {
206 let __receiver = <SkillStack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207 ::unity::il2cpp_call!((::unity::module_base()+0x1fda3d0usize)as*mut u8,bool;
208(SkillStack)__receiver)
209 }
210 }
211 #[doc = "`PushSkill(crate::app::skilldata::SkillData, i32, i32, i32, i32)` overload"]
212 fn push_skill(
213 self,
214 data: impl ::core::convert::Into<crate::app::skilldata::SkillData>,
215 from_side: impl ::core::convert::Into<i32>,
216 to_side: impl ::core::convert::Into<i32>,
217 pl_damage: impl ::core::convert::Into<i32>,
218 en_damage: impl ::core::convert::Into<i32>,
219 ) -> () {
220 unsafe {
221 let __receiver = <SkillStack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
222 ::unity::il2cpp_call!((::unity::module_base()+0x1fda420usize)as*mut u8,();
223(SkillStack)__receiver,(crate::app::skilldata::SkillData)::core::convert::Into::into(data),(i32)::core::convert::Into::into(from_side),(i32)::core::convert::Into::into(to_side),(i32)::core::convert::Into::into(pl_damage),(i32)::core::convert::Into::into(en_damage))
224 }
225 }
226 #[doc = "`ClearDamages()` overload"]
227 fn clear_damages(self) -> () {
228 unsafe {
229 let __receiver = <SkillStack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
230 ::unity::il2cpp_call!((::unity::module_base()+0x1fda640usize)as*mut u8,();
231(SkillStack)__receiver)
232 }
233 }
234 #[doc = "`CloneAndClearIfNotNull()` overload"]
235 fn clone_and_clear_if_not_null(self) -> crate::combat::skillstack::SkillStack {
236 unsafe {
237 let __receiver = <SkillStack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
238 ::unity::il2cpp_call!((::unity::module_base()+0x1fda6a0usize)as*mut u8,crate::combat::skillstack::SkillStack;
239(SkillStack)__receiver)
240 }
241 }
242 #[doc = "`CreatePhaseForPopup(crate::combat::phase::Phase)` overload"]
243 fn create_phase_for_popup(self, src: impl ::core::convert::Into<crate::combat::phase::Phase>) -> crate::combat::phase::Phase {
244 unsafe {
245 let __receiver = <SkillStack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
246 ::unity::il2cpp_call!((::unity::module_base()+0x1fda970usize)as*mut u8,crate::combat::phase::Phase;
247(SkillStack)__receiver,(crate::combat::phase::Phase)::core::convert::Into::into(src))
248 }
249 }
250 #[doc = "`PreloadForAssetLoader()` overload"]
251 fn preload_for_asset_loader(self) -> () {
252 unsafe {
253 let __receiver = <SkillStack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
254 ::unity::il2cpp_call!((::unity::module_base()+0x1fdaab0usize)as*mut u8,();
255(SkillStack)__receiver)
256 }
257 }
258 #[doc = "`CalcFreezeDuration()` overload"]
259 fn calc_freeze_duration(self) -> f32 {
260 unsafe {
261 let __receiver = <SkillStack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
262 ::unity::il2cpp_call!((::unity::module_base()+0x1fdabc0usize)as*mut u8,f32;
263(SkillStack)__receiver)
264 }
265 }
266 #[doc = "`.ctor()` overload"]
267 fn ctor(self) -> () {
268 unsafe {
269 let __receiver = <SkillStack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
270 ::unity::il2cpp_call!((::unity::module_base()+0x1fda8a0usize)as*mut u8,();
271(SkillStack)__receiver)
272 }
273 }
274}
275
276#[cfg(feature = "combat-skillstack")]
277impl<__T: ISkillStack> ISkillStackMethods for __T {}
278
279#[cfg(feature = "combat-skillstack")]
280impl SkillStack {
281 pub fn get_debugger_display_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
283 }
284
285 pub fn get_enumerator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
287 }
288
289 pub fn damages_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
291 }
292
293 pub fn has_damage_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
295 }
296
297 pub fn push_skill_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
299 }
300
301 pub fn clear_damages_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
303 }
304
305 pub fn clone_and_clear_if_not_null_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
307 }
308
309 pub fn create_phase_for_popup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
311 }
312
313 pub fn preload_for_asset_loader_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
315 }
316
317 pub fn calc_freeze_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
319 }
320
321 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
323 }
324}
325
326#[cfg(feature = "combat-skillstack")]
327impl SkillStack {
328 #[doc = "`.ctor()` — no args"]
329 pub fn new() -> Self {
330 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
331 panic!(
332 "{}
333::{}
334 failed to instantiate",
335 ::core::stringify!(SkillStack),
336 ::core::stringify!(new),
337 )
338 });
339 <Self as ISkillStackMethods>::ctor(this);
340 this
341 }
342}
343
344#[cfg(feature = "combat-skillstack")]
345#[doc(hidden)]
346pub mod prelude {
347 pub use super::{ISkillStack, ISkillStackMethods, ISkillStack_Packet, ISkillStack_PacketMethods, SkillStack, SkillStack_Packet};
348 pub use crate::system::object::IObject;
349 #[cfg(feature = "system-object")]
350 pub use crate::system::object::IObjectMethods;
351}