1#[cfg(feature = "root-debugmesh-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::dynamicmesh::{DynamicMesh, IDynamicMesh},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/debugmesh/DebugMesh.md"))]
14 #[::unity::class(namespace = "", name = "DebugMesh")]
15 #[parent(crate::app::dynamicmesh::DynamicMesh)]
16 pub struct DebugMesh {
17 #[static_field]
18 #[rename(name = "SCALE_X")]
19 pub scale_x: f32,
20 #[static_field]
21 #[rename(name = "SCALE_Y")]
22 pub scale_y: f32,
23 #[static_field]
24 #[rename(name = "ROLL_90")]
25 pub roll_90: crate::unity_engine::quaternion::Quaternion,
26 #[offset(100)]
27 #[rename(name = "m_MaskUV")]
28 pub m_mask_uv: crate::unity_engine::vector2::Vector2,
29 }
30}
31
32#[cfg(feature = "root-debugmesh-types")]
33pub use __types::*;
34
35#[cfg(feature = "root-debugmesh")]
36impl DebugMesh {
37 #[doc = "`GetIndex(u16)` overload"]
38 pub fn get_index(code: impl ::core::convert::Into<u16>) -> i32 {
39 unsafe {
40 ::unity::il2cpp_call!((::unity::module_base()+0x2a0e1c0usize)as*mut u8,i32;
41(u16)::core::convert::Into::into(code))
42 }
43 }
44
45 #[doc = "`GetUV0(i32)` overload"]
46 pub fn get_uv0(index: impl ::core::convert::Into<i32>) -> crate::unity_engine::vector2::Vector2 {
47 unsafe {
48 ::unity::il2cpp_call!((::unity::module_base()+0x2a0e1e0usize)as*mut u8,crate::unity_engine::vector2::Vector2;
49(i32)::core::convert::Into::into(index))
50 }
51 }
52
53 #[doc = "`GetUV2(i32)` overload"]
54 pub fn get_uv2(index: impl ::core::convert::Into<i32>) -> crate::unity_engine::vector2::Vector2 {
55 unsafe {
56 ::unity::il2cpp_call!((::unity::module_base()+0x2a0e210usize)as*mut u8,crate::unity_engine::vector2::Vector2;
57(i32)::core::convert::Into::into(index))
58 }
59 }
60
61 #[doc = "`GetMaskUV()` overload"]
62 pub fn get_mask_uv() -> crate::unity_engine::vector2::Vector2 {
63 unsafe {
64 ::unity::il2cpp_call!((::unity::module_base()+0x2a0d2f0usize)as*mut u8,crate::unity_engine::vector2::Vector2;
65 )
66 }
67 }
68
69 #[doc = "`GetNumUV0(i32)` overload"]
70 pub fn get_num_uv0(num: impl ::core::convert::Into<i32>) -> crate::unity_engine::vector2::Vector2 {
71 unsafe {
72 ::unity::il2cpp_call!((::unity::module_base()+0x2a0e250usize)as*mut u8,crate::unity_engine::vector2::Vector2;
73(i32)::core::convert::Into::into(num))
74 }
75 }
76
77 #[doc = "`GetNumUV2(i32)` overload"]
78 pub fn get_num_uv2(num: impl ::core::convert::Into<i32>) -> crate::unity_engine::vector2::Vector2 {
79 unsafe {
80 ::unity::il2cpp_call!((::unity::module_base()+0x2a0e2a0usize)as*mut u8,crate::unity_engine::vector2::Vector2;
81(i32)::core::convert::Into::into(num))
82 }
83 }
84
85 #[doc = "`GetHexUV0(i32)` overload"]
86 pub fn get_hex_uv0(hex: impl ::core::convert::Into<i32>) -> crate::unity_engine::vector2::Vector2 {
87 unsafe {
88 ::unity::il2cpp_call!((::unity::module_base()+0x2a0e2f0usize)as*mut u8,crate::unity_engine::vector2::Vector2;
89(i32)::core::convert::Into::into(hex))
90 }
91 }
92
93 #[doc = "`GetHexUV2(i32)` overload"]
94 pub fn get_hex_uv2(hex: impl ::core::convert::Into<i32>) -> crate::unity_engine::vector2::Vector2 {
95 unsafe {
96 ::unity::il2cpp_call!((::unity::module_base()+0x2a0e320usize)as*mut u8,crate::unity_engine::vector2::Vector2;
97(i32)::core::convert::Into::into(hex))
98 }
99 }
100
101 #[doc = "`.cctor()` overload"]
102 pub fn cctor() -> () {
103 unsafe {
104 ::unity::il2cpp_call!((::unity::module_base()+0x2a0e360usize)as*mut u8,();
105 )
106 }
107 }
108}
109
110#[cfg(feature = "root-debugmesh")]
111pub trait IDebugMeshMethods: IDebugMesh {
112 #[doc = "`get_FontSize()` overload"]
113 fn get_font_size(self) -> f32 {
114 unsafe {
115 let __receiver = <DebugMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116 ::unity::il2cpp_call!((::unity::module_base()+0x2a0d230usize)as*mut u8,f32;
117(DebugMesh)__receiver)
118 }
119 }
120 #[doc = "`.ctor(i32)` overload"]
121 fn ctor(self, vertex_capacity: impl ::core::convert::Into<i32>) -> () {
122 unsafe {
123 let __receiver = <DebugMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124 ::unity::il2cpp_call!((::unity::module_base()+0x2a0d240usize)as*mut u8,();
125(DebugMesh)__receiver,(i32)::core::convert::Into::into(vertex_capacity))
126 }
127 }
128 #[doc = "`.ctor(crate::unity_engine::gameobject::GameObject, i32, i32)` overload"]
129 fn ctor_2(
130 self,
131 go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
132 sub_mesh_count: impl ::core::convert::Into<i32>,
133 vertex_capacity: impl ::core::convert::Into<i32>,
134 ) -> () {
135 unsafe {
136 let __receiver = <DebugMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137 ::unity::il2cpp_call!((::unity::module_base()+0x2a0d300usize)as*mut u8,();
138(DebugMesh)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(go),(i32)::core::convert::Into::into(sub_mesh_count),(i32)::core::convert::Into::into(vertex_capacity))
139 }
140 }
141 #[doc = "`AddText(f32, f32, crate::unity_engine::color::Color, ::unity::Il2CppString)` overload"]
142 fn add_text(
143 self,
144 x: impl ::core::convert::Into<f32>,
145 y: impl ::core::convert::Into<f32>,
146 color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
147 text: impl ::core::convert::Into<::unity::Il2CppString>,
148 ) -> () {
149 unsafe {
150 let __receiver = <DebugMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151 ::unity::il2cpp_call!((::unity::module_base()+0x2a0d3c0usize)as*mut u8,();
152(DebugMesh)__receiver,(f32)::core::convert::Into::into(x),(f32)::core::convert::Into::into(y),(crate::unity_engine::color::Color)::core::convert::Into::into(color),(::unity::Il2CppString)::core::convert::Into::into(text))
153 }
154 }
155 #[doc = "`AddText(f32, f32, crate::unity_engine::color::Color, ::unity::Array<u16>)` overload"]
156 fn add_text_2(
157 self,
158 x: impl ::core::convert::Into<f32>,
159 y: impl ::core::convert::Into<f32>,
160 color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
161 text: impl ::core::convert::Into<::unity::Array<u16>>,
162 ) -> () {
163 unsafe {
164 let __receiver = <DebugMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
165 ::unity::il2cpp_call!((::unity::module_base()+0x2a0d950usize)as*mut u8,();
166(DebugMesh)__receiver,(f32)::core::convert::Into::into(x),(f32)::core::convert::Into::into(y),(crate::unity_engine::color::Color)::core::convert::Into::into(color),(::unity::Array<u16>)::core::convert::Into::into(text))
167 }
168 }
169 #[doc = "`AddLine(f32, f32, f32, f32, crate::unity_engine::color::Color)` overload"]
170 fn add_line(
171 self,
172 x0: impl ::core::convert::Into<f32>,
173 y0: impl ::core::convert::Into<f32>,
174 x1: impl ::core::convert::Into<f32>,
175 y1: impl ::core::convert::Into<f32>,
176 color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
177 ) -> () {
178 unsafe {
179 let __receiver = <DebugMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180 ::unity::il2cpp_call!((::unity::module_base()+0x2a0da30usize)as*mut u8,();
181(DebugMesh)__receiver,(f32)::core::convert::Into::into(x0),(f32)::core::convert::Into::into(y0),(f32)::core::convert::Into::into(x1),(f32)::core::convert::Into::into(y1),(crate::unity_engine::color::Color)::core::convert::Into::into(color))
182 }
183 }
184 #[doc = "`AddLine(crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2, crate::unity_engine::color::Color)` overload"]
185 fn add_line_2(
186 self,
187 pos0: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
188 pos1: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
189 color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
190 ) -> () {
191 unsafe {
192 let __receiver = <DebugMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
193 ::unity::il2cpp_call!((::unity::module_base()+0x2a0da40usize)as*mut u8,();
194(DebugMesh)__receiver,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(pos0),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(pos1),(crate::unity_engine::color::Color)::core::convert::Into::into(color))
195 }
196 }
197 #[doc = "`AddRect(crate::unity_engine::rect::Rect, crate::unity_engine::color::Color)` overload"]
198 fn add_rect(
199 self,
200 rect: impl ::core::convert::Into<crate::unity_engine::rect::Rect>,
201 color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
202 ) -> () {
203 unsafe {
204 let __receiver = <DebugMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205 ::unity::il2cpp_call!((::unity::module_base()+0x2a0de10usize)as*mut u8,();
206(DebugMesh)__receiver,(crate::unity_engine::rect::Rect)::core::convert::Into::into(rect),(crate::unity_engine::color::Color)::core::convert::Into::into(color))
207 }
208 }
209 #[doc = "`AddRect(f32, f32, f32, f32, crate::unity_engine::color::Color)` overload"]
210 fn add_rect_2(
211 self,
212 x: impl ::core::convert::Into<f32>,
213 y: impl ::core::convert::Into<f32>,
214 w: impl ::core::convert::Into<f32>,
215 h: impl ::core::convert::Into<f32>,
216 color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
217 ) -> () {
218 unsafe {
219 let __receiver = <DebugMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
220 ::unity::il2cpp_call!((::unity::module_base()+0x2a0ded0usize)as*mut u8,();
221(DebugMesh)__receiver,(f32)::core::convert::Into::into(x),(f32)::core::convert::Into::into(y),(f32)::core::convert::Into::into(w),(f32)::core::convert::Into::into(h),(crate::unity_engine::color::Color)::core::convert::Into::into(color))
222 }
223 }
224 #[doc = "`AddChara(f32, f32, crate::unity_engine::color32::Color32, u16)` overload"]
225 fn add_chara(
226 self,
227 x: impl ::core::convert::Into<f32>,
228 y: impl ::core::convert::Into<f32>,
229 color: impl ::core::convert::Into<crate::unity_engine::color32::Color32>,
230 code: impl ::core::convert::Into<u16>,
231 ) -> f32 {
232 unsafe {
233 let __receiver = <DebugMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
234 ::unity::il2cpp_call!((::unity::module_base()+0x2a0d480usize)as*mut u8,f32;
235(DebugMesh)__receiver,(f32)::core::convert::Into::into(x),(f32)::core::convert::Into::into(y),(crate::unity_engine::color32::Color32)::core::convert::Into::into(color),(u16)::core::convert::Into::into(code))
236 }
237 }
238}
239
240#[cfg(feature = "root-debugmesh")]
241impl<__T: IDebugMesh> IDebugMeshMethods for __T {}
242
243#[cfg(feature = "root-debugmesh")]
244impl DebugMesh {
245 pub fn get_font_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
247 }
248
249 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
251 }
252
253 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
254 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
255 }
256
257 pub fn add_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
258 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
259 }
260
261 pub fn add_text_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
263 }
264
265 pub fn add_line_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
267 }
268
269 pub fn add_line_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
271 }
272
273 pub fn add_rect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
275 }
276
277 pub fn add_rect_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
279 }
280
281 pub fn get_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
283 }
284
285 pub fn get_uv0_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
287 }
288
289 pub fn get_uv2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
291 }
292
293 pub fn get_mask_uv_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
295 }
296
297 pub fn get_num_uv0_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
299 }
300
301 pub fn get_num_uv2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
303 }
304
305 pub fn get_hex_uv0_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
307 }
308
309 pub fn get_hex_uv2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
311 }
312
313 pub fn add_chara_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
315 }
316
317 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
319 }
320}
321
322#[cfg(feature = "root-debugmesh")]
323impl DebugMesh {
324 #[doc = "`.ctor(i32)` — overload selector"]
325 pub fn new(vertex_capacity: i32) -> Self {
326 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
327 panic!(
328 "{}
329::{}
330 failed to instantiate",
331 ::core::stringify!(DebugMesh),
332 ::core::stringify!(new),
333 )
334 });
335 <Self as IDebugMeshMethods>::ctor(this, vertex_capacity);
336 this
337 }
338
339 #[doc = "`.ctor(crate::unity_engine::gameobject::GameObject, i32, i32)` — overload selector"]
340 pub fn new_2(go: crate::unity_engine::gameobject::GameObject, sub_mesh_count: i32, vertex_capacity: i32) -> Self {
341 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
342 panic!(
343 "{}
344::{}
345 failed to instantiate",
346 ::core::stringify!(DebugMesh),
347 ::core::stringify!(new_2),
348 )
349 });
350 <Self as IDebugMeshMethods>::ctor_2(this, go, sub_mesh_count, vertex_capacity);
351 this
352 }
353}
354
355#[cfg(feature = "root-debugmesh")]
356#[doc(hidden)]
357pub mod prelude {
358 pub use super::{DebugMesh, IDebugMesh, IDebugMeshMethods};
359 #[cfg(feature = "app-dynamicmesh")]
360 pub use crate::app::dynamicmesh::IDynamicMeshMethods;
361 #[cfg(feature = "system-object")]
362 pub use crate::system::object::IObjectMethods;
363 pub use crate::{app::dynamicmesh::IDynamicMesh, system::object::IObject};
364}