1#[cfg(feature = "app-mapranking-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::singletonclass_1::{ISingletonClass_1, SingletonClass_1},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapranking/MapRanking.md"))]
14 #[::unity::class(namespace = "App", name = "MapRanking")]
15 #[parent(crate::app::singletonclass_1::SingletonClass_1<crate::app::mapranking::MapRanking>)]
16 pub struct MapRanking {
17 #[offset(32)]
18 #[rename(name = "pairs")]
19 pub pairs: crate::system::collections::generic::list_1::List_1<crate::app::nexranking::NexRanking_Data>,
20 }
21}
22
23#[cfg(feature = "app-mapranking-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-mapranking")]
27pub trait IMapRankingMethods: IMapRanking {
28 #[doc = "`OnCreate()` overload"]
29 fn on_create(self) -> () {
30 unsafe {
31 let __receiver = <MapRanking 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(5usize).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 5usize,
42 __vt.len(),
43 <MapRanking as ::unity::ClassIdentity>::NAME,
44 "OnCreate",
45 )
46 });
47 let __inner: extern "C" fn(MapRanking, ::unity::OptionalMethod) -> () = ::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 = "`OnDispose()` overload"]
54 fn on_dispose(self) -> () {
55 unsafe {
56 let __receiver = <MapRanking as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 {
58 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
59 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
60 panic!(
61 "unity: virtual slot {}
62 out of range (vtable len {}
63) on the runtime class behind {}
64 (method `{}
65`)",
66 6usize,
67 __vt.len(),
68 <MapRanking as ::unity::ClassIdentity>::NAME,
69 "OnDispose",
70 )
71 });
72 let __inner: extern "C" fn(MapRanking, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
73 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
74 __inner(__receiver, __mi)
75 }
76 }
77 }
78 #[doc = "`RegisterUnit()` overload"]
79 fn register_unit(self) -> () {
80 unsafe {
81 let __receiver = <MapRanking as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82 ::unity::il2cpp_call!((::unity::module_base()+0x235d050usize)as*mut u8,();
83(MapRanking)__receiver)
84 }
85 }
86 #[doc = "`Upload(crate::app::procinst::ProcInst)` overload"]
87 fn upload(self, super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> bool {
88 unsafe {
89 let __receiver = <MapRanking as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90 ::unity::il2cpp_call!((::unity::module_base()+0x235d260usize)as*mut u8,bool;
91(MapRanking)__receiver,(crate::app::procinst::ProcInst)::core::convert::Into::into(super_))
92 }
93 }
94 #[doc = "`GetChapter()` overload"]
95 fn get_chapter(self) -> crate::app::chapterdata::ChapterData {
96 unsafe {
97 let __receiver = <MapRanking as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 ::unity::il2cpp_call!((::unity::module_base()+0x235d140usize)as*mut u8,crate::app::chapterdata::ChapterData;
99(MapRanking)__receiver)
100 }
101 }
102 #[doc = "`get_Version()` overload"]
103 fn get_version(self) -> i32 {
104 unsafe {
105 let __receiver = <MapRanking as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106 {
107 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
108 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
109 panic!(
110 "unity: virtual slot {}
111 out of range (vtable len {}
112) on the runtime class behind {}
113 (method `{}
114`)",
115 4usize,
116 __vt.len(),
117 <MapRanking as ::unity::ClassIdentity>::NAME,
118 "get_Version",
119 )
120 });
121 let __inner: extern "C" fn(MapRanking, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
122 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
123 __inner(__receiver, __mi)
124 }
125 }
126 }
127 #[doc = "`OnSerialize(crate::app::stream_2::Stream_2)` overload"]
128 fn on_serialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
129 unsafe {
130 let __receiver = <MapRanking as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131 {
132 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
133 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
134 panic!(
135 "unity: virtual slot {}
136 out of range (vtable len {}
137) on the runtime class behind {}
138 (method `{}
139`)",
140 11usize,
141 __vt.len(),
142 <MapRanking as ::unity::ClassIdentity>::NAME,
143 "OnSerialize",
144 )
145 });
146 let __inner: extern "C" fn(MapRanking, crate::app::stream_2::Stream_2, ::unity::OptionalMethod) -> () =
147 ::core::mem::transmute(__vi.method_ptr);
148 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
149 __inner(__receiver, ::core::convert::Into::into(stream), __mi)
150 }
151 }
152 }
153 #[doc = "`OnDeserialize(crate::app::stream_2::Stream_2, i32)` overload"]
154 fn on_deserialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>, version: impl ::core::convert::Into<i32>) -> () {
155 unsafe {
156 let __receiver = <MapRanking as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157 {
158 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
159 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
160 panic!(
161 "unity: virtual slot {}
162 out of range (vtable len {}
163) on the runtime class behind {}
164 (method `{}
165`)",
166 12usize,
167 __vt.len(),
168 <MapRanking as ::unity::ClassIdentity>::NAME,
169 "OnDeserialize",
170 )
171 });
172 let __inner: extern "C" fn(MapRanking, crate::app::stream_2::Stream_2, i32, ::unity::OptionalMethod) -> () =
173 ::core::mem::transmute(__vi.method_ptr);
174 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
175 __inner(
176 __receiver,
177 ::core::convert::Into::into(stream),
178 ::core::convert::Into::into(version),
179 __mi,
180 )
181 }
182 }
183 }
184 #[doc = "`DbgDump()` overload"]
185 fn dbg_dump(self) -> () {
186 unsafe {
187 let __receiver = <MapRanking as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
188 ::unity::il2cpp_call!((::unity::module_base()+0x235d6a0usize)as*mut u8,();
189(MapRanking)__receiver)
190 }
191 }
192 #[doc = "`ClearNetSucceeded()` overload"]
193 fn clear_net_succeeded(self) -> () {
194 unsafe {
195 let __receiver = <MapRanking as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
196 ::unity::il2cpp_call!((::unity::module_base()+0x235d3c0usize)as*mut u8,();
197(MapRanking)__receiver)
198 }
199 }
200 #[doc = "`get_IsNetSucceeded()` overload"]
201 fn get_is_net_succeeded(self) -> bool {
202 unsafe {
203 let __receiver = <MapRanking as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
204 ::unity::il2cpp_call!((::unity::module_base()+0x235d8a0usize)as*mut u8,bool;
205(MapRanking)__receiver)
206 }
207 }
208 #[doc = "`.ctor()` overload"]
209 fn ctor(self) -> () {
210 unsafe {
211 let __receiver = <MapRanking as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
212 ::unity::il2cpp_call!((::unity::module_base()+0x235d920usize)as*mut u8,();
213(MapRanking)__receiver)
214 }
215 }
216}
217
218#[cfg(feature = "app-mapranking")]
219impl<__T: IMapRanking> IMapRankingMethods for __T {}
220
221#[cfg(feature = "app-mapranking")]
222impl MapRanking {
223 pub fn on_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
225 }
226
227 pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
228 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
229 }
230
231 pub fn register_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
233 }
234
235 pub fn upload_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
237 }
238
239 pub fn get_chapter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
241 }
242
243 pub fn get_version_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
245 }
246
247 pub fn on_serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
249 }
250
251 pub fn on_deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
253 }
254
255 pub fn dbg_dump_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
257 }
258
259 pub fn clear_net_succeeded_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
261 }
262
263 pub fn get_is_net_succeeded_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
265 }
266
267 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
269 }
270}
271
272#[cfg(feature = "app-mapranking")]
273impl MapRanking {
274 #[doc = "Direct (non-virtual) call to `MapRanking`'s own `OnCreate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
275 pub unsafe fn on_create(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
276 let __mi = Self::on_create_method_info();
277 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
278 __inner(this.into(), ::core::option::Option::None)
279 }
280
281 #[doc = "Direct (non-virtual) call to `MapRanking`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
282 pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
283 let __mi = Self::on_dispose_method_info();
284 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
285 __inner(this.into(), ::core::option::Option::None)
286 }
287
288 #[doc = "Direct (non-virtual) call to `MapRanking`'s own `get_Version`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
289 pub unsafe fn get_version(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
290 let __mi = Self::get_version_method_info();
291 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
292 __inner(this.into(), ::core::option::Option::None)
293 }
294
295 #[doc = "Direct (non-virtual) call to `MapRanking`'s own `OnSerialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
296 pub unsafe fn on_serialize(this: impl ::core::convert::Into<::unity::IlInstance>, stream: crate::app::stream_2::Stream_2) -> () {
297 let __mi = Self::on_serialize_method_info();
298 let __inner: extern "C" fn(::unity::IlInstance, crate::app::stream_2::Stream_2, ::unity::OptionalMethod) -> () =
299 ::core::mem::transmute(__mi.method_ptr);
300 __inner(this.into(), stream, ::core::option::Option::None)
301 }
302
303 #[doc = "Direct (non-virtual) call to `MapRanking`'s own `OnDeserialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
304 pub unsafe fn on_deserialize(this: impl ::core::convert::Into<::unity::IlInstance>, stream: crate::app::stream_2::Stream_2, version: i32) -> () {
305 let __mi = Self::on_deserialize_method_info();
306 let __inner: extern "C" fn(::unity::IlInstance, crate::app::stream_2::Stream_2, i32, ::unity::OptionalMethod) -> () =
307 ::core::mem::transmute(__mi.method_ptr);
308 __inner(this.into(), stream, version, ::core::option::Option::None)
309 }
310}
311
312#[cfg(feature = "app-mapranking")]
313impl MapRanking {
314 #[doc = "`.ctor()` — no args"]
315 pub fn new() -> Self {
316 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
317 panic!(
318 "{}
319::{}
320 failed to instantiate",
321 ::core::stringify!(MapRanking),
322 ::core::stringify!(new),
323 )
324 });
325 <Self as IMapRankingMethods>::ctor(this);
326 this
327 }
328}
329
330#[cfg(feature = "app-mapranking")]
331#[doc(hidden)]
332pub mod prelude {
333 pub use super::{IMapRanking, IMapRankingMethods, MapRanking};
334 #[cfg(feature = "app-singletonclass_1")]
335 pub use crate::app::singletonclass_1::ISingletonClass_1Methods;
336 #[cfg(feature = "system-object")]
337 pub use crate::system::object::IObjectMethods;
338 pub use crate::{app::singletonclass_1::ISingletonClass_1, system::object::IObject};
339}