Skip to main content

engage/generated/app/
mapbounding.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mapbounding-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/mapbounding/MapBounding.md"))]
19    #[::unity::class(namespace = "App", name = "MapBounding")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct MapBounding {
22        #[offset(24)]
23        #[rename(name = "m_Ratio")]
24        pub m_ratio: f32,
25    }
26}
27
28#[cfg(feature = "app-mapbounding-types")]
29pub use __types::*;
30
31#[cfg(feature = "app-mapbounding")]
32pub trait IMapBoundingMethods: IMapBounding {
33    #[doc = "`Start()` overload"]
34    fn start(self) -> () {
35        unsafe {
36            let __receiver = <MapBounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
37            ::unity::il2cpp_call!((::unity::module_base()+0x299a120usize)as*mut u8,();
38(MapBounding)__receiver)
39        }
40    }
41    #[doc = "`.ctor()` overload"]
42    fn ctor(self) -> () {
43        unsafe {
44            let __receiver = <MapBounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
45            ::unity::il2cpp_call!((::unity::module_base()+0x299a130usize)as*mut u8,();
46(MapBounding)__receiver)
47        }
48    }
49}
50
51#[cfg(feature = "app-mapbounding")]
52impl<__T: IMapBounding> IMapBoundingMethods for __T {}
53
54#[cfg(feature = "app-mapbounding")]
55impl MapBounding {
56    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
57        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
58    }
59
60    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
61        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
62    }
63}
64
65#[cfg(feature = "app-mapbounding")]
66impl MapBounding {
67    #[doc = "`.ctor()` — no args"]
68    pub fn new() -> Self {
69        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
70            panic!(
71                "{}
72::{}
73 failed to instantiate",
74                ::core::stringify!(MapBounding),
75                ::core::stringify!(new),
76            )
77        });
78        <Self as IMapBoundingMethods>::ctor(this);
79        this
80    }
81}
82
83#[cfg(feature = "app-mapbounding")]
84#[doc(hidden)]
85pub mod prelude {
86    pub use super::{IMapBounding, IMapBoundingMethods, MapBounding};
87    #[cfg(feature = "system-object")]
88    pub use crate::system::object::IObjectMethods;
89    #[cfg(feature = "unity_engine-behaviour")]
90    pub use crate::unity_engine::behaviour::IBehaviourMethods;
91    #[cfg(feature = "unity_engine-component")]
92    pub use crate::unity_engine::component::IComponentMethods;
93    #[cfg(feature = "unity_engine-monobehaviour")]
94    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
95    #[cfg(feature = "unity_engine-object_2")]
96    pub use crate::unity_engine::object_2::IObject_2Methods;
97    pub use crate::{
98        system::object::IObject,
99        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
100    };
101}