engage/generated/app/
gmapgroundspherecontroller.rs1#[cfg(feature = "app-gmapgroundspherecontroller-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/gmapgroundspherecontroller/GmapGroundSphereController.md"))]
19 #[::unity::class(namespace = "App", name = "GmapGroundSphereController")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct GmapGroundSphereController {
22 #[offset(24)]
23 #[rename(name = "m_MeshRenderer")]
24 pub m_mesh_renderer: crate::unity_engine::meshrenderer::MeshRenderer,
25 #[offset(32)]
26 #[rename(name = "m_GrandSunkTexture")]
27 pub m_grand_sunk_texture: crate::unity_engine::texture2d::Texture2D,
28 #[offset(40)]
29 #[rename(name = "m_GrandAscendTexture")]
30 pub m_grand_ascend_texture: crate::unity_engine::texture2d::Texture2D,
31 }
32}
33
34#[cfg(feature = "app-gmapgroundspherecontroller-types")]
35pub use __types::*;
36
37#[cfg(feature = "app-gmapgroundspherecontroller")]
38pub trait IGmapGroundSphereControllerMethods: IGmapGroundSphereController {
39 #[doc = "`ChangeTexture(bool)` overload"]
40 fn change_texture(self, is_ascend: impl ::core::convert::Into<bool>) -> () {
41 unsafe {
42 let __receiver =
43 <GmapGroundSphereController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44 ::unity::il2cpp_call!((::unity::module_base()+0x2528b20usize)as*mut u8,();
45(GmapGroundSphereController)__receiver,(bool)::core::convert::Into::into(is_ascend))
46 }
47 }
48 #[doc = "`.ctor()` overload"]
49 fn ctor(self) -> () {
50 unsafe {
51 let __receiver =
52 <GmapGroundSphereController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53 ::unity::il2cpp_call!((::unity::module_base()+0x2528ba0usize)as*mut u8,();
54(GmapGroundSphereController)__receiver)
55 }
56 }
57}
58
59#[cfg(feature = "app-gmapgroundspherecontroller")]
60impl<__T: IGmapGroundSphereController> IGmapGroundSphereControllerMethods for __T {}
61
62#[cfg(feature = "app-gmapgroundspherecontroller")]
63impl GmapGroundSphereController {
64 pub fn change_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
65 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
66 }
67
68 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
69 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
70 }
71}
72
73#[cfg(feature = "app-gmapgroundspherecontroller")]
74impl GmapGroundSphereController {
75 #[doc = "`.ctor()` — no args"]
76 pub fn new() -> Self {
77 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
78 panic!(
79 "{}
80::{}
81 failed to instantiate",
82 ::core::stringify!(GmapGroundSphereController),
83 ::core::stringify!(new),
84 )
85 });
86 <Self as IGmapGroundSphereControllerMethods>::ctor(this);
87 this
88 }
89}
90
91#[cfg(feature = "app-gmapgroundspherecontroller")]
92#[doc(hidden)]
93pub mod prelude {
94 pub use super::{GmapGroundSphereController, IGmapGroundSphereController, IGmapGroundSphereControllerMethods};
95 #[cfg(feature = "system-object")]
96 pub use crate::system::object::IObjectMethods;
97 #[cfg(feature = "unity_engine-behaviour")]
98 pub use crate::unity_engine::behaviour::IBehaviourMethods;
99 #[cfg(feature = "unity_engine-component")]
100 pub use crate::unity_engine::component::IComponentMethods;
101 #[cfg(feature = "unity_engine-monobehaviour")]
102 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
103 #[cfg(feature = "unity_engine-object_2")]
104 pub use crate::unity_engine::object_2::IObject_2Methods;
105 pub use crate::{
106 system::object::IObject,
107 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
108 };
109}