Skip to main content

engage/generated/app/
mapimagecorebyte.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mapimagecorebyte-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/mapimagecorebyte/MapImageCoreByte.md"))]
17    #[::unity::class(namespace = "App", name = "MapImageCoreByte")]
18    #[parent(crate::app::mapimagecore_1::MapImageCore_1<u8>)]
19    pub struct MapImageCoreByte {}
20}
21
22#[cfg(feature = "app-mapimagecorebyte-types")]
23pub use __types::*;
24
25#[cfg(feature = "app-mapimagecorebyte")]
26pub trait IMapImageCoreByteMethods: IMapImageCoreByte {
27    #[doc = "`Add(i32, u8)` overload"]
28    fn add(self, index: impl ::core::convert::Into<i32>, v: impl ::core::convert::Into<u8>) -> () {
29        unsafe {
30            let __receiver = <MapImageCoreByte 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                        <MapImageCoreByte as ::unity::ClassIdentity>::NAME,
43                        "Add",
44                    )
45                });
46                let __inner: extern "C" fn(MapImageCoreByte, i32, u8, ::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 = "`GetHashCode()` overload"]
53    fn get_hash_code(self) -> i32 {
54        unsafe {
55            let __receiver = <MapImageCoreByte as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            {
57                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
58                let __vi = *__vt.get(2usize).unwrap_or_else(|| {
59                    panic!(
60                        "unity: virtual slot {}
61 out of range (vtable len {}
62) on the runtime class behind {}
63 (method `{}
64`)",
65                        2usize,
66                        __vt.len(),
67                        <MapImageCoreByte as ::unity::ClassIdentity>::NAME,
68                        "GetHashCode",
69                    )
70                });
71                let __inner: extern "C" fn(MapImageCoreByte, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
72                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
73                __inner(__receiver, __mi)
74            }
75        }
76    }
77    #[doc = "`.ctor()` overload"]
78    fn ctor(self) -> () {
79        unsafe {
80            let __receiver = <MapImageCoreByte as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81            ::unity::il2cpp_call!((::unity::module_base()+0x205f8f0usize)as*mut u8,();
82(MapImageCoreByte)__receiver)
83        }
84    }
85}
86
87#[cfg(feature = "app-mapimagecorebyte")]
88impl<__T: IMapImageCoreByte> IMapImageCoreByteMethods for __T {}
89
90#[cfg(feature = "app-mapimagecorebyte")]
91impl MapImageCoreByte {
92    pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
93        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
94    }
95
96    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
97        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
98    }
99
100    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
102    }
103}
104
105#[cfg(feature = "app-mapimagecorebyte")]
106impl MapImageCoreByte {
107    #[doc = "Direct (non-virtual) call to `MapImageCoreByte`'s own `Add`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
108    pub unsafe fn add(this: impl ::core::convert::Into<::unity::IlInstance>, index: i32, v: u8) -> () {
109        let __mi = Self::add_method_info();
110        let __inner: extern "C" fn(::unity::IlInstance, i32, u8, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
111        __inner(this.into(), index, v, ::core::option::Option::None)
112    }
113
114    #[doc = "Direct (non-virtual) call to `MapImageCoreByte`'s own `GetHashCode`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
115    pub unsafe fn get_hash_code(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
116        let __mi = Self::get_hash_code_method_info();
117        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
118        __inner(this.into(), ::core::option::Option::None)
119    }
120}
121
122#[cfg(feature = "app-mapimagecorebyte")]
123impl MapImageCoreByte {
124    #[doc = "`.ctor()` — no args"]
125    pub fn new() -> Self {
126        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
127            panic!(
128                "{}
129::{}
130 failed to instantiate",
131                ::core::stringify!(MapImageCoreByte),
132                ::core::stringify!(new),
133            )
134        });
135        <Self as IMapImageCoreByteMethods>::ctor(this);
136        this
137    }
138}
139
140#[cfg(feature = "app-mapimagecorebyte")]
141#[doc(hidden)]
142pub mod prelude {
143    pub use super::{IMapImageCoreByte, IMapImageCoreByteMethods, MapImageCoreByte};
144    #[cfg(feature = "app-mapimagecore_1")]
145    pub use crate::app::mapimagecore_1::IMapImageCore_1Methods;
146    #[cfg(feature = "app-mapimageindex")]
147    pub use crate::app::mapimageindex::IMapImageIndexMethods;
148    #[cfg(feature = "system-object")]
149    pub use crate::system::object::IObjectMethods;
150    pub use crate::{
151        app::{mapimagecore_1::IMapImageCore_1, mapimageindex::IMapImageIndex},
152        system::object::IObject,
153    };
154}