Skip to main content

engage/generated/app/
mapinfobase.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mapinfobase-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            behaviour::{Behaviour, IBehaviour},
12            component::{Component, IComponent},
13            monobehaviour::{IMonoBehaviour, MonoBehaviour},
14            object_2::{IObject_2, Object_2},
15        },
16    };
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapinfobase/MapInfoBase.md"))]
19    #[::unity::class(namespace = "App", name = "MapInfoBase")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct MapInfoBase {
22        #[offset(24)]
23        #[rename(name = "m_Enable")]
24        pub m_enable: bool,
25    }
26}
27
28#[cfg(feature = "app-mapinfobase-types")]
29pub use __types::*;
30
31#[cfg(feature = "app-mapinfobase")]
32pub trait IMapInfoBaseMethods: IMapInfoBase {
33    #[doc = "`SetEnable(bool)` overload"]
34    fn set_enable(self, enable: impl ::core::convert::Into<bool>) -> () {
35        unsafe {
36            let __receiver = <MapInfoBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
37            ::unity::il2cpp_call!((::unity::module_base()+0x2069040usize)as*mut u8,();
38(MapInfoBase)__receiver,(bool)::core::convert::Into::into(enable))
39        }
40    }
41    #[doc = "`IsEnable()` overload"]
42    fn is_enable(self) -> bool {
43        unsafe {
44            let __receiver = <MapInfoBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
45            ::unity::il2cpp_call!((::unity::module_base()+0x2069050usize)as*mut u8,bool;
46(MapInfoBase)__receiver)
47        }
48    }
49    #[doc = "`.ctor()` overload"]
50    fn ctor(self) -> () {
51        unsafe {
52            let __receiver = <MapInfoBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53            ::unity::il2cpp_call!((::unity::module_base()+0x2069060usize)as*mut u8,();
54(MapInfoBase)__receiver)
55        }
56    }
57}
58
59#[cfg(feature = "app-mapinfobase")]
60impl<__T: IMapInfoBase> IMapInfoBaseMethods for __T {}
61
62#[cfg(feature = "app-mapinfobase")]
63impl MapInfoBase {
64    pub fn set_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
65        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
66    }
67
68    pub fn is_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
69        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
70    }
71
72    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
74    }
75}
76
77#[cfg(feature = "app-mapinfobase")]
78impl MapInfoBase {
79    #[doc = "`.ctor()` — no args"]
80    pub fn new() -> Self {
81        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
82            panic!(
83                "{}
84::{}
85 failed to instantiate",
86                ::core::stringify!(MapInfoBase),
87                ::core::stringify!(new),
88            )
89        });
90        <Self as IMapInfoBaseMethods>::ctor(this);
91        this
92    }
93}
94
95#[cfg(feature = "app-mapinfobase")]
96#[doc(hidden)]
97pub mod prelude {
98    pub use super::{IMapInfoBase, IMapInfoBaseMethods, MapInfoBase};
99    #[cfg(feature = "system-object")]
100    pub use crate::system::object::IObjectMethods;
101    #[cfg(feature = "unity_engine-behaviour")]
102    pub use crate::unity_engine::behaviour::IBehaviourMethods;
103    #[cfg(feature = "unity_engine-component")]
104    pub use crate::unity_engine::component::IComponentMethods;
105    #[cfg(feature = "unity_engine-monobehaviour")]
106    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
107    #[cfg(feature = "unity_engine-object_2")]
108    pub use crate::unity_engine::object_2::IObject_2Methods;
109    pub use crate::{
110        system::object::IObject,
111        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
112    };
113}