engage/generated/app/
playreportcommon.rs1#[cfg(feature = "app-playreportcommon-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::playreportsendbase::{IPlayReportSendBase, PlayReportSendBase},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/playreportcommon/PlayReportCommon.md"))]
14 #[::unity::class(namespace = "App", name = "PlayReportCommon")]
15 #[parent(crate::app::playreportsendbase::PlayReportSendBase)]
16 pub struct PlayReportCommon {
17 #[static_field]
18 #[rename(name = "s_ReportVersion")]
19 pub s_report_version: i32,
20 }
21}
22
23#[cfg(feature = "app-playreportcommon-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-playreportcommon")]
27pub trait IPlayReportCommonMethods: IPlayReportCommon {
28 #[doc = "`GetBufferSizeImpl()` overload"]
29 fn get_buffer_size_impl(self) -> i64 {
30 unsafe {
31 let __receiver = <PlayReportCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32 {
33 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
34 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
35 panic!(
36 "unity: virtual slot {}
37 out of range (vtable len {}
38) on the runtime class behind {}
39 (method `{}
40`)",
41 4usize,
42 __vt.len(),
43 <PlayReportCommon as ::unity::ClassIdentity>::NAME,
44 "GetBufferSizeImpl",
45 )
46 });
47 let __inner: extern "C" fn(PlayReportCommon, ::unity::OptionalMethod) -> i64 = ::core::mem::transmute(__vi.method_ptr);
48 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
49 __inner(__receiver, __mi)
50 }
51 }
52 }
53 #[doc = "`ReportChapterClear()` overload"]
54 fn report_chapter_clear(self) -> () {
55 unsafe {
56 let __receiver = <PlayReportCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 ::unity::il2cpp_call!((::unity::module_base()+0x280c3e0usize)as*mut u8,();
58(PlayReportCommon)__receiver)
59 }
60 }
61 #[doc = "`ReportSortie()` overload"]
62 fn report_sortie(self) -> () {
63 unsafe {
64 let __receiver = <PlayReportCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65 ::unity::il2cpp_call!((::unity::module_base()+0x280c830usize)as*mut u8,();
66(PlayReportCommon)__receiver)
67 }
68 }
69 #[doc = "`SendCommon(::unity::Il2CppString, bool)` overload"]
70 fn send_common(self, send_type: impl ::core::convert::Into<::unity::Il2CppString>, is_send_hubs: impl ::core::convert::Into<bool>) -> () {
71 unsafe {
72 let __receiver = <PlayReportCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73 ::unity::il2cpp_call!((::unity::module_base()+0x280c440usize)as*mut u8,();
74(PlayReportCommon)__receiver,(::unity::Il2CppString)::core::convert::Into::into(send_type),(bool)::core::convert::Into::into(is_send_hubs))
75 }
76 }
77 #[doc = "`ReportBasic()` overload"]
78 fn report_basic(self) -> () {
79 unsafe {
80 let __receiver = <PlayReportCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81 ::unity::il2cpp_call!((::unity::module_base()+0x280ccd0usize)as*mut u8,();
82(PlayReportCommon)__receiver)
83 }
84 }
85 #[doc = "`GetProgress()` overload"]
86 fn get_progress(self) -> i32 {
87 unsafe {
88 let __receiver = <PlayReportCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89 ::unity::il2cpp_call!((::unity::module_base()+0x28109a0usize)as*mut u8,i32;
90(PlayReportCommon)__receiver)
91 }
92 }
93 #[doc = "`IsGodCleared(i32)` overload"]
94 fn is_god_cleared(self, idx: impl ::core::convert::Into<i32>) -> bool {
95 unsafe {
96 let __receiver = <PlayReportCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97 ::unity::il2cpp_call!((::unity::module_base()+0x2811400usize)as*mut u8,bool;
98(PlayReportCommon)__receiver,(i32)::core::convert::Into::into(idx))
99 }
100 }
101 #[doc = "`GetEvilProgress()` overload"]
102 fn get_evil_progress(self) -> i32 {
103 unsafe {
104 let __receiver = <PlayReportCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105 ::unity::il2cpp_call!((::unity::module_base()+0x2810b20usize)as*mut u8,i32;
106(PlayReportCommon)__receiver)
107 }
108 }
109 #[doc = "`GetChapterType()` overload"]
110 fn get_chapter_type(self) -> ::unity::Il2CppString {
111 unsafe {
112 let __receiver = <PlayReportCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113 ::unity::il2cpp_call!((::unity::module_base()+0x2810f10usize)as*mut u8, ::unity::Il2CppString;
114(PlayReportCommon)__receiver)
115 }
116 }
117 #[doc = "`ReportForce()` overload"]
118 fn report_force(self) -> () {
119 unsafe {
120 let __receiver = <PlayReportCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121 ::unity::il2cpp_call!((::unity::module_base()+0x280df70usize)as*mut u8,();
122(PlayReportCommon)__receiver)
123 }
124 }
125 #[doc = "`ReportConfig()` overload"]
126 fn report_config(self) -> () {
127 unsafe {
128 let __receiver = <PlayReportCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129 ::unity::il2cpp_call!((::unity::module_base()+0x280d6d0usize)as*mut u8,();
130(PlayReportCommon)__receiver)
131 }
132 }
133 #[doc = "`ReportUnit()` overload"]
134 fn report_unit(self) -> () {
135 unsafe {
136 let __receiver = <PlayReportCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137 ::unity::il2cpp_call!((::unity::module_base()+0x280e2b0usize)as*mut u8,();
138(PlayReportCommon)__receiver)
139 }
140 }
141 #[doc = "`GetForceMask()` overload"]
142 fn get_force_mask(self) -> u32 {
143 unsafe {
144 let __receiver = <PlayReportCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
145 ::unity::il2cpp_call!((::unity::module_base()+0x2811540usize)as*mut u8,u32;
146(PlayReportCommon)__receiver)
147 }
148 }
149 #[doc = "`ReportUnitImpl(crate::app::unit::Unit, i32, i32)` overload"]
150 fn report_unit_impl(
151 self,
152 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
153 use_report_no: impl ::core::convert::Into<i32>,
154 in_report_count: impl ::core::convert::Into<i32>,
155 ) -> () {
156 unsafe {
157 let __receiver = <PlayReportCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158 ::unity::il2cpp_call!((::unity::module_base()+0x28115c0usize)as*mut u8,();
159(PlayReportCommon)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(use_report_no),(i32)::core::convert::Into::into(in_report_count))
160 }
161 }
162 #[doc = "`IsPlayerUnit(crate::app::unit::Unit)` overload"]
163 fn is_player_unit(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> bool {
164 unsafe {
165 let __receiver = <PlayReportCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166 ::unity::il2cpp_call!((::unity::module_base()+0x2811550usize)as*mut u8,bool;
167(PlayReportCommon)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
168 }
169 }
170 #[doc = "`IsPlayerGodPool(crate::app::godunit::GodUnit)` overload"]
171 fn is_player_god_pool(self, god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>) -> bool {
172 unsafe {
173 let __receiver = <PlayReportCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174 ::unity::il2cpp_call!((::unity::module_base()+0x2813750usize)as*mut u8,bool;
175(PlayReportCommon)__receiver,(crate::app::godunit::GodUnit)::core::convert::Into::into(god_unit))
176 }
177 }
178 #[doc = "`GodPoolLevel(crate::app::unit::Unit, ::unity::Il2CppString)` overload"]
179 fn god_pool_level(
180 self,
181 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
182 god_name: impl ::core::convert::Into<::unity::Il2CppString>,
183 ) -> i32 {
184 unsafe {
185 let __receiver = <PlayReportCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
186 ::unity::il2cpp_call!((::unity::module_base()+0x28133d0usize)as*mut u8,i32;
187(PlayReportCommon)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(::unity::Il2CppString)::core::convert::Into::into(god_name))
188 }
189 }
190 #[doc = "`ReportReliance()` overload"]
191 fn report_reliance(self) -> () {
192 unsafe {
193 let __receiver = <PlayReportCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
194 ::unity::il2cpp_call!((::unity::module_base()+0x280e670usize)as*mut u8,();
195(PlayReportCommon)__receiver)
196 }
197 }
198 #[doc = "`ReportHub()` overload"]
199 fn report_hub(self) -> () {
200 unsafe {
201 let __receiver = <PlayReportCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
202 ::unity::il2cpp_call!((::unity::module_base()+0x280eca0usize)as*mut u8,();
203(PlayReportCommon)__receiver)
204 }
205 }
206 #[doc = "`ReportOther()` overload"]
207 fn report_other(self) -> () {
208 unsafe {
209 let __receiver = <PlayReportCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
210 ::unity::il2cpp_call!((::unity::module_base()+0x2810670usize)as*mut u8,();
211(PlayReportCommon)__receiver)
212 }
213 }
214 #[doc = "`.ctor()` overload"]
215 fn ctor(self) -> () {
216 unsafe {
217 let __receiver = <PlayReportCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
218 ::unity::il2cpp_call!((::unity::module_base()+0x2813790usize)as*mut u8,();
219(PlayReportCommon)__receiver)
220 }
221 }
222}
223
224#[cfg(feature = "app-playreportcommon")]
225impl<__T: IPlayReportCommon> IPlayReportCommonMethods for __T {}
226
227#[cfg(feature = "app-playreportcommon")]
228impl PlayReportCommon {
229 pub fn get_buffer_size_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
230 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
231 }
232
233 pub fn report_chapter_clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
234 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
235 }
236
237 pub fn report_sortie_method_info() -> &'static ::unity::il2cpp::MethodInfo {
238 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
239 }
240
241 pub fn send_common_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
243 }
244
245 pub fn report_basic_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
247 }
248
249 pub fn get_progress_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
251 }
252
253 pub fn is_god_cleared_method_info() -> &'static ::unity::il2cpp::MethodInfo {
254 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
255 }
256
257 pub fn get_evil_progress_method_info() -> &'static ::unity::il2cpp::MethodInfo {
258 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
259 }
260
261 pub fn get_chapter_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
263 }
264
265 pub fn report_force_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
267 }
268
269 pub fn report_config_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
271 }
272
273 pub fn report_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
275 }
276
277 pub fn get_force_mask_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
279 }
280
281 pub fn report_unit_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
283 }
284
285 pub fn is_player_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
287 }
288
289 pub fn is_player_god_pool_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
291 }
292
293 pub fn god_pool_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
295 }
296
297 pub fn report_reliance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
299 }
300
301 pub fn report_hub_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
303 }
304
305 pub fn report_other_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
307 }
308
309 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
311 }
312}
313
314#[cfg(feature = "app-playreportcommon")]
315impl PlayReportCommon {
316 #[doc = "Direct (non-virtual) call to `PlayReportCommon`'s own `GetBufferSizeImpl`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
317 pub unsafe fn get_buffer_size_impl(this: impl ::core::convert::Into<::unity::IlInstance>) -> i64 {
318 let __mi = Self::get_buffer_size_impl_method_info();
319 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i64 = ::core::mem::transmute(__mi.method_ptr);
320 __inner(this.into(), ::core::option::Option::None)
321 }
322}
323
324#[cfg(feature = "app-playreportcommon")]
325impl PlayReportCommon {
326 #[doc = "`.ctor()` — no args"]
327 pub fn new() -> Self {
328 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
329 panic!(
330 "{}
331::{}
332 failed to instantiate",
333 ::core::stringify!(PlayReportCommon),
334 ::core::stringify!(new),
335 )
336 });
337 <Self as IPlayReportCommonMethods>::ctor(this);
338 this
339 }
340}
341
342#[cfg(feature = "app-playreportcommon")]
343#[doc(hidden)]
344pub mod prelude {
345 pub use super::{IPlayReportCommon, IPlayReportCommonMethods, PlayReportCommon};
346 #[cfg(feature = "app-playreportsendbase")]
347 pub use crate::app::playreportsendbase::IPlayReportSendBaseMethods;
348 #[cfg(feature = "system-object")]
349 pub use crate::system::object::IObjectMethods;
350 pub use crate::{app::playreportsendbase::IPlayReportSendBase, system::object::IObject};
351}