1#[cfg(feature = "app-bithash-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/bithash/BitHash.md"))]
11 #[::unity::class(namespace = "App", name = "BitHash")]
12 #[parent(crate::system::object::Object)]
13 pub struct BitHash {
14 #[offset(16)]
15 #[rename(name = "m_Shift")]
16 pub m_shift: i32,
17 #[offset(20)]
18 #[rename(name = "m_Mask")]
19 pub m_mask: i32,
20 #[offset(24)]
21 #[rename(name = "m_List")]
22 pub m_list: crate::system::collections::generic::list_1::List_1<i32>,
23 #[offset(32)]
24 #[rename(name = "m_Names")]
25 pub m_names: crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>,
26 #[offset(40)]
27 #[rename(name = "m_Dictionary")]
28 pub m_dictionary: crate::system::collections::generic::dictionary_2::Dictionary_2<i32, i32>,
29 #[offset(48)]
30 #[rename(name = "m_Bits")]
31 pub m_bits: ::unity::Array<u8>,
32 }
33}
34
35#[cfg(feature = "app-bithash-types")]
36pub use __types::*;
37
38#[cfg(feature = "app-bithash")]
39impl BitHash {
40 #[doc = "`CalcKey(::unity::Il2CppString, i32)` overload"]
41 pub fn calc_key(name: impl ::core::convert::Into<::unity::Il2CppString>, shift: impl ::core::convert::Into<i32>) -> i32 {
42 unsafe {
43 ::unity::il2cpp_call!((::unity::module_base()+0x2988cc0usize)as*mut u8,i32;
44(::unity::Il2CppString)::core::convert::Into::into(name),(i32)::core::convert::Into::into(shift))
45 }
46 }
47}
48
49#[cfg(feature = "app-bithash")]
50pub trait IBitHashMethods: IBitHash {
51 #[doc = "`.ctor(i32)` overload"]
52 fn ctor(self, shift: impl ::core::convert::Into<i32>) -> () {
53 unsafe {
54 let __receiver = <BitHash as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
55 ::unity::il2cpp_call!((::unity::module_base()+0x2988120usize)as*mut u8,();
56(BitHash)__receiver,(i32)::core::convert::Into::into(shift))
57 }
58 }
59 #[doc = "`Dispose()` overload"]
60 fn dispose(self) -> () {
61 unsafe {
62 let __receiver = <BitHash as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63 {
64 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
65 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
66 panic!(
67 "unity: virtual slot {}
68 out of range (vtable len {}
69) on the runtime class behind {}
70 (method `{}
71`)",
72 4usize,
73 __vt.len(),
74 <BitHash as ::unity::ClassIdentity>::NAME,
75 "Dispose",
76 )
77 });
78 let __inner: extern "C" fn(BitHash, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
79 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
80 __inner(__receiver, __mi)
81 }
82 }
83 }
84 #[doc = "`Add(::unity::Il2CppString)` overload"]
85 fn add(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
86 unsafe {
87 let __receiver = <BitHash as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88 ::unity::il2cpp_call!((::unity::module_base()+0x2988370usize)as*mut u8,();
89(BitHash)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
90 }
91 }
92 #[doc = "`Add(::unity::Array<::unity::Il2CppString>)` overload"]
93 fn add_2(self, conditions: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>) -> () {
94 unsafe {
95 let __receiver = <BitHash as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96 ::unity::il2cpp_call!((::unity::module_base()+0x2988570usize)as*mut u8,();
97(BitHash)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(conditions))
98 }
99 }
100 #[doc = "`Clear()` overload"]
101 fn clear(self) -> () {
102 unsafe {
103 let __receiver = <BitHash as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104 ::unity::il2cpp_call!((::unity::module_base()+0x2988670usize)as*mut u8,();
105(BitHash)__receiver)
106 }
107 }
108 #[doc = "`Test(i32)` overload"]
109 fn test(self, key: impl ::core::convert::Into<i32>) -> bool {
110 unsafe {
111 let __receiver = <BitHash as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112 ::unity::il2cpp_call!((::unity::module_base()+0x2988790usize)as*mut u8,bool;
113(BitHash)__receiver,(i32)::core::convert::Into::into(key))
114 }
115 }
116 #[doc = "`Test(i32, i32)` overload"]
117 fn test_2(self, key1: impl ::core::convert::Into<i32>, key2: impl ::core::convert::Into<i32>) -> bool {
118 unsafe {
119 let __receiver = <BitHash as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120 ::unity::il2cpp_call!((::unity::module_base()+0x29887e0usize)as*mut u8,bool;
121(BitHash)__receiver,(i32)::core::convert::Into::into(key1),(i32)::core::convert::Into::into(key2))
122 }
123 }
124 #[doc = "`Test(i32, i32, i32)` overload"]
125 fn test_3(self, key1: impl ::core::convert::Into<i32>, key2: impl ::core::convert::Into<i32>, key3: impl ::core::convert::Into<i32>) -> bool {
126 unsafe {
127 let __receiver = <BitHash as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128 ::unity::il2cpp_call!((::unity::module_base()+0x2988850usize)as*mut u8,bool;
129(BitHash)__receiver,(i32)::core::convert::Into::into(key1),(i32)::core::convert::Into::into(key2),(i32)::core::convert::Into::into(key3))
130 }
131 }
132 #[doc = "`Test(i32, i32, i32, i32)` overload"]
133 fn test_4(
134 self,
135 key1: impl ::core::convert::Into<i32>,
136 key2: impl ::core::convert::Into<i32>,
137 key3: impl ::core::convert::Into<i32>,
138 key4: impl ::core::convert::Into<i32>,
139 ) -> bool {
140 unsafe {
141 let __receiver = <BitHash as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142 ::unity::il2cpp_call!((::unity::module_base()+0x29888f0usize)as*mut u8,bool;
143(BitHash)__receiver,(i32)::core::convert::Into::into(key1),(i32)::core::convert::Into::into(key2),(i32)::core::convert::Into::into(key3),(i32)::core::convert::Into::into(key4))
144 }
145 }
146 #[doc = "`Test(::unity::Array<i32>)` overload"]
147 fn test_5(self, keys: impl ::core::convert::Into<::unity::Array<i32>>) -> bool {
148 unsafe {
149 let __receiver = <BitHash as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150 ::unity::il2cpp_call!((::unity::module_base()+0x29889b0usize)as*mut u8,bool;
151(BitHash)__receiver,(::unity::Array<i32>)::core::convert::Into::into(keys))
152 }
153 }
154 #[doc = "`Test(crate::system::collections::generic::list_1::List_1<i32>)` overload"]
155 fn test_6(self, keys: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<i32>>) -> bool {
156 unsafe {
157 let __receiver = <BitHash as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158 ::unity::il2cpp_call!((::unity::module_base()+0x2988a30usize)as*mut u8,bool;
159(BitHash)__receiver,(crate::system::collections::generic::list_1::List_1<i32>)::core::convert::Into::into(keys))
160 }
161 }
162 #[doc = "`Not(i32)` overload"]
163 fn not(self, key: impl ::core::convert::Into<i32>) -> bool {
164 unsafe {
165 let __receiver = <BitHash as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166 ::unity::il2cpp_call!((::unity::module_base()+0x2988b10usize)as*mut u8,bool;
167(BitHash)__receiver,(i32)::core::convert::Into::into(key))
168 }
169 }
170 #[doc = "`Not(::unity::Array<i32>)` overload"]
171 fn not_2(self, keys: impl ::core::convert::Into<::unity::Array<i32>>) -> bool {
172 unsafe {
173 let __receiver = <BitHash as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174 ::unity::il2cpp_call!((::unity::module_base()+0x2988b60usize)as*mut u8,bool;
175(BitHash)__receiver,(::unity::Array<i32>)::core::convert::Into::into(keys))
176 }
177 }
178 #[doc = "`Not(crate::system::collections::generic::list_1::List_1<i32>)` overload"]
179 fn not_3(self, keys: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<i32>>) -> bool {
180 unsafe {
181 let __receiver = <BitHash as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182 ::unity::il2cpp_call!((::unity::module_base()+0x2988be0usize)as*mut u8,bool;
183(BitHash)__receiver,(crate::system::collections::generic::list_1::List_1<i32>)::core::convert::Into::into(keys))
184 }
185 }
186 #[doc = "`Test(::unity::Il2CppString)` overload"]
187 fn test_7(self, key: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
188 unsafe {
189 let __receiver = <BitHash as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190 ::unity::il2cpp_call!((::unity::module_base()+0x2988d00usize)as*mut u8,bool;
191(BitHash)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key))
192 }
193 }
194 #[doc = "`get_Names()` overload"]
195 fn get_names(self) -> crate::system::collections::generic::list_1::List_1<::unity::Il2CppString> {
196 unsafe {
197 let __receiver = <BitHash as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
198 ::unity::il2cpp_call!((::unity::module_base()+0x2988d80usize)as*mut u8,crate::system::collections::generic::list_1::List_1< ::unity::Il2CppString> ;
199(BitHash)__receiver)
200 }
201 }
202}
203
204#[cfg(feature = "app-bithash")]
205impl<__T: IBitHash> IBitHashMethods for __T {}
206
207#[cfg(feature = "app-bithash")]
208impl BitHash {
209 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
211 }
212
213 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
215 }
216
217 pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
218 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
219 }
220
221 pub fn add_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
222 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
223 }
224
225 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
226 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
227 }
228
229 pub fn test_method_info() -> &'static ::unity::il2cpp::MethodInfo {
230 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
231 }
232
233 pub fn test_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
234 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
235 }
236
237 pub fn test_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
238 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
239 }
240
241 pub fn test_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
243 }
244
245 pub fn test_5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
247 }
248
249 pub fn test_6_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
251 }
252
253 pub fn not_method_info() -> &'static ::unity::il2cpp::MethodInfo {
254 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
255 }
256
257 pub fn not_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
258 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
259 }
260
261 pub fn not_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
263 }
264
265 pub fn calc_key_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
267 }
268
269 pub fn test_7_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
271 }
272
273 pub fn get_names_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
275 }
276}
277
278#[cfg(feature = "app-bithash")]
279impl BitHash {
280 #[doc = "Direct (non-virtual) call to `BitHash`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
281 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
282 let __mi = Self::dispose_method_info();
283 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
284 __inner(this.into(), ::core::option::Option::None)
285 }
286}
287
288#[cfg(feature = "app-bithash")]
289impl BitHash {
290 #[doc = "`.ctor(i32)` — overload selector"]
291 pub fn new(shift: i32) -> Self {
292 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
293 panic!(
294 "{}
295::{}
296 failed to instantiate",
297 ::core::stringify!(BitHash),
298 ::core::stringify!(new),
299 )
300 });
301 <Self as IBitHashMethods>::ctor(this, shift);
302 this
303 }
304}
305
306#[cfg(feature = "app-bithash")]
307#[doc(hidden)]
308pub mod prelude {
309 pub use super::{BitHash, IBitHash, IBitHashMethods};
310 pub use crate::system::object::IObject;
311 #[cfg(feature = "system-object")]
312 pub use crate::system::object::IObjectMethods;
313}