Skip to main content

engage/generated/app/
gmapgroundcollider.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-gmapgroundcollider-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::{
10            object::{IObject, Object},
11            r#enum::{Enum, IEnum},
12            valuetype::{IValueType, ValueType},
13        },
14        unity_engine::{
15            behaviour::{Behaviour, IBehaviour},
16            component::{Component, IComponent},
17            monobehaviour::{IMonoBehaviour, MonoBehaviour},
18            object_2::{IObject_2, Object_2},
19        },
20    };
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gmapgroundcollider/GmapGroundCollider.md"))]
23    #[::unity::class(namespace = "App", name = "GmapGroundCollider")]
24    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
25    pub struct GmapGroundCollider {
26        #[offset(24)]
27        #[rename(name = "m_GroundType")]
28        pub m_ground_type: crate::app::gmapgroundcollider::GmapGroundCollider_Type,
29    }
30
31    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gmapgroundcollider/GmapGroundCollider_Type.md"))]
32    #[repr(C)]
33    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
34    pub struct GmapGroundCollider_Type {
35        pub value: i32,
36    }
37    impl ::unity::ClassIdentity for GmapGroundCollider_Type {
38        const NAME: &'static str = "GmapGroundCollider.Type";
39        const NAMESPACE: &'static str = "App";
40
41        fn class() -> ::unity::Class {
42            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
43            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
44        }
45    }
46    impl ::unity::IlType for GmapGroundCollider_Type {
47        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
48            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
49        }
50    }
51    impl GmapGroundCollider_Type {
52        pub fn 地面() -> Self {
53            Self { value: 0 }
54        }
55
56        pub fn 海面() -> Self {
57            Self { value: 1 }
58        }
59    }
60}
61
62#[cfg(feature = "app-gmapgroundcollider-types")]
63pub use __types::*;
64
65#[cfg(feature = "app-gmapgroundcollider")]
66pub trait IGmapGroundColliderMethods: IGmapGroundCollider {
67    #[doc = "`OnValidate()` overload"]
68    fn on_validate(self) -> () {
69        unsafe {
70            let __receiver = <GmapGroundCollider as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71            ::unity::il2cpp_call!((::unity::module_base()+0x2528a50usize)as*mut u8,();
72(GmapGroundCollider)__receiver)
73        }
74    }
75    #[doc = "`get_GroundType()` overload"]
76    fn get_ground_type(self) -> crate::app::gmapgroundcollider::GmapGroundCollider_Type {
77        unsafe {
78            let __receiver = <GmapGroundCollider as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79            ::unity::il2cpp_call!((::unity::module_base()+0x2528af0usize)as*mut u8,crate::app::gmapgroundcollider::GmapGroundCollider_Type;
80(GmapGroundCollider)__receiver)
81        }
82    }
83    #[doc = "`.ctor()` overload"]
84    fn ctor(self) -> () {
85        unsafe {
86            let __receiver = <GmapGroundCollider as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87            ::unity::il2cpp_call!((::unity::module_base()+0x2528b00usize)as*mut u8,();
88(GmapGroundCollider)__receiver)
89        }
90    }
91}
92
93#[cfg(feature = "app-gmapgroundcollider")]
94impl<__T: IGmapGroundCollider> IGmapGroundColliderMethods for __T {}
95
96#[cfg(feature = "app-gmapgroundcollider")]
97impl GmapGroundCollider {
98    pub fn on_validate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
100    }
101
102    pub fn get_ground_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
104    }
105
106    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
108    }
109}
110
111#[cfg(feature = "app-gmapgroundcollider")]
112impl GmapGroundCollider {
113    #[doc = "`.ctor()` — no args"]
114    pub fn new() -> Self {
115        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
116            panic!(
117                "{}
118::{}
119 failed to instantiate",
120                ::core::stringify!(GmapGroundCollider),
121                ::core::stringify!(new),
122            )
123        });
124        <Self as IGmapGroundColliderMethods>::ctor(this);
125        this
126    }
127}
128
129#[cfg(feature = "app-gmapgroundcollider")]
130#[doc(hidden)]
131pub mod prelude {
132    pub use super::{GmapGroundCollider, GmapGroundCollider_Type, IGmapGroundCollider, IGmapGroundColliderMethods};
133    #[cfg(feature = "system-object")]
134    pub use crate::system::object::IObjectMethods;
135    #[cfg(feature = "system-enum")]
136    pub use crate::system::r#enum::IEnumMethods;
137    #[cfg(feature = "system-valuetype")]
138    pub use crate::system::valuetype::IValueTypeMethods;
139    #[cfg(feature = "unity_engine-behaviour")]
140    pub use crate::unity_engine::behaviour::IBehaviourMethods;
141    #[cfg(feature = "unity_engine-component")]
142    pub use crate::unity_engine::component::IComponentMethods;
143    #[cfg(feature = "unity_engine-monobehaviour")]
144    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
145    #[cfg(feature = "unity_engine-object_2")]
146    pub use crate::unity_engine::object_2::IObject_2Methods;
147    pub use crate::{
148        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
149        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
150    };
151}