1#[cfg(feature = "app-godpool-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 singletonclass_1::{ISingletonClass_1, SingletonClass_1},
11 singletonpool_2::{ISingletonPool_2, SingletonPool_2},
12 },
13 system::object::{IObject, Object},
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/godpool/GodPool.md"))]
17 #[::unity::class(namespace = "App", name = "GodPool")]
18 #[parent(crate::app::singletonpool_2::SingletonPool_2<crate::app::godpool::GodPool,crate::app::godunit::GodUnit>)]
19 pub struct GodPool {}
20}
21
22#[cfg(feature = "app-godpool-types")]
23pub use __types::*;
24
25#[cfg(feature = "app-godpool")]
26impl GodPool {
27 #[doc = "`TryGet(::unity::Il2CppString, bool)` overload"]
28 pub fn try_get(
29 gid: impl ::core::convert::Into<::unity::Il2CppString>,
30 include_reserved: impl ::core::convert::Into<bool>,
31 ) -> crate::app::godunit::GodUnit {
32 unsafe {
33 ::unity::il2cpp_call!((::unity::module_base()+0x2334570usize)as*mut u8,crate::app::godunit::GodUnit;
34(::unity::Il2CppString)::core::convert::Into::into(gid),(bool)::core::convert::Into::into(include_reserved))
35 }
36 }
37
38 #[doc = "`TryGet(crate::app::goddata::GodData, bool)` overload"]
39 pub fn try_get_2(
40 data: impl ::core::convert::Into<crate::app::goddata::GodData>,
41 include_reserved: impl ::core::convert::Into<bool>,
42 ) -> crate::app::godunit::GodUnit {
43 unsafe {
44 ::unity::il2cpp_call!((::unity::module_base()+0x2334600usize)as*mut u8,crate::app::godunit::GodUnit;
45(crate::app::goddata::GodData)::core::convert::Into::into(data),(bool)::core::convert::Into::into(include_reserved))
46 }
47 }
48
49 #[doc = "`TryGetImpl(crate::app::goddata::GodData, bool)` overload"]
50 pub fn try_get_impl(
51 data: impl ::core::convert::Into<crate::app::goddata::GodData>,
52 include_reserved: impl ::core::convert::Into<bool>,
53 ) -> crate::app::godunit::GodUnit {
54 unsafe {
55 ::unity::il2cpp_call!((::unity::module_base()+0x2334720usize)as*mut u8,crate::app::godunit::GodUnit;
56(crate::app::goddata::GodData)::core::convert::Into::into(data),(bool)::core::convert::Into::into(include_reserved))
57 }
58 }
59
60 #[doc = "`Create(crate::app::goddata::GodData)` overload"]
61 pub fn create(data: impl ::core::convert::Into<crate::app::goddata::GodData>) -> crate::app::godunit::GodUnit {
62 unsafe {
63 ::unity::il2cpp_call!((::unity::module_base()+0x23349c0usize)as*mut u8,crate::app::godunit::GodUnit;
64(crate::app::goddata::GodData)::core::convert::Into::into(data))
65 }
66 }
67
68 #[doc = "`Delete(crate::app::godunit::GodUnit)` overload"]
69 pub fn delete(god: impl ::core::convert::Into<crate::app::godunit::GodUnit>) -> () {
70 unsafe {
71 ::unity::il2cpp_call!((::unity::module_base()+0x2334c30usize)as*mut u8,();
72(crate::app::godunit::GodUnit)::core::convert::Into::into(god))
73 }
74 }
75
76 #[doc = "`DeleteOrReserve(crate::app::godunit::GodUnit)` overload"]
77 pub fn delete_or_reserve(god: impl ::core::convert::Into<crate::app::godunit::GodUnit>) -> () {
78 unsafe {
79 ::unity::il2cpp_call!((::unity::module_base()+0x2334db0usize)as*mut u8,();
80(crate::app::godunit::GodUnit)::core::convert::Into::into(god))
81 }
82 }
83
84 #[doc = "`DeleteReserved()` overload"]
85 pub fn delete_reserved() -> () {
86 unsafe {
87 ::unity::il2cpp_call!((::unity::module_base()+0x2334ed0usize)as*mut u8,();
88 )
89 }
90 }
91
92 #[doc = "`DeleteExceptForPlayer()` overload"]
93 pub fn delete_except_for_player() -> () {
94 unsafe {
95 ::unity::il2cpp_call!((::unity::module_base()+0x2335130usize)as*mut u8,();
96 )
97 }
98 }
99
100 #[doc = "`AppendEnemyGod(crate::app::godunit::GodUnit)` overload"]
101 pub fn append_enemy_god(god: impl ::core::convert::Into<crate::app::godunit::GodUnit>) -> crate::app::godunit::GodUnit {
102 unsafe {
103 ::unity::il2cpp_call!((::unity::module_base()+0x2335420usize)as*mut u8,crate::app::godunit::GodUnit;
104(crate::app::godunit::GodUnit)::core::convert::Into::into(god))
105 }
106 }
107
108 #[doc = "`HasArmlet()` overload"]
109 pub fn has_armlet() -> bool {
110 unsafe {
111 ::unity::il2cpp_call!((::unity::module_base()+0x23359c0usize)as*mut u8,bool;
112 )
113 }
114 }
115}
116
117#[cfg(feature = "app-godpool")]
118pub trait IGodPoolMethods: IGodPool {
119 #[doc = "`.ctor()` overload"]
120 fn ctor(self) -> () {
121 unsafe {
122 let __receiver = <GodPool as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123 ::unity::il2cpp_call!((::unity::module_base()+0x2334500usize)as*mut u8,();
124(GodPool)__receiver)
125 }
126 }
127 #[doc = "`get_Version()` overload"]
128 fn get_version(self) -> i32 {
129 unsafe {
130 let __receiver = <GodPool 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(4usize).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 4usize,
141 __vt.len(),
142 <GodPool as ::unity::ClassIdentity>::NAME,
143 "get_Version",
144 )
145 });
146 let __inner: extern "C" fn(GodPool, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
147 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
148 __inner(__receiver, __mi)
149 }
150 }
151 }
152 #[doc = "`OnSerialize(crate::app::stream_2::Stream_2)` overload"]
153 fn on_serialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
154 unsafe {
155 let __receiver = <GodPool as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156 {
157 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
158 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
159 panic!(
160 "unity: virtual slot {}
161 out of range (vtable len {}
162) on the runtime class behind {}
163 (method `{}
164`)",
165 11usize,
166 __vt.len(),
167 <GodPool as ::unity::ClassIdentity>::NAME,
168 "OnSerialize",
169 )
170 });
171 let __inner: extern "C" fn(GodPool, crate::app::stream_2::Stream_2, ::unity::OptionalMethod) -> () =
172 ::core::mem::transmute(__vi.method_ptr);
173 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
174 __inner(__receiver, ::core::convert::Into::into(stream), __mi)
175 }
176 }
177 }
178 #[doc = "`OnDeserialize(crate::app::stream_2::Stream_2, i32)` overload"]
179 fn on_deserialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>, version: impl ::core::convert::Into<i32>) -> () {
180 unsafe {
181 let __receiver = <GodPool as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182 {
183 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
184 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
185 panic!(
186 "unity: virtual slot {}
187 out of range (vtable len {}
188) on the runtime class behind {}
189 (method `{}
190`)",
191 12usize,
192 __vt.len(),
193 <GodPool as ::unity::ClassIdentity>::NAME,
194 "OnDeserialize",
195 )
196 });
197 let __inner: extern "C" fn(GodPool, crate::app::stream_2::Stream_2, i32, ::unity::OptionalMethod) -> () =
198 ::core::mem::transmute(__vi.method_ptr);
199 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
200 __inner(
201 __receiver,
202 ::core::convert::Into::into(stream),
203 ::core::convert::Into::into(version),
204 __mi,
205 )
206 }
207 }
208 }
209}
210
211#[cfg(feature = "app-godpool")]
212impl<__T: IGodPool> IGodPoolMethods for __T {}
213
214#[cfg(feature = "app-godpool")]
215impl GodPool {
216 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
218 }
219
220 pub fn get_version_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
222 }
223
224 pub fn try_get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
226 }
227
228 pub fn try_get_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
230 }
231
232 pub fn try_get_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
233 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
234 }
235
236 pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
237 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
238 }
239
240 pub fn delete_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
242 }
243
244 pub fn delete_or_reserve_method_info() -> &'static ::unity::il2cpp::MethodInfo {
245 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
246 }
247
248 pub fn delete_reserved_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
250 }
251
252 pub fn delete_except_for_player_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
254 }
255
256 pub fn append_enemy_god_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
258 }
259
260 pub fn has_armlet_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
262 }
263
264 pub fn on_serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
266 }
267
268 pub fn on_deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
270 }
271}
272
273#[cfg(feature = "app-godpool")]
274impl GodPool {
275 #[doc = "Direct (non-virtual) call to `GodPool`'s own `get_Version`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
276 pub unsafe fn get_version(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
277 let __mi = Self::get_version_method_info();
278 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
279 __inner(this.into(), ::core::option::Option::None)
280 }
281
282 #[doc = "Direct (non-virtual) call to `GodPool`'s own `OnSerialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
283 pub unsafe fn on_serialize(this: impl ::core::convert::Into<::unity::IlInstance>, stream: crate::app::stream_2::Stream_2) -> () {
284 let __mi = Self::on_serialize_method_info();
285 let __inner: extern "C" fn(::unity::IlInstance, crate::app::stream_2::Stream_2, ::unity::OptionalMethod) -> () =
286 ::core::mem::transmute(__mi.method_ptr);
287 __inner(this.into(), stream, ::core::option::Option::None)
288 }
289
290 #[doc = "Direct (non-virtual) call to `GodPool`'s own `OnDeserialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
291 pub unsafe fn on_deserialize(this: impl ::core::convert::Into<::unity::IlInstance>, stream: crate::app::stream_2::Stream_2, version: i32) -> () {
292 let __mi = Self::on_deserialize_method_info();
293 let __inner: extern "C" fn(::unity::IlInstance, crate::app::stream_2::Stream_2, i32, ::unity::OptionalMethod) -> () =
294 ::core::mem::transmute(__mi.method_ptr);
295 __inner(this.into(), stream, version, ::core::option::Option::None)
296 }
297}
298
299#[cfg(feature = "app-godpool")]
300impl GodPool {
301 #[doc = "`.ctor()` — no args"]
302 pub fn new() -> Self {
303 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
304 panic!(
305 "{}
306::{}
307 failed to instantiate",
308 ::core::stringify!(GodPool),
309 ::core::stringify!(new),
310 )
311 });
312 <Self as IGodPoolMethods>::ctor(this);
313 this
314 }
315}
316
317#[cfg(feature = "app-godpool")]
318#[doc(hidden)]
319pub mod prelude {
320 pub use super::{GodPool, IGodPool, IGodPoolMethods};
321 #[cfg(feature = "app-singletonclass_1")]
322 pub use crate::app::singletonclass_1::ISingletonClass_1Methods;
323 #[cfg(feature = "app-singletonpool_2")]
324 pub use crate::app::singletonpool_2::ISingletonPool_2Methods;
325 #[cfg(feature = "system-object")]
326 pub use crate::system::object::IObjectMethods;
327 pub use crate::{
328 app::{singletonclass_1::ISingletonClass_1, singletonpool_2::ISingletonPool_2},
329 system::object::IObject,
330 };
331}