engage/generated/app/
hubmaterialselector.rs1#[cfg(feature = "app-hubmaterialselector-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/hubmaterialselector/HubMaterialSelector.md"))]
19 #[::unity::class(namespace = "App", name = "HubMaterialSelector")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct HubMaterialSelector {
22 #[offset(24)]
23 #[rename(name = "m_target")]
24 pub m_target: crate::unity_engine::gameobject::GameObject,
25 #[offset(32)]
26 #[rename(name = "m_lods")]
27 pub m_lods: crate::system::collections::generic::list_1::List_1<crate::unity_engine::gameobject::GameObject>,
28 #[offset(40)]
29 #[rename(name = "m_submeshNo")]
30 pub m_submesh_no: u32,
31 #[offset(48)]
32 #[rename(name = "m_materialMorning")]
33 pub m_material_morning: crate::unity_engine::material::Material,
34 #[offset(56)]
35 #[rename(name = "m_materialDay")]
36 pub m_material_day: crate::unity_engine::material::Material,
37 #[offset(64)]
38 #[rename(name = "m_materialEvening")]
39 pub m_material_evening: crate::unity_engine::material::Material,
40 #[offset(72)]
41 #[rename(name = "m_materialNight")]
42 pub m_material_night: crate::unity_engine::material::Material,
43 #[offset(80)]
44 #[rename(name = "m_renderers")]
45 pub m_renderers: crate::system::collections::generic::list_1::List_1<crate::unity_engine::renderer::Renderer>,
46 }
47}
48
49#[cfg(feature = "app-hubmaterialselector-types")]
50pub use __types::*;
51
52#[cfg(feature = "app-hubmaterialselector")]
53pub trait IHubMaterialSelectorMethods: IHubMaterialSelector {
54 #[doc = "`Awake()` overload"]
55 fn awake(self) -> () {
56 unsafe {
57 let __receiver = <HubMaterialSelector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
58 ::unity::il2cpp_call!((::unity::module_base()+0x28b6510usize)as*mut u8,();
59(HubMaterialSelector)__receiver)
60 }
61 }
62 #[doc = "`Start()` overload"]
63 fn start(self) -> () {
64 unsafe {
65 let __receiver = <HubMaterialSelector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66 ::unity::il2cpp_call!((::unity::module_base()+0x28b67d0usize)as*mut u8,();
67(HubMaterialSelector)__receiver)
68 }
69 }
70 #[doc = "`Apply(crate::app::hubutil::HubUtil_TimezoneType)` overload"]
71 fn apply(self, timezone_type: impl ::core::convert::Into<crate::app::hubutil::HubUtil_TimezoneType>) -> () {
72 unsafe {
73 let __receiver = <HubMaterialSelector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74 ::unity::il2cpp_call!((::unity::module_base()+0x28b6850usize)as*mut u8,();
75(HubMaterialSelector)__receiver,(crate::app::hubutil::HubUtil_TimezoneType)::core::convert::Into::into(timezone_type))
76 }
77 }
78 #[doc = "`ReplaceMaterial(crate::unity_engine::material::Material)` overload"]
79 fn replace_material(self, material: impl ::core::convert::Into<crate::unity_engine::material::Material>) -> () {
80 unsafe {
81 let __receiver = <HubMaterialSelector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82 ::unity::il2cpp_call!((::unity::module_base()+0x28b69d0usize)as*mut u8,();
83(HubMaterialSelector)__receiver,(crate::unity_engine::material::Material)::core::convert::Into::into(material))
84 }
85 }
86 #[doc = "`.ctor()` overload"]
87 fn ctor(self) -> () {
88 unsafe {
89 let __receiver = <HubMaterialSelector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90 ::unity::il2cpp_call!((::unity::module_base()+0x28b6d00usize)as*mut u8,();
91(HubMaterialSelector)__receiver)
92 }
93 }
94}
95
96#[cfg(feature = "app-hubmaterialselector")]
97impl<__T: IHubMaterialSelector> IHubMaterialSelectorMethods for __T {}
98
99#[cfg(feature = "app-hubmaterialselector")]
100impl HubMaterialSelector {
101 pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
103 }
104
105 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
107 }
108
109 pub fn apply_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
111 }
112
113 pub fn replace_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
115 }
116
117 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
119 }
120}
121
122#[cfg(feature = "app-hubmaterialselector")]
123impl HubMaterialSelector {
124 #[doc = "`.ctor()` — no args"]
125 pub fn new() -> Self {
126 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
127 panic!(
128 "{}
129::{}
130 failed to instantiate",
131 ::core::stringify!(HubMaterialSelector),
132 ::core::stringify!(new),
133 )
134 });
135 <Self as IHubMaterialSelectorMethods>::ctor(this);
136 this
137 }
138}
139
140#[cfg(feature = "app-hubmaterialselector")]
141#[doc(hidden)]
142pub mod prelude {
143 pub use super::{HubMaterialSelector, IHubMaterialSelector, IHubMaterialSelectorMethods};
144 #[cfg(feature = "system-object")]
145 pub use crate::system::object::IObjectMethods;
146 #[cfg(feature = "unity_engine-behaviour")]
147 pub use crate::unity_engine::behaviour::IBehaviourMethods;
148 #[cfg(feature = "unity_engine-component")]
149 pub use crate::unity_engine::component::IComponentMethods;
150 #[cfg(feature = "unity_engine-monobehaviour")]
151 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
152 #[cfg(feature = "unity_engine-object_2")]
153 pub use crate::unity_engine::object_2::IObject_2Methods;
154 pub use crate::{
155 system::object::IObject,
156 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
157 };
158}