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