engage/generated/app/
mapmaterial.rs1#[cfg(feature = "app-mapmaterial-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 r#enum::{Enum, IEnum},
11 valuetype::{IValueType, ValueType},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapmaterial/MapMaterial_Node.md"))]
15 #[::unity::class(namespace = "App", name = "MapMaterial.Node")]
16 #[parent(crate::system::object::Object)]
17 pub struct MapMaterial_Node {
18 #[offset(16)]
19 #[rename(name = "kind")]
20 pub kind: crate::app::mapmaterial::MapMaterial_Kinds,
21 #[offset(24)]
22 #[rename(name = "material")]
23 pub material: ::unity::Il2CppString,
24 #[offset(32)]
25 #[rename(name = "property")]
26 pub property: ::unity::Il2CppString,
27 #[offset(40)]
28 #[rename(name = "value")]
29 pub value: f32,
30 #[offset(44)]
31 #[rename(name = "color")]
32 pub color: crate::unity_engine::color::Color,
33 }
34
35 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapmaterial/MapMaterial.md"))]
36 #[::unity::class(namespace = "App", name = "MapMaterial")]
37 #[parent(crate::system::object::Object)]
38 pub struct MapMaterial {
39 #[offset(16)]
40 #[rename(name = "m_List")]
41 pub m_list: crate::system::collections::generic::list_1::List_1<crate::app::mapmaterial::MapMaterial_Node>,
42 }
43
44 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapmaterial/MapMaterial_Kinds.md"))]
45 #[repr(C)]
46 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
47 pub struct MapMaterial_Kinds {
48 pub value: i32,
49 }
50 impl ::unity::ClassIdentity for MapMaterial_Kinds {
51 const NAME: &'static str = "MapMaterial.Kinds";
52 const NAMESPACE: &'static str = "App";
53
54 fn class() -> ::unity::Class {
55 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
56 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
57 }
58 }
59 impl ::unity::IlType for MapMaterial_Kinds {
60 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
61 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
62 }
63 }
64 impl MapMaterial_Kinds {
65 pub fn none() -> Self {
66 Self { value: 0 }
67 }
68
69 pub fn float() -> Self {
70 Self { value: 1 }
71 }
72
73 pub fn color() -> Self {
74 Self { value: 2 }
75 }
76 }
77}
78
79#[cfg(feature = "app-mapmaterial-types")]
80pub use __types::*;
81
82#[cfg(feature = "app-mapmaterial")]
83pub trait IMapMaterial_NodeMethods: IMapMaterial_Node {
84 #[doc = "`.ctor()` overload"]
85 fn ctor(self) -> () {
86 unsafe {
87 let __receiver = <MapMaterial_Node as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88 ::unity::il2cpp_call!((::unity::module_base()+0x2186b00usize)as*mut u8,();
89(MapMaterial_Node)__receiver)
90 }
91 }
92}
93
94#[cfg(feature = "app-mapmaterial")]
95impl<__T: IMapMaterial_Node> IMapMaterial_NodeMethods for __T {}
96
97#[cfg(feature = "app-mapmaterial")]
98impl MapMaterial_Node {
99 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
101 }
102}
103
104#[cfg(feature = "app-mapmaterial")]
105impl MapMaterial_Node {
106 #[doc = "`.ctor()` — no args"]
107 pub fn new() -> Self {
108 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
109 panic!(
110 "{}
111::{}
112 failed to instantiate",
113 ::core::stringify!(MapMaterial_Node),
114 ::core::stringify!(new),
115 )
116 });
117 <Self as IMapMaterial_NodeMethods>::ctor(this);
118 this
119 }
120}
121
122#[cfg(feature = "app-mapmaterial")]
123pub trait IMapMaterialMethods: IMapMaterial {
124 #[doc = "`.ctor()` overload"]
125 fn ctor(self) -> () {
126 unsafe {
127 let __receiver = <MapMaterial as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128 ::unity::il2cpp_call!((::unity::module_base()+0x1df3e90usize)as*mut u8,();
129(MapMaterial)__receiver)
130 }
131 }
132 #[doc = "`Find(crate::app::mapmaterial::MapMaterial_Kinds, ::unity::Il2CppString, ::unity::Il2CppString)` overload"]
133 fn find(
134 self,
135 kind: impl ::core::convert::Into<crate::app::mapmaterial::MapMaterial_Kinds>,
136 material: impl ::core::convert::Into<::unity::Il2CppString>,
137 property: impl ::core::convert::Into<::unity::Il2CppString>,
138 ) -> crate::app::mapmaterial::MapMaterial_Node {
139 unsafe {
140 let __receiver = <MapMaterial as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141 ::unity::il2cpp_call!((::unity::module_base()+0x1df3f20usize)as*mut u8,crate::app::mapmaterial::MapMaterial_Node;
142(MapMaterial)__receiver,(crate::app::mapmaterial::MapMaterial_Kinds)::core::convert::Into::into(kind),(::unity::Il2CppString)::core::convert::Into::into(material),(::unity::Il2CppString)::core::convert::Into::into(property))
143 }
144 }
145 #[doc = "`TryAdd(crate::app::mapmaterial::MapMaterial_Kinds, ::unity::Il2CppString, ::unity::Il2CppString)` overload"]
146 fn try_add(
147 self,
148 kind: impl ::core::convert::Into<crate::app::mapmaterial::MapMaterial_Kinds>,
149 material: impl ::core::convert::Into<::unity::Il2CppString>,
150 property: impl ::core::convert::Into<::unity::Il2CppString>,
151 ) -> crate::app::mapmaterial::MapMaterial_Node {
152 unsafe {
153 let __receiver = <MapMaterial as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154 ::unity::il2cpp_call!((::unity::module_base()+0x1df4080usize)as*mut u8,crate::app::mapmaterial::MapMaterial_Node;
155(MapMaterial)__receiver,(crate::app::mapmaterial::MapMaterial_Kinds)::core::convert::Into::into(kind),(::unity::Il2CppString)::core::convert::Into::into(material),(::unity::Il2CppString)::core::convert::Into::into(property))
156 }
157 }
158 #[doc = "`get_Count()` overload"]
159 fn get_count(self) -> i32 {
160 unsafe {
161 let __receiver = <MapMaterial as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162 ::unity::il2cpp_call!((::unity::module_base()+0x1df4160usize)as*mut u8,i32;
163(MapMaterial)__receiver)
164 }
165 }
166 #[doc = "`get_Item(i32)` overload"]
167 fn get_item(self, i: impl ::core::convert::Into<i32>) -> crate::app::mapmaterial::MapMaterial_Node {
168 unsafe {
169 let __receiver = <MapMaterial as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170 ::unity::il2cpp_call!((::unity::module_base()+0x1df41b0usize)as*mut u8,crate::app::mapmaterial::MapMaterial_Node;
171(MapMaterial)__receiver,(i32)::core::convert::Into::into(i))
172 }
173 }
174 #[doc = "`GetEnumerator()` overload"]
175 fn get_enumerator(self) -> crate::system::collections::generic::ienumerator_1::IEnumerator_1<crate::app::mapmaterial::MapMaterial_Node> {
176 unsafe {
177 let __receiver = <MapMaterial as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178 ::unity::il2cpp_call!((::unity::module_base()+0x1df4220usize)as*mut u8,crate::system::collections::generic::ienumerator_1::IEnumerator_1<crate::app::mapmaterial::MapMaterial_Node> ;
179(MapMaterial)__receiver)
180 }
181 }
182}
183
184#[cfg(feature = "app-mapmaterial")]
185impl<__T: IMapMaterial> IMapMaterialMethods for __T {}
186
187#[cfg(feature = "app-mapmaterial")]
188impl MapMaterial {
189 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
191 }
192
193 pub fn find_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
195 }
196
197 pub fn try_add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
199 }
200
201 pub fn get_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
203 }
204
205 pub fn get_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
207 }
208
209 pub fn get_enumerator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
211 }
212}
213
214#[cfg(feature = "app-mapmaterial")]
215impl MapMaterial {
216 #[doc = "`.ctor()` — no args"]
217 pub fn new() -> Self {
218 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
219 panic!(
220 "{}
221::{}
222 failed to instantiate",
223 ::core::stringify!(MapMaterial),
224 ::core::stringify!(new),
225 )
226 });
227 <Self as IMapMaterialMethods>::ctor(this);
228 this
229 }
230}
231
232#[cfg(feature = "app-mapmaterial")]
233#[doc(hidden)]
234pub mod prelude {
235 pub use super::{
236 IMapMaterial, IMapMaterialMethods, IMapMaterial_Node, IMapMaterial_NodeMethods, MapMaterial, MapMaterial_Kinds, MapMaterial_Node,
237 };
238 #[cfg(feature = "system-object")]
239 pub use crate::system::object::IObjectMethods;
240 #[cfg(feature = "system-enum")]
241 pub use crate::system::r#enum::IEnumMethods;
242 #[cfg(feature = "system-valuetype")]
243 pub use crate::system::valuetype::IValueTypeMethods;
244 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
245}