engage/generated/app/
mapimagecoreuint.rs1#[cfg(feature = "app-mapimagecoreuint-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 mapimagecore_1::{IMapImageCore_1, MapImageCore_1},
11 mapimageindex::{IMapImageIndex, MapImageIndex},
12 },
13 system::object::{IObject, Object},
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapimagecoreuint/MapImageCoreUint.md"))]
17 #[::unity::class(namespace = "App", name = "MapImageCoreUint")]
18 #[parent(crate::app::mapimagecore_1::MapImageCore_1<u32>)]
19 pub struct MapImageCoreUint {}
20}
21
22#[cfg(feature = "app-mapimagecoreuint-types")]
23pub use __types::*;
24
25#[cfg(feature = "app-mapimagecoreuint")]
26pub trait IMapImageCoreUintMethods: IMapImageCoreUint {
27 #[doc = "`Add(i32, u32)` overload"]
28 fn add(self, index: impl ::core::convert::Into<i32>, v: impl ::core::convert::Into<u32>) -> () {
29 unsafe {
30 let __receiver = <MapImageCoreUint as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
31 {
32 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
33 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
34 panic!(
35 "unity: virtual slot {}
36 out of range (vtable len {}
37) on the runtime class behind {}
38 (method `{}
39`)",
40 5usize,
41 __vt.len(),
42 <MapImageCoreUint as ::unity::ClassIdentity>::NAME,
43 "Add",
44 )
45 });
46 let __inner: extern "C" fn(MapImageCoreUint, i32, u32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
47 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
48 __inner(__receiver, ::core::convert::Into::into(index), ::core::convert::Into::into(v), __mi)
49 }
50 }
51 }
52 #[doc = "`.ctor()` overload"]
53 fn ctor(self) -> () {
54 unsafe {
55 let __receiver = <MapImageCoreUint as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56 ::unity::il2cpp_call!((::unity::module_base()+0x205faf0usize)as*mut u8,();
57(MapImageCoreUint)__receiver)
58 }
59 }
60}
61
62#[cfg(feature = "app-mapimagecoreuint")]
63impl<__T: IMapImageCoreUint> IMapImageCoreUintMethods for __T {}
64
65#[cfg(feature = "app-mapimagecoreuint")]
66impl MapImageCoreUint {
67 pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
68 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
69 }
70
71 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
72 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
73 }
74}
75
76#[cfg(feature = "app-mapimagecoreuint")]
77impl MapImageCoreUint {
78 #[doc = "Direct (non-virtual) call to `MapImageCoreUint`'s own `Add`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
79 pub unsafe fn add(this: impl ::core::convert::Into<::unity::IlInstance>, index: i32, v: u32) -> () {
80 let __mi = Self::add_method_info();
81 let __inner: extern "C" fn(::unity::IlInstance, i32, u32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
82 __inner(this.into(), index, v, ::core::option::Option::None)
83 }
84}
85
86#[cfg(feature = "app-mapimagecoreuint")]
87impl MapImageCoreUint {
88 #[doc = "`.ctor()` — no args"]
89 pub fn new() -> Self {
90 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
91 panic!(
92 "{}
93::{}
94 failed to instantiate",
95 ::core::stringify!(MapImageCoreUint),
96 ::core::stringify!(new),
97 )
98 });
99 <Self as IMapImageCoreUintMethods>::ctor(this);
100 this
101 }
102}
103
104#[cfg(feature = "app-mapimagecoreuint")]
105#[doc(hidden)]
106pub mod prelude {
107 pub use super::{IMapImageCoreUint, IMapImageCoreUintMethods, MapImageCoreUint};
108 #[cfg(feature = "app-mapimagecore_1")]
109 pub use crate::app::mapimagecore_1::IMapImageCore_1Methods;
110 #[cfg(feature = "app-mapimageindex")]
111 pub use crate::app::mapimageindex::IMapImageIndexMethods;
112 #[cfg(feature = "system-object")]
113 pub use crate::system::object::IObjectMethods;
114 pub use crate::{
115 app::{mapimagecore_1::IMapImageCore_1, mapimageindex::IMapImageIndex},
116 system::object::IObject,
117 };
118}