Skip to main content

engage/generated/app/
mapimageindex.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mapimageindex-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/mapimageindex/MapImageIndex.md"))]
11    #[::unity::class(namespace = "App", name = "MapImageIndex")]
12    #[parent(crate::system::object::Object)]
13    pub struct MapImageIndex {}
14}
15
16#[cfg(feature = "app-mapimageindex-types")]
17pub use __types::*;
18
19#[cfg(feature = "app-mapimageindex")]
20impl MapImageIndex {
21    #[doc = "`GetIndex(i32, i32)` overload"]
22    pub fn get_index(x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> i32 {
23        unsafe {
24            ::unity::il2cpp_call!((::unity::module_base()+0x2060fe0usize)as*mut u8,i32;
25(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
26        }
27    }
28}
29
30#[cfg(feature = "app-mapimageindex")]
31pub trait IMapImageIndexMethods: IMapImageIndex {
32    #[doc = "`.ctor()` overload"]
33    fn ctor(self) -> () {
34        unsafe {
35            let __receiver = <MapImageIndex as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36            ::unity::il2cpp_call!((::unity::module_base()+0x2060ff0usize)as*mut u8,();
37(MapImageIndex)__receiver)
38        }
39    }
40}
41
42#[cfg(feature = "app-mapimageindex")]
43impl<__T: IMapImageIndex> IMapImageIndexMethods for __T {}
44
45#[cfg(feature = "app-mapimageindex")]
46impl MapImageIndex {
47    pub fn get_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
48        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
49    }
50
51    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
52        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
53    }
54}
55
56#[cfg(feature = "app-mapimageindex")]
57impl MapImageIndex {
58    #[doc = "`.ctor()` — no args"]
59    pub fn new() -> Self {
60        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
61            panic!(
62                "{}
63::{}
64 failed to instantiate",
65                ::core::stringify!(MapImageIndex),
66                ::core::stringify!(new),
67            )
68        });
69        <Self as IMapImageIndexMethods>::ctor(this);
70        this
71    }
72}
73
74#[cfg(feature = "app-mapimageindex")]
75#[doc(hidden)]
76pub mod prelude {
77    pub use super::{IMapImageIndex, IMapImageIndexMethods, MapImageIndex};
78    pub use crate::system::object::IObject;
79    #[cfg(feature = "system-object")]
80    pub use crate::system::object::IObjectMethods;
81}