1#[cfg(feature = "system-collections-specialized-nameobjectcollectionbase-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/system/collections/specialized/nameobjectcollectionbase/NameObjectCollectionBase.md"))]
11 #[::unity::class(namespace = "System.Collections.Specialized", name = "NameObjectCollectionBase")]
12 #[parent(crate::system::object::Object)]
13 pub struct NameObjectCollectionBase {
14 #[offset(16)]
15 #[rename(name = "_readOnly")]
16 pub read_only: bool,
17 #[offset(24)]
18 #[rename(name = "_entriesArray")]
19 pub entries_array: crate::system::collections::arraylist::ArrayList,
20 #[offset(32)]
21 #[rename(name = "_keyComparer")]
22 pub key_comparer: crate::system::collections::iequalitycomparer::IEqualityComparer,
23 #[offset(40)]
24 #[rename(name = "_entriesTable")]
25 pub entries_table: crate::system::collections::hashtable::Hashtable,
26 #[offset(48)]
27 #[rename(name = "_nullKeyEntry")]
28 pub null_key_entry: crate::system::collections::specialized::nameobjectcollectionbase::NameObjectCollectionBase_NameObjectEntry,
29 #[offset(64)]
30 #[rename(name = "_version")]
31 pub version: i32,
32 #[offset(72)]
33 #[rename(name = "_syncRoot")]
34 pub sync_root: ::unity::IlInstance,
35 #[static_field]
36 #[rename(name = "defaultComparer")]
37 pub default_comparer: ::unity::IlInstance,
38 }
39
40 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/specialized/nameobjectcollectionbase/NameObjectCollectionBase_NameObjectEntry.md"))]
41 #[::unity::class(namespace = "System.Collections.Specialized", name = "NameObjectCollectionBase.NameObjectEntry")]
42 #[parent(crate::system::object::Object)]
43 pub struct NameObjectCollectionBase_NameObjectEntry {
44 #[offset(16)]
45 #[rename(name = "Key")]
46 pub key: ::unity::Il2CppString,
47 #[offset(24)]
48 #[rename(name = "Value")]
49 pub value: ::unity::IlInstance,
50 }
51
52 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/specialized/nameobjectcollectionbase/NameObjectCollectionBase_NameObjectKeysEnumerator.md"))]
53 #[::unity::class(namespace = "System.Collections.Specialized", name = "NameObjectCollectionBase.NameObjectKeysEnumerator")]
54 #[parent(crate::system::object::Object)]
55 pub struct NameObjectCollectionBase_NameObjectKeysEnumerator {
56 #[offset(16)]
57 #[rename(name = "_pos")]
58 pub pos: i32,
59 #[offset(24)]
60 #[rename(name = "_coll")]
61 pub coll: crate::system::collections::specialized::nameobjectcollectionbase::NameObjectCollectionBase,
62 #[offset(32)]
63 #[rename(name = "_version")]
64 pub version: i32,
65 }
66}
67
68#[cfg(feature = "system-collections-specialized-nameobjectcollectionbase-types")]
69pub use __types::*;
70
71#[cfg(feature = "system-collections-specialized-nameobjectcollectionbase")]
72impl NameObjectCollectionBase {
73 #[doc = "`.cctor()` overload"]
74 pub fn cctor() -> () {
75 unsafe {
76 ::unity::il2cpp_call!((::unity::module_base()+0x3486d30usize)as*mut u8,();
77 )
78 }
79 }
80}
81
82#[cfg(feature = "system-collections-specialized-nameobjectcollectionbase")]
83pub trait INameObjectCollectionBaseMethods: INameObjectCollectionBase {
84 #[doc = "`.ctor()` overload"]
85 fn ctor(self) -> () {
86 unsafe {
87 let __receiver =
88 <NameObjectCollectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89 ::unity::il2cpp_call!((::unity::module_base()+0x3484e50usize)as*mut u8,();
90(NameObjectCollectionBase)__receiver)
91 }
92 }
93 #[doc = "`.ctor(crate::system::collections::iequalitycomparer::IEqualityComparer)` overload"]
94 fn ctor_2(self, equality_comparer: impl ::core::convert::Into<crate::system::collections::iequalitycomparer::IEqualityComparer>) -> () {
95 unsafe {
96 let __receiver =
97 <NameObjectCollectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 ::unity::il2cpp_call!((::unity::module_base()+0x3484f30usize)as*mut u8,();
99(NameObjectCollectionBase)__receiver,(crate::system::collections::iequalitycomparer::IEqualityComparer)::core::convert::Into::into(equality_comparer))
100 }
101 }
102 #[doc = "`.ctor(i32, crate::system::collections::iequalitycomparer::IEqualityComparer)` overload"]
103 fn ctor_3(
104 self,
105 capacity: impl ::core::convert::Into<i32>,
106 equality_comparer: impl ::core::convert::Into<crate::system::collections::iequalitycomparer::IEqualityComparer>,
107 ) -> () {
108 unsafe {
109 let __receiver =
110 <NameObjectCollectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111 ::unity::il2cpp_call!((::unity::module_base()+0x34850b0usize)as*mut u8,();
112(NameObjectCollectionBase)__receiver,(i32)::core::convert::Into::into(capacity),(crate::system::collections::iequalitycomparer::IEqualityComparer)::core::convert::Into::into(equality_comparer))
113 }
114 }
115 #[doc = "`OnDeserialization(crate::system::object::Object)` overload"]
116 fn on_deserialization(self, sender: impl ::core::convert::Into<crate::system::object::Object>) -> () {
117 unsafe {
118 let __receiver =
119 <NameObjectCollectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120 {
121 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
122 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
123 panic!(
124 "unity: virtual slot {}
125 out of range (vtable len {}
126) on the runtime class behind {}
127 (method `{}
128`)",
129 12usize,
130 __vt.len(),
131 <NameObjectCollectionBase as ::unity::ClassIdentity>::NAME,
132 "OnDeserialization",
133 )
134 });
135 let __inner: extern "C" fn(NameObjectCollectionBase, crate::system::object::Object, ::unity::OptionalMethod) -> () =
136 ::core::mem::transmute(__vi.method_ptr);
137 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
138 __inner(__receiver, ::core::convert::Into::into(sender), __mi)
139 }
140 }
141 }
142 #[doc = "`Reset()` overload"]
143 fn reset(self) -> () {
144 unsafe {
145 let __receiver =
146 <NameObjectCollectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147 ::unity::il2cpp_call!((::unity::module_base()+0x3484fd0usize)as*mut u8,();
148(NameObjectCollectionBase)__receiver)
149 }
150 }
151 #[doc = "`Reset(i32)` overload"]
152 fn reset_2(self, capacity: impl ::core::convert::Into<i32>) -> () {
153 unsafe {
154 let __receiver =
155 <NameObjectCollectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156 ::unity::il2cpp_call!((::unity::module_base()+0x3485160usize)as*mut u8,();
157(NameObjectCollectionBase)__receiver,(i32)::core::convert::Into::into(capacity))
158 }
159 }
160 #[doc = "`FindEntry(::unity::Il2CppString)` overload"]
161 fn find_entry(
162 self,
163 key: impl ::core::convert::Into<::unity::Il2CppString>,
164 ) -> crate::system::collections::specialized::nameobjectcollectionbase::NameObjectCollectionBase_NameObjectEntry {
165 unsafe {
166 let __receiver =
167 <NameObjectCollectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
168 ::unity::il2cpp_call!((::unity::module_base()+0x3486190usize)as*mut u8,crate::system::collections::specialized::nameobjectcollectionbase::NameObjectCollectionBase_NameObjectEntry;
169(NameObjectCollectionBase)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key))
170 }
171 }
172 #[doc = "`get_IsReadOnly()` overload"]
173 fn get_is_read_only(self) -> bool {
174 unsafe {
175 let __receiver =
176 <NameObjectCollectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177 ::unity::il2cpp_call!((::unity::module_base()+0x3486250usize)as*mut u8,bool;
178(NameObjectCollectionBase)__receiver)
179 }
180 }
181 #[doc = "`BaseAdd(::unity::Il2CppString, crate::system::object::Object)` overload"]
182 fn base_add(
183 self,
184 name: impl ::core::convert::Into<::unity::Il2CppString>,
185 value: impl ::core::convert::Into<crate::system::object::Object>,
186 ) -> () {
187 unsafe {
188 let __receiver =
189 <NameObjectCollectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190 ::unity::il2cpp_call!((::unity::module_base()+0x3486030usize)as*mut u8,();
191(NameObjectCollectionBase)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(crate::system::object::Object)::core::convert::Into::into(value))
192 }
193 }
194 #[doc = "`BaseRemove(::unity::Il2CppString)` overload"]
195 fn base_remove(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
196 unsafe {
197 let __receiver =
198 <NameObjectCollectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
199 ::unity::il2cpp_call!((::unity::module_base()+0x3486260usize)as*mut u8,();
200(NameObjectCollectionBase)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
201 }
202 }
203 #[doc = "`BaseGet(::unity::Il2CppString)` overload"]
204 fn base_get(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::system::object::Object {
205 unsafe {
206 let __receiver =
207 <NameObjectCollectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
208 ::unity::il2cpp_call!((::unity::module_base()+0x34865e0usize)as*mut u8,crate::system::object::Object;
209(NameObjectCollectionBase)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
210 }
211 }
212 #[doc = "`BaseSet(::unity::Il2CppString, crate::system::object::Object)` overload"]
213 fn base_set(
214 self,
215 name: impl ::core::convert::Into<::unity::Il2CppString>,
216 value: impl ::core::convert::Into<crate::system::object::Object>,
217 ) -> () {
218 unsafe {
219 let __receiver =
220 <NameObjectCollectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
221 ::unity::il2cpp_call!((::unity::module_base()+0x34866c0usize)as*mut u8,();
222(NameObjectCollectionBase)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(crate::system::object::Object)::core::convert::Into::into(value))
223 }
224 }
225 #[doc = "`BaseGet(i32)` overload"]
226 fn base_get_2(self, index: impl ::core::convert::Into<i32>) -> crate::system::object::Object {
227 unsafe {
228 let __receiver =
229 <NameObjectCollectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
230 ::unity::il2cpp_call!((::unity::module_base()+0x3486820usize)as*mut u8,crate::system::object::Object;
231(NameObjectCollectionBase)__receiver,(i32)::core::convert::Into::into(index))
232 }
233 }
234 #[doc = "`BaseGetKey(i32)` overload"]
235 fn base_get_key(self, index: impl ::core::convert::Into<i32>) -> ::unity::Il2CppString {
236 unsafe {
237 let __receiver =
238 <NameObjectCollectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
239 ::unity::il2cpp_call!((::unity::module_base()+0x3486540usize)as*mut u8, ::unity::Il2CppString;
240(NameObjectCollectionBase)__receiver,(i32)::core::convert::Into::into(index))
241 }
242 }
243 #[doc = "`GetEnumerator()` overload"]
244 fn get_enumerator(self) -> crate::system::collections::ienumerator::IEnumerator {
245 unsafe {
246 let __receiver =
247 <NameObjectCollectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
248 {
249 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
250 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
251 panic!(
252 "unity: virtual slot {}
253 out of range (vtable len {}
254) on the runtime class behind {}
255 (method `{}
256`)",
257 13usize,
258 __vt.len(),
259 <NameObjectCollectionBase as ::unity::ClassIdentity>::NAME,
260 "GetEnumerator",
261 )
262 });
263 let __inner: extern "C" fn(
264 NameObjectCollectionBase,
265 ::unity::OptionalMethod,
266 ) -> crate::system::collections::ienumerator::IEnumerator = ::core::mem::transmute(__vi.method_ptr);
267 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
268 __inner(__receiver, __mi)
269 }
270 }
271 }
272 #[doc = "`get_Count()` overload"]
273 fn get_count(self) -> i32 {
274 unsafe {
275 let __receiver =
276 <NameObjectCollectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
277 {
278 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
279 let __vi = *__vt.get(14usize).unwrap_or_else(|| {
280 panic!(
281 "unity: virtual slot {}
282 out of range (vtable len {}
283) on the runtime class behind {}
284 (method `{}
285`)",
286 14usize,
287 __vt.len(),
288 <NameObjectCollectionBase as ::unity::ClassIdentity>::NAME,
289 "get_Count",
290 )
291 });
292 let __inner: extern "C" fn(NameObjectCollectionBase, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
293 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
294 __inner(__receiver, __mi)
295 }
296 }
297 }
298 #[doc = "`System.Collections.ICollection.CopyTo(::unity::IlInstance, i32)` overload"]
299 fn system_collections_i_collection_copy_to(
300 self,
301 array: impl ::core::convert::Into<::unity::IlInstance>,
302 index: impl ::core::convert::Into<i32>,
303 ) -> () {
304 unsafe {
305 let __receiver =
306 <NameObjectCollectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
307 {
308 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
309 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
310 panic!(
311 "unity: virtual slot {}
312 out of range (vtable len {}
313) on the runtime class behind {}
314 (method `{}
315`)",
316 4usize,
317 __vt.len(),
318 <NameObjectCollectionBase as ::unity::ClassIdentity>::NAME,
319 "System.Collections.ICollection.CopyTo",
320 )
321 });
322 let __inner: extern "C" fn(NameObjectCollectionBase, ::unity::IlInstance, i32, ::unity::OptionalMethod) -> () =
323 ::core::mem::transmute(__vi.method_ptr);
324 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
325 __inner(__receiver, ::core::convert::Into::into(array), ::core::convert::Into::into(index), __mi)
326 }
327 }
328 }
329 #[doc = "`System.Collections.ICollection.get_SyncRoot()` overload"]
330 fn system_collections_i_collection_get_sync_root(self) -> crate::system::object::Object {
331 unsafe {
332 let __receiver =
333 <NameObjectCollectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
334 {
335 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
336 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
337 panic!(
338 "unity: virtual slot {}
339 out of range (vtable len {}
340) on the runtime class behind {}
341 (method `{}
342`)",
343 6usize,
344 __vt.len(),
345 <NameObjectCollectionBase as ::unity::ClassIdentity>::NAME,
346 "System.Collections.ICollection.get_SyncRoot",
347 )
348 });
349 let __inner: extern "C" fn(NameObjectCollectionBase, ::unity::OptionalMethod) -> crate::system::object::Object =
350 ::core::mem::transmute(__vi.method_ptr);
351 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
352 __inner(__receiver, __mi)
353 }
354 }
355 }
356 #[doc = "`System.Collections.ICollection.get_IsSynchronized()` overload"]
357 fn system_collections_i_collection_get_is_synchronized(self) -> bool {
358 unsafe {
359 let __receiver =
360 <NameObjectCollectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
361 {
362 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
363 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
364 panic!(
365 "unity: virtual slot {}
366 out of range (vtable len {}
367) on the runtime class behind {}
368 (method `{}
369`)",
370 7usize,
371 __vt.len(),
372 <NameObjectCollectionBase as ::unity::ClassIdentity>::NAME,
373 "System.Collections.ICollection.get_IsSynchronized",
374 )
375 });
376 let __inner: extern "C" fn(NameObjectCollectionBase, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
377 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
378 __inner(__receiver, __mi)
379 }
380 }
381 }
382}
383
384#[cfg(feature = "system-collections-specialized-nameobjectcollectionbase")]
385impl<__T: INameObjectCollectionBase> INameObjectCollectionBaseMethods for __T {}
386
387#[cfg(feature = "system-collections-specialized-nameobjectcollectionbase")]
388impl NameObjectCollectionBase {
389 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
390 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
391 }
392
393 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
394 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
395 }
396
397 pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
398 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
399 }
400
401 pub fn on_deserialization_method_info() -> &'static ::unity::il2cpp::MethodInfo {
402 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
403 }
404
405 pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
406 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
407 }
408
409 pub fn reset_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
410 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
411 }
412
413 pub fn find_entry_method_info() -> &'static ::unity::il2cpp::MethodInfo {
414 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
415 }
416
417 pub fn get_is_read_only_method_info() -> &'static ::unity::il2cpp::MethodInfo {
418 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
419 }
420
421 pub fn base_add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
422 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
423 }
424
425 pub fn base_remove_method_info() -> &'static ::unity::il2cpp::MethodInfo {
426 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
427 }
428
429 pub fn base_get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
430 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
431 }
432
433 pub fn base_set_method_info() -> &'static ::unity::il2cpp::MethodInfo {
434 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
435 }
436
437 pub fn base_get_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
438 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
439 }
440
441 pub fn base_get_key_method_info() -> &'static ::unity::il2cpp::MethodInfo {
442 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
443 }
444
445 pub fn get_enumerator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
446 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
447 }
448
449 pub fn get_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
450 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
451 }
452
453 pub fn system_collections_i_collection_copy_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
454 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
455 }
456
457 pub fn system_collections_i_collection_get_sync_root_method_info() -> &'static ::unity::il2cpp::MethodInfo {
458 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
459 }
460
461 pub fn system_collections_i_collection_get_is_synchronized_method_info() -> &'static ::unity::il2cpp::MethodInfo {
462 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
463 }
464
465 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
466 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
467 }
468}
469
470#[cfg(feature = "system-collections-specialized-nameobjectcollectionbase")]
471impl NameObjectCollectionBase {
472 #[doc = "Direct (non-virtual) call to `NameObjectCollectionBase`'s own `OnDeserialization`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
473 pub unsafe fn on_deserialization(this: impl ::core::convert::Into<::unity::IlInstance>, sender: crate::system::object::Object) -> () {
474 let __mi = Self::on_deserialization_method_info();
475 let __inner: extern "C" fn(::unity::IlInstance, crate::system::object::Object, ::unity::OptionalMethod) -> () =
476 ::core::mem::transmute(__mi.method_ptr);
477 __inner(this.into(), sender, ::core::option::Option::None)
478 }
479
480 #[doc = "Direct (non-virtual) call to `NameObjectCollectionBase`'s own `GetEnumerator`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
481 pub unsafe fn get_enumerator(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::collections::ienumerator::IEnumerator {
482 let __mi = Self::get_enumerator_method_info();
483 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::collections::ienumerator::IEnumerator =
484 ::core::mem::transmute(__mi.method_ptr);
485 __inner(this.into(), ::core::option::Option::None)
486 }
487
488 #[doc = "Direct (non-virtual) call to `NameObjectCollectionBase`'s own `get_Count`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
489 pub unsafe fn get_count(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
490 let __mi = Self::get_count_method_info();
491 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
492 __inner(this.into(), ::core::option::Option::None)
493 }
494
495 #[doc = "Direct (non-virtual) call to `NameObjectCollectionBase`'s own `System.Collections.ICollection.CopyTo`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
496 pub unsafe fn system_collections_i_collection_copy_to(
497 this: impl ::core::convert::Into<::unity::IlInstance>,
498 array: ::unity::IlInstance,
499 index: i32,
500 ) -> () {
501 let __mi = Self::system_collections_i_collection_copy_to_method_info();
502 let __inner: extern "C" fn(::unity::IlInstance, ::unity::IlInstance, i32, ::unity::OptionalMethod) -> () =
503 ::core::mem::transmute(__mi.method_ptr);
504 __inner(this.into(), array, index, ::core::option::Option::None)
505 }
506
507 #[doc = "Direct (non-virtual) call to `NameObjectCollectionBase`'s own `System.Collections.ICollection.get_SyncRoot`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
508 pub unsafe fn system_collections_i_collection_get_sync_root(
509 this: impl ::core::convert::Into<::unity::IlInstance>,
510 ) -> crate::system::object::Object {
511 let __mi = Self::system_collections_i_collection_get_sync_root_method_info();
512 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::object::Object =
513 ::core::mem::transmute(__mi.method_ptr);
514 __inner(this.into(), ::core::option::Option::None)
515 }
516
517 #[doc = "Direct (non-virtual) call to `NameObjectCollectionBase`'s own `System.Collections.ICollection.get_IsSynchronized`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
518 pub unsafe fn system_collections_i_collection_get_is_synchronized(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
519 let __mi = Self::system_collections_i_collection_get_is_synchronized_method_info();
520 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
521 __inner(this.into(), ::core::option::Option::None)
522 }
523}
524
525#[cfg(feature = "system-collections-specialized-nameobjectcollectionbase")]
526impl NameObjectCollectionBase {
527 #[doc = "`.ctor()` — no args"]
528 pub fn new() -> Self {
529 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
530 panic!(
531 "{}
532::{}
533 failed to instantiate",
534 ::core::stringify!(NameObjectCollectionBase),
535 ::core::stringify!(new),
536 )
537 });
538 <Self as INameObjectCollectionBaseMethods>::ctor(this);
539 this
540 }
541
542 #[doc = "`.ctor(crate::system::collections::iequalitycomparer::IEqualityComparer)` — overload selector"]
543 pub fn new_2(equality_comparer: crate::system::collections::iequalitycomparer::IEqualityComparer) -> Self {
544 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
545 panic!(
546 "{}
547::{}
548 failed to instantiate",
549 ::core::stringify!(NameObjectCollectionBase),
550 ::core::stringify!(new_2),
551 )
552 });
553 <Self as INameObjectCollectionBaseMethods>::ctor_2(this, equality_comparer);
554 this
555 }
556
557 #[doc = "`.ctor(i32, crate::system::collections::iequalitycomparer::IEqualityComparer)` — overload selector"]
558 pub fn new_3(capacity: i32, equality_comparer: crate::system::collections::iequalitycomparer::IEqualityComparer) -> Self {
559 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
560 panic!(
561 "{}
562::{}
563 failed to instantiate",
564 ::core::stringify!(NameObjectCollectionBase),
565 ::core::stringify!(new_3),
566 )
567 });
568 <Self as INameObjectCollectionBaseMethods>::ctor_3(this, capacity, equality_comparer);
569 this
570 }
571}
572
573#[cfg(feature = "system-collections-specialized-nameobjectcollectionbase")]
574pub trait INameObjectCollectionBase_NameObjectEntryMethods: INameObjectCollectionBase_NameObjectEntry {
575 #[doc = "`.ctor(::unity::Il2CppString, crate::system::object::Object)` overload"]
576 fn ctor(self, name: impl ::core::convert::Into<::unity::Il2CppString>, value: impl ::core::convert::Into<crate::system::object::Object>) -> () {
577 unsafe {
578 let __receiver = <NameObjectCollectionBase_NameObjectEntry as ::unity::FromIlInstance>::from_il_instance(
579 <Self as ::unity::SystemObject>::as_instance(self),
580 );
581 ::unity::il2cpp_call!((::unity::module_base()+0x2a85bb0usize)as*mut u8,();
582(NameObjectCollectionBase_NameObjectEntry)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(crate::system::object::Object)::core::convert::Into::into(value))
583 }
584 }
585}
586
587#[cfg(feature = "system-collections-specialized-nameobjectcollectionbase")]
588impl<__T: INameObjectCollectionBase_NameObjectEntry> INameObjectCollectionBase_NameObjectEntryMethods for __T {}
589
590#[cfg(feature = "system-collections-specialized-nameobjectcollectionbase")]
591impl NameObjectCollectionBase_NameObjectEntry {
592 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
593 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
594 }
595}
596
597#[cfg(feature = "system-collections-specialized-nameobjectcollectionbase")]
598impl NameObjectCollectionBase_NameObjectEntry {
599 #[doc = "`.ctor(::unity::Il2CppString, crate::system::object::Object)` — overload selector"]
600 pub fn new(name: ::unity::Il2CppString, value: crate::system::object::Object) -> Self {
601 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
602 panic!(
603 "{}
604::{}
605 failed to instantiate",
606 ::core::stringify!(NameObjectCollectionBase_NameObjectEntry),
607 ::core::stringify!(new),
608 )
609 });
610 <Self as INameObjectCollectionBase_NameObjectEntryMethods>::ctor(this, name, value);
611 this
612 }
613}
614
615#[cfg(feature = "system-collections-specialized-nameobjectcollectionbase")]
616pub trait INameObjectCollectionBase_NameObjectKeysEnumeratorMethods: INameObjectCollectionBase_NameObjectKeysEnumerator {
617 #[doc = "`.ctor(crate::system::collections::specialized::nameobjectcollectionbase::NameObjectCollectionBase)` overload"]
618 fn ctor(
619 self,
620 coll: impl ::core::convert::Into<crate::system::collections::specialized::nameobjectcollectionbase::NameObjectCollectionBase>,
621 ) -> () {
622 unsafe {
623 let __receiver = <NameObjectCollectionBase_NameObjectKeysEnumerator as ::unity::FromIlInstance>::from_il_instance(
624 <Self as ::unity::SystemObject>::as_instance(self),
625 );
626 ::unity::il2cpp_call!((::unity::module_base()+0x2a85c00usize)as*mut u8,();
627(NameObjectCollectionBase_NameObjectKeysEnumerator)__receiver,(crate::system::collections::specialized::nameobjectcollectionbase::NameObjectCollectionBase)::core::convert::Into::into(coll))
628 }
629 }
630 #[doc = "`MoveNext()` overload"]
631 fn move_next(self) -> bool {
632 unsafe {
633 let __receiver = <NameObjectCollectionBase_NameObjectKeysEnumerator as ::unity::FromIlInstance>::from_il_instance(
634 <Self as ::unity::SystemObject>::as_instance(self),
635 );
636 {
637 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
638 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
639 panic!(
640 "unity: virtual slot {}
641 out of range (vtable len {}
642) on the runtime class behind {}
643 (method `{}
644`)",
645 4usize,
646 __vt.len(),
647 <NameObjectCollectionBase_NameObjectKeysEnumerator as ::unity::ClassIdentity>::NAME,
648 "MoveNext",
649 )
650 });
651 let __inner: extern "C" fn(NameObjectCollectionBase_NameObjectKeysEnumerator, ::unity::OptionalMethod) -> bool =
652 ::core::mem::transmute(__vi.method_ptr);
653 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
654 __inner(__receiver, __mi)
655 }
656 }
657 }
658 #[doc = "`Reset()` overload"]
659 fn reset(self) -> () {
660 unsafe {
661 let __receiver = <NameObjectCollectionBase_NameObjectKeysEnumerator as ::unity::FromIlInstance>::from_il_instance(
662 <Self as ::unity::SystemObject>::as_instance(self),
663 );
664 {
665 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
666 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
667 panic!(
668 "unity: virtual slot {}
669 out of range (vtable len {}
670) on the runtime class behind {}
671 (method `{}
672`)",
673 6usize,
674 __vt.len(),
675 <NameObjectCollectionBase_NameObjectKeysEnumerator as ::unity::ClassIdentity>::NAME,
676 "Reset",
677 )
678 });
679 let __inner: extern "C" fn(NameObjectCollectionBase_NameObjectKeysEnumerator, ::unity::OptionalMethod) -> () =
680 ::core::mem::transmute(__vi.method_ptr);
681 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
682 __inner(__receiver, __mi)
683 }
684 }
685 }
686 #[doc = "`get_Current()` overload"]
687 fn get_current(self) -> crate::system::object::Object {
688 unsafe {
689 let __receiver = <NameObjectCollectionBase_NameObjectKeysEnumerator as ::unity::FromIlInstance>::from_il_instance(
690 <Self as ::unity::SystemObject>::as_instance(self),
691 );
692 {
693 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
694 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
695 panic!(
696 "unity: virtual slot {}
697 out of range (vtable len {}
698) on the runtime class behind {}
699 (method `{}
700`)",
701 5usize,
702 __vt.len(),
703 <NameObjectCollectionBase_NameObjectKeysEnumerator as ::unity::ClassIdentity>::NAME,
704 "get_Current",
705 )
706 });
707 let __inner: extern "C" fn(
708 NameObjectCollectionBase_NameObjectKeysEnumerator,
709 ::unity::OptionalMethod,
710 ) -> crate::system::object::Object = ::core::mem::transmute(__vi.method_ptr);
711 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
712 __inner(__receiver, __mi)
713 }
714 }
715 }
716}
717
718#[cfg(feature = "system-collections-specialized-nameobjectcollectionbase")]
719impl<__T: INameObjectCollectionBase_NameObjectKeysEnumerator> INameObjectCollectionBase_NameObjectKeysEnumeratorMethods for __T {}
720
721#[cfg(feature = "system-collections-specialized-nameobjectcollectionbase")]
722impl NameObjectCollectionBase_NameObjectKeysEnumerator {
723 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
724 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
725 }
726
727 pub fn move_next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
728 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
729 }
730
731 pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
732 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
733 }
734
735 pub fn get_current_method_info() -> &'static ::unity::il2cpp::MethodInfo {
736 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
737 }
738}
739
740#[cfg(feature = "system-collections-specialized-nameobjectcollectionbase")]
741impl NameObjectCollectionBase_NameObjectKeysEnumerator {
742 #[doc = "Direct (non-virtual) call to `NameObjectCollectionBase_NameObjectKeysEnumerator`'s own `MoveNext`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
743 pub unsafe fn move_next(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
744 let __mi = Self::move_next_method_info();
745 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
746 __inner(this.into(), ::core::option::Option::None)
747 }
748
749 #[doc = "Direct (non-virtual) call to `NameObjectCollectionBase_NameObjectKeysEnumerator`'s own `Reset`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
750 pub unsafe fn reset(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
751 let __mi = Self::reset_method_info();
752 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
753 __inner(this.into(), ::core::option::Option::None)
754 }
755
756 #[doc = "Direct (non-virtual) call to `NameObjectCollectionBase_NameObjectKeysEnumerator`'s own `get_Current`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
757 pub unsafe fn get_current(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::object::Object {
758 let __mi = Self::get_current_method_info();
759 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::object::Object =
760 ::core::mem::transmute(__mi.method_ptr);
761 __inner(this.into(), ::core::option::Option::None)
762 }
763}
764
765#[cfg(feature = "system-collections-specialized-nameobjectcollectionbase")]
766impl NameObjectCollectionBase_NameObjectKeysEnumerator {
767 #[doc = "`.ctor(crate::system::collections::specialized::nameobjectcollectionbase::NameObjectCollectionBase)` — overload selector"]
768 pub fn new(coll: crate::system::collections::specialized::nameobjectcollectionbase::NameObjectCollectionBase) -> Self {
769 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
770 panic!(
771 "{}
772::{}
773 failed to instantiate",
774 ::core::stringify!(NameObjectCollectionBase_NameObjectKeysEnumerator),
775 ::core::stringify!(new),
776 )
777 });
778 <Self as INameObjectCollectionBase_NameObjectKeysEnumeratorMethods>::ctor(this, coll);
779 this
780 }
781}
782
783#[cfg(feature = "system-collections-specialized-nameobjectcollectionbase")]
784#[doc(hidden)]
785pub mod prelude {
786 pub use super::{
787 INameObjectCollectionBase, INameObjectCollectionBaseMethods, INameObjectCollectionBase_NameObjectEntry,
788 INameObjectCollectionBase_NameObjectEntryMethods, INameObjectCollectionBase_NameObjectKeysEnumerator,
789 INameObjectCollectionBase_NameObjectKeysEnumeratorMethods, NameObjectCollectionBase, NameObjectCollectionBase_NameObjectEntry,
790 NameObjectCollectionBase_NameObjectKeysEnumerator,
791 };
792 pub use crate::system::object::IObject;
793 #[cfg(feature = "system-object")]
794 pub use crate::system::object::IObjectMethods;
795}