1#[cfg(feature = "app-dynamicmesh-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/dynamicmesh/DynamicMesh_Mode.md"))]
15 #[repr(C)]
16 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17 pub struct DynamicMesh_Mode {
18 pub value: i32,
19 }
20 impl ::unity::ClassIdentity for DynamicMesh_Mode {
21 const NAME: &'static str = "DynamicMesh.Mode";
22 const NAMESPACE: &'static str = "App";
23
24 fn class() -> ::unity::Class {
25 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27 }
28 }
29 impl ::unity::IlType for DynamicMesh_Mode {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34 impl DynamicMesh_Mode {
35 pub fn none() -> Self {
36 Self { value: 0 }
37 }
38
39 pub fn triangle() -> Self {
40 Self { value: 1 }
41 }
42
43 pub fn quad() -> Self {
44 Self { value: 2 }
45 }
46
47 pub fn pyramid() -> Self {
48 Self { value: 3 }
49 }
50
51 pub fn fan() -> Self {
52 Self { value: 4 }
53 }
54
55 pub fn fan_ccw() -> Self {
56 Self { value: 5 }
57 }
58
59 pub fn strip() -> Self {
60 Self { value: 6 }
61 }
62
63 pub fn lines() -> Self {
64 Self { value: 7 }
65 }
66
67 pub fn cell() -> Self {
68 Self { value: 3 }
69 }
70 }
71
72 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/dynamicmesh/DynamicMesh_Scope.md"))]
73 #[repr(C)]
74 #[derive(::core::clone::Clone, ::core::marker::Copy)]
75 pub struct DynamicMesh_Scope {
76 pub m_mesh: crate::app::dynamicmesh::DynamicMesh,
77 }
78 impl ::unity::ClassIdentity for DynamicMesh_Scope {
79 const NAME: &'static str = "DynamicMesh.Scope";
80 const NAMESPACE: &'static str = "App";
81
82 fn class() -> ::unity::Class {
83 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
84 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
85 }
86 }
87 impl ::unity::IlType for DynamicMesh_Scope {
88 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
89 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
90 }
91 }
92
93 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/dynamicmesh/DynamicMesh_State.md"))]
94 #[repr(C)]
95 #[derive(::core::clone::Clone, ::core::marker::Copy)]
96 pub struct DynamicMesh_State {
97 pub mode: crate::app::dynamicmesh::DynamicMesh_Mode,
98 pub index: u16,
99 pub count: u16,
100 }
101 impl ::unity::ClassIdentity for DynamicMesh_State {
102 const NAME: &'static str = "DynamicMesh.State";
103 const NAMESPACE: &'static str = "App";
104
105 fn class() -> ::unity::Class {
106 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
107 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
108 }
109 }
110 impl ::unity::IlType for DynamicMesh_State {
111 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
112 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
113 }
114 }
115
116 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/dynamicmesh/DynamicMesh.md"))]
117 #[::unity::class(namespace = "App", name = "DynamicMesh")]
118 #[parent(crate::system::object::Object)]
119 pub struct DynamicMesh {
120 #[static_field]
121 #[rename(name = "STACK_COUNT")]
122 pub stack_count: i32,
123 #[static_field]
124 #[rename(name = "BOUNDS")]
125 pub bounds: crate::unity_engine::bounds::Bounds,
126 #[offset(16)]
127 #[rename(name = "m_Mesh")]
128 pub m_mesh: crate::unity_engine::mesh::Mesh,
129 #[offset(24)]
130 #[rename(name = "m_Positions")]
131 pub m_positions: crate::app::rawstructlist_1::RawStructList_1<crate::unity_engine::vector3::Vector3>,
132 #[offset(32)]
133 #[rename(name = "m_Normals")]
134 pub m_normals: crate::app::rawstructlist_1::RawStructList_1<crate::unity_engine::vector3::Vector3>,
135 #[offset(40)]
136 #[rename(name = "m_Tangents")]
137 pub m_tangents: crate::app::rawstructlist_1::RawStructList_1<crate::unity_engine::vector4::Vector4>,
138 #[offset(48)]
139 #[rename(name = "m_Colors")]
140 pub m_colors: crate::app::rawstructlist_1::RawStructList_1<crate::unity_engine::color::Color>,
141 #[offset(56)]
142 #[rename(name = "m_UV0")]
143 pub m_uv0: crate::app::rawstructlist_1::RawStructList_1<crate::unity_engine::vector2::Vector2>,
144 #[offset(64)]
145 #[rename(name = "m_UV1")]
146 pub m_uv1: crate::app::rawstructlist_1::RawStructList_1<crate::unity_engine::vector2::Vector2>,
147 #[offset(72)]
148 #[rename(name = "m_UVs")]
149 pub m_u_vs: ::unity::Array<crate::app::rawstructlist_1::RawStructList_1<crate::unity_engine::vector2::Vector2>>,
150 #[offset(80)]
151 #[rename(name = "m_Stack")]
152 pub m_stack: crate::system::collections::generic::stack_1::Stack_1<crate::app::dynamicmesh::DynamicMesh_State>,
153 #[offset(88)]
154 #[rename(name = "m_States")]
155 pub m_states: ::unity::Array<crate::app::dynamicmesh::DynamicMesh_State>,
156 #[offset(96)]
157 #[rename(name = "m_StripIndex")]
158 pub m_strip_index: i32,
159 }
160
161 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/dynamicmesh/DynamicMesh_StaticIndices.md"))]
162 #[::unity::class(namespace = "App", name = "DynamicMesh.StaticIndices")]
163 #[parent(crate::system::object::Object)]
164 pub struct DynamicMesh_StaticIndices {
165 #[static_field]
166 #[rename(name = "s_Indices")]
167 pub s_indices: ::unity::Array<::unity::Array<u16>>,
168 }
169}
170
171#[cfg(feature = "app-dynamicmesh-types")]
172pub use __types::*;
173
174#[cfg(feature = "app-dynamicmesh")]
175impl DynamicMesh_Scope {
176 #[doc = "`.ctor(crate::app::dynamicmesh::DynamicMesh, crate::app::dynamicmesh::DynamicMesh_Mode, i32)` overload"]
177 pub fn ctor(
178 &mut self,
179 mesh: impl ::core::convert::Into<crate::app::dynamicmesh::DynamicMesh>,
180 mode: impl ::core::convert::Into<crate::app::dynamicmesh::DynamicMesh_Mode>,
181 sub_mesh_index: impl ::core::convert::Into<i32>,
182 ) -> () {
183 unsafe {
184 ::unity::il2cpp_call!((::unity::module_base()+0x1bd5b90usize)as*mut u8,();
185(*mut DynamicMesh_Scope)self as*mut DynamicMesh_Scope,(crate::app::dynamicmesh::DynamicMesh)::core::convert::Into::into(mesh),(crate::app::dynamicmesh::DynamicMesh_Mode)::core::convert::Into::into(mode),(i32)::core::convert::Into::into(sub_mesh_index))
186 }
187 }
188
189 #[doc = "`Dispose()` overload"]
190 pub fn dispose(&mut self) -> () {
191 unsafe {
192 ::unity::il2cpp_call!((::unity::module_base()+0x1bd5bf0usize)as*mut u8,();
193(*mut DynamicMesh_Scope)self as*mut DynamicMesh_Scope)
194 }
195 }
196}
197
198#[cfg(feature = "app-dynamicmesh")]
199impl DynamicMesh_Scope {
200 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
202 }
203
204 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
206 }
207}
208
209#[cfg(feature = "app-dynamicmesh")]
210impl DynamicMesh_State {
211 #[doc = "`CanConnect(crate::app::dynamicmesh::DynamicMesh_State)` overload"]
212 pub fn can_connect(&mut self, state: impl ::core::convert::Into<crate::app::dynamicmesh::DynamicMesh_State>) -> bool {
213 unsafe {
214 ::unity::il2cpp_call!((::unity::module_base()+0x1bd5c30usize)as*mut u8,bool;
215(*mut DynamicMesh_State)self as*mut DynamicMesh_State,(crate::app::dynamicmesh::DynamicMesh_State)::core::convert::Into::into(state))
216 }
217 }
218
219 #[doc = "`Connect(crate::app::dynamicmesh::DynamicMesh_State)` overload"]
220 pub fn connect(&mut self, state: impl ::core::convert::Into<crate::app::dynamicmesh::DynamicMesh_State>) -> () {
221 unsafe {
222 ::unity::il2cpp_call!((::unity::module_base()+0x1bd5c60usize)as*mut u8,();
223(*mut DynamicMesh_State)self as*mut DynamicMesh_State,(crate::app::dynamicmesh::DynamicMesh_State)::core::convert::Into::into(state))
224 }
225 }
226
227 #[doc = "`Clear()` overload"]
228 pub fn clear(&mut self) -> () {
229 unsafe {
230 ::unity::il2cpp_call!((::unity::module_base()+0x1bd5c80usize)as*mut u8,();
231(*mut DynamicMesh_State)self as*mut DynamicMesh_State)
232 }
233 }
234}
235
236#[cfg(feature = "app-dynamicmesh")]
237impl DynamicMesh_State {
238 pub fn can_connect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
240 }
241
242 pub fn connect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
244 }
245
246 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
248 }
249}
250
251#[cfg(feature = "app-dynamicmesh")]
252impl DynamicMesh {
253 #[doc = "`.cctor()` overload"]
254 pub fn cctor() -> () {
255 unsafe {
256 ::unity::il2cpp_call!((::unity::module_base()+0x22d4b10usize)as*mut u8,();
257 )
258 }
259 }
260}
261
262#[cfg(feature = "app-dynamicmesh")]
263pub trait IDynamicMeshMethods: IDynamicMesh {
264 #[doc = "`.ctor(i32)` overload"]
265 fn ctor(self, vertex_capacity: impl ::core::convert::Into<i32>) -> () {
266 unsafe {
267 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
268 ::unity::il2cpp_call!((::unity::module_base()+0x22d3240usize)as*mut u8,();
269(DynamicMesh)__receiver,(i32)::core::convert::Into::into(vertex_capacity))
270 }
271 }
272 #[doc = "`.ctor(i32, i32)` overload"]
273 fn ctor_2(self, sub_mesh_count: impl ::core::convert::Into<i32>, vertex_capacity: impl ::core::convert::Into<i32>) -> () {
274 unsafe {
275 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
276 ::unity::il2cpp_call!((::unity::module_base()+0x22d36f0usize)as*mut u8,();
277(DynamicMesh)__receiver,(i32)::core::convert::Into::into(sub_mesh_count),(i32)::core::convert::Into::into(vertex_capacity))
278 }
279 }
280 #[doc = "`.ctor(crate::unity_engine::gameobject::GameObject, i32, i32)` overload"]
281 fn ctor_3(
282 self,
283 go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
284 sub_mesh_count: impl ::core::convert::Into<i32>,
285 vertex_capacity: impl ::core::convert::Into<i32>,
286 ) -> () {
287 unsafe {
288 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
289 ::unity::il2cpp_call!((::unity::module_base()+0x22d3740usize)as*mut u8,();
290(DynamicMesh)__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))
291 }
292 }
293 #[doc = "`Finalize()` overload"]
294 fn finalize(self) -> () {
295 unsafe {
296 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
297 {
298 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
299 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
300 panic!(
301 "unity: virtual slot {}
302 out of range (vtable len {}
303) on the runtime class behind {}
304 (method `{}
305`)",
306 1usize,
307 __vt.len(),
308 <DynamicMesh as ::unity::ClassIdentity>::NAME,
309 "Finalize",
310 )
311 });
312 let __inner: extern "C" fn(DynamicMesh, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
313 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
314 __inner(__receiver, __mi)
315 }
316 }
317 }
318 #[doc = "`Setup(crate::unity_engine::gameobject::GameObject, i32, i32)` overload"]
319 fn setup(
320 self,
321 go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
322 sub_mesh_count: impl ::core::convert::Into<i32>,
323 vertex_capacity: impl ::core::convert::Into<i32>,
324 ) -> () {
325 unsafe {
326 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
327 ::unity::il2cpp_call!((::unity::module_base()+0x22d3280usize)as*mut u8,();
328(DynamicMesh)__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))
329 }
330 }
331 #[doc = "`Dispose()` overload"]
332 fn dispose(self) -> () {
333 unsafe {
334 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
335 {
336 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
337 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
338 panic!(
339 "unity: virtual slot {}
340 out of range (vtable len {}
341) on the runtime class behind {}
342 (method `{}
343`)",
344 4usize,
345 __vt.len(),
346 <DynamicMesh as ::unity::ClassIdentity>::NAME,
347 "Dispose",
348 )
349 });
350 let __inner: extern "C" fn(DynamicMesh, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
351 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
352 __inner(__receiver, __mi)
353 }
354 }
355 }
356 #[doc = "`get_Mesh()` overload"]
357 fn get_mesh(self) -> crate::unity_engine::mesh::Mesh {
358 unsafe {
359 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
360 ::unity::il2cpp_call!((::unity::module_base()+0x22d3a00usize)as*mut u8,crate::unity_engine::mesh::Mesh;
361(DynamicMesh)__receiver)
362 }
363 }
364 #[doc = "`AddPosition(*mutcrate::unity_engine::vector3::Vector3)` overload"]
365 fn add_position(self) -> crate::unity_engine::vector3::Vector3 {
366 unsafe {
367 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
368 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector3::Vector3>::uninit();
369 ::unity::il2cpp_call!((::unity::module_base()+0x22d3a10usize)as*mut u8,();
370(DynamicMesh)__receiver,(*mut crate::unity_engine::vector3::Vector3)__out_0.as_mut_ptr());
371 __out_0.assume_init()
372 }
373 }
374 #[doc = "`AddNormal(*mutcrate::unity_engine::vector3::Vector3)` overload"]
375 fn add_normal(self) -> crate::unity_engine::vector3::Vector3 {
376 unsafe {
377 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
378 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector3::Vector3>::uninit();
379 ::unity::il2cpp_call!((::unity::module_base()+0x22d3aa0usize)as*mut u8,();
380(DynamicMesh)__receiver,(*mut crate::unity_engine::vector3::Vector3)__out_0.as_mut_ptr());
381 __out_0.assume_init()
382 }
383 }
384 #[doc = "`AddTangents(*mutcrate::unity_engine::vector4::Vector4)` overload"]
385 fn add_tangents(self) -> crate::unity_engine::vector4::Vector4 {
386 unsafe {
387 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
388 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector4::Vector4>::uninit();
389 ::unity::il2cpp_call!((::unity::module_base()+0x22d3b30usize)as*mut u8,();
390(DynamicMesh)__receiver,(*mut crate::unity_engine::vector4::Vector4)__out_0.as_mut_ptr());
391 __out_0.assume_init()
392 }
393 }
394 #[doc = "`AddColor(*mutcrate::unity_engine::color::Color)` overload"]
395 fn add_color(self) -> crate::unity_engine::color::Color {
396 unsafe {
397 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
398 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::color::Color>::uninit();
399 ::unity::il2cpp_call!((::unity::module_base()+0x22d3bc0usize)as*mut u8,();
400(DynamicMesh)__receiver,(*mut crate::unity_engine::color::Color)__out_0.as_mut_ptr());
401 __out_0.assume_init()
402 }
403 }
404 #[doc = "`AddUV(*mutcrate::unity_engine::vector2::Vector2)` overload"]
405 fn add_uv(self) -> crate::unity_engine::vector2::Vector2 {
406 unsafe {
407 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
408 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector2::Vector2>::uninit();
409 ::unity::il2cpp_call!((::unity::module_base()+0x22d3c50usize)as*mut u8,();
410(DynamicMesh)__receiver,(*mut crate::unity_engine::vector2::Vector2)__out_0.as_mut_ptr());
411 __out_0.assume_init()
412 }
413 }
414 #[doc = "`AddUV(i32, *mutcrate::unity_engine::vector2::Vector2)` overload"]
415 fn add_uv_2(self, ch: impl ::core::convert::Into<i32>) -> crate::unity_engine::vector2::Vector2 {
416 unsafe {
417 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
418 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector2::Vector2>::uninit();
419 ::unity::il2cpp_call!((::unity::module_base()+0x22d3cd0usize)as*mut u8,();
420(DynamicMesh)__receiver,(i32)::core::convert::Into::into(ch),(*mut crate::unity_engine::vector2::Vector2)__out_0.as_mut_ptr());
421 __out_0.assume_init()
422 }
423 }
424 #[doc = "`AddVertex(*mutcrate::unity_engine::vector3::Vector3, *mutcrate::unity_engine::color::Color)` overload"]
425 fn add_vertex(self) -> (crate::unity_engine::vector3::Vector3, crate::unity_engine::color::Color) {
426 unsafe {
427 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
428 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector3::Vector3>::uninit();
429 let mut __out_1 = ::core::mem::MaybeUninit::<crate::unity_engine::color::Color>::uninit();
430 ::unity::il2cpp_call!((::unity::module_base()+0x22d3d70usize)as*mut u8,();
431(DynamicMesh)__receiver,(*mut crate::unity_engine::vector3::Vector3)__out_0.as_mut_ptr(),(*mut crate::unity_engine::color::Color)__out_1.as_mut_ptr());
432 (__out_0.assume_init(), __out_1.assume_init())
433 }
434 }
435 #[doc = "`AddVertex(*mutcrate::unity_engine::vector3::Vector3, *mutcrate::unity_engine::color::Color, *mutcrate::unity_engine::vector2::Vector2)` overload"]
436 fn add_vertex_2(
437 self,
438 ) -> (
439 crate::unity_engine::vector3::Vector3,
440 crate::unity_engine::color::Color,
441 crate::unity_engine::vector2::Vector2,
442 ) {
443 unsafe {
444 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
445 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector3::Vector3>::uninit();
446 let mut __out_1 = ::core::mem::MaybeUninit::<crate::unity_engine::color::Color>::uninit();
447 let mut __out_2 = ::core::mem::MaybeUninit::<crate::unity_engine::vector2::Vector2>::uninit();
448 ::unity::il2cpp_call!((::unity::module_base()+0x22d3e40usize)as*mut u8,();
449(DynamicMesh)__receiver,(*mut crate::unity_engine::vector3::Vector3)__out_0.as_mut_ptr(),(*mut crate::unity_engine::color::Color)__out_1.as_mut_ptr(),(*mut crate::unity_engine::vector2::Vector2)__out_2.as_mut_ptr());
450 (__out_0.assume_init(), __out_1.assume_init(), __out_2.assume_init())
451 }
452 }
453 #[doc = "`AddVertex(*mutcrate::unity_engine::vector3::Vector3, *mutcrate::unity_engine::vector2::Vector2)` overload"]
454 fn add_vertex_3(self) -> (crate::unity_engine::vector3::Vector3, crate::unity_engine::vector2::Vector2) {
455 unsafe {
456 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
457 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector3::Vector3>::uninit();
458 let mut __out_1 = ::core::mem::MaybeUninit::<crate::unity_engine::vector2::Vector2>::uninit();
459 ::unity::il2cpp_call!((::unity::module_base()+0x22d3f60usize)as*mut u8,();
460(DynamicMesh)__receiver,(*mut crate::unity_engine::vector3::Vector3)__out_0.as_mut_ptr(),(*mut crate::unity_engine::vector2::Vector2)__out_1.as_mut_ptr());
461 (__out_0.assume_init(), __out_1.assume_init())
462 }
463 }
464 #[doc = "`StripBegin()` overload"]
465 fn strip_begin(self) -> () {
466 unsafe {
467 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
468 ::unity::il2cpp_call!((::unity::module_base()+0x22d4030usize)as*mut u8,();
469(DynamicMesh)__receiver)
470 }
471 }
472 #[doc = "`StripEnd()` overload"]
473 fn strip_end(self) -> () {
474 unsafe {
475 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
476 ::unity::il2cpp_call!((::unity::module_base()+0x22d43e0usize)as*mut u8,();
477(DynamicMesh)__receiver)
478 }
479 }
480 #[doc = "`Clear()` overload"]
481 fn clear(self) -> () {
482 unsafe {
483 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
484 ::unity::il2cpp_call!((::unity::module_base()+0x22d38e0usize)as*mut u8,();
485(DynamicMesh)__receiver)
486 }
487 }
488 #[doc = "`CreateScope(crate::app::dynamicmesh::DynamicMesh_Mode, i32)` overload"]
489 fn create_scope(
490 self,
491 mode: impl ::core::convert::Into<crate::app::dynamicmesh::DynamicMesh_Mode>,
492 sub_mesh_index: impl ::core::convert::Into<i32>,
493 ) -> crate::app::dynamicmesh::DynamicMesh_Scope {
494 unsafe {
495 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
496 ::unity::il2cpp_call!((::unity::module_base()+0x22d44a0usize)as*mut u8,crate::app::dynamicmesh::DynamicMesh_Scope;
497(DynamicMesh)__receiver,(crate::app::dynamicmesh::DynamicMesh_Mode)::core::convert::Into::into(mode),(i32)::core::convert::Into::into(sub_mesh_index))
498 }
499 }
500 #[doc = "`Begin(crate::app::dynamicmesh::DynamicMesh_Mode, i32)` overload"]
501 fn begin(
502 self,
503 mode: impl ::core::convert::Into<crate::app::dynamicmesh::DynamicMesh_Mode>,
504 sub_mesh_index: impl ::core::convert::Into<i32>,
505 ) -> () {
506 unsafe {
507 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
508 ::unity::il2cpp_call!((::unity::module_base()+0x22d44e0usize)as*mut u8,();
509(DynamicMesh)__receiver,(crate::app::dynamicmesh::DynamicMesh_Mode)::core::convert::Into::into(mode),(i32)::core::convert::Into::into(sub_mesh_index))
510 }
511 }
512 #[doc = "`End()` overload"]
513 fn end(self) -> () {
514 unsafe {
515 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
516 ::unity::il2cpp_call!((::unity::module_base()+0x22d4570usize)as*mut u8,();
517(DynamicMesh)__receiver)
518 }
519 }
520 #[doc = "`GetCommonMode()` overload"]
521 fn get_common_mode(self) -> crate::app::dynamicmesh::DynamicMesh_Mode {
522 unsafe {
523 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
524 ::unity::il2cpp_call!((::unity::module_base()+0x22d4a50usize)as*mut u8,crate::app::dynamicmesh::DynamicMesh_Mode;
525(DynamicMesh)__receiver)
526 }
527 }
528 #[doc = "`Commit()` overload"]
529 fn commit(self) -> () {
530 unsafe {
531 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
532 ::unity::il2cpp_call!((::unity::module_base()+0x22d4680usize)as*mut u8,();
533(DynamicMesh)__receiver)
534 }
535 }
536 #[doc = "`CopySubMesh(i32, i32)` overload"]
537 fn copy_sub_mesh(self, src_mesh_index: impl ::core::convert::Into<i32>, dst_mesh_index: impl ::core::convert::Into<i32>) -> () {
538 unsafe {
539 let __receiver = <DynamicMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
540 ::unity::il2cpp_call!((::unity::module_base()+0x22d4ad0usize)as*mut u8,();
541(DynamicMesh)__receiver,(i32)::core::convert::Into::into(src_mesh_index),(i32)::core::convert::Into::into(dst_mesh_index))
542 }
543 }
544}
545
546#[cfg(feature = "app-dynamicmesh")]
547impl<__T: IDynamicMesh> IDynamicMeshMethods for __T {}
548
549#[cfg(feature = "app-dynamicmesh")]
550impl DynamicMesh {
551 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
552 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
553 }
554
555 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
556 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
557 }
558
559 pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
560 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
561 }
562
563 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
564 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
565 }
566
567 pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
568 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
569 }
570
571 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
572 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
573 }
574
575 pub fn get_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
576 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
577 }
578
579 pub fn add_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
580 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
581 }
582
583 pub fn add_normal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
584 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
585 }
586
587 pub fn add_tangents_method_info() -> &'static ::unity::il2cpp::MethodInfo {
588 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
589 }
590
591 pub fn add_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
592 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
593 }
594
595 pub fn add_uv_method_info() -> &'static ::unity::il2cpp::MethodInfo {
596 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
597 }
598
599 pub fn add_uv_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
600 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
601 }
602
603 pub fn add_vertex_method_info() -> &'static ::unity::il2cpp::MethodInfo {
604 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
605 }
606
607 pub fn add_vertex_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
608 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
609 }
610
611 pub fn add_vertex_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
612 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
613 }
614
615 pub fn strip_begin_method_info() -> &'static ::unity::il2cpp::MethodInfo {
616 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
617 }
618
619 pub fn strip_end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
620 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
621 }
622
623 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
624 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
625 }
626
627 pub fn create_scope_method_info() -> &'static ::unity::il2cpp::MethodInfo {
628 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
629 }
630
631 pub fn begin_method_info() -> &'static ::unity::il2cpp::MethodInfo {
632 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
633 }
634
635 pub fn end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
636 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
637 }
638
639 pub fn get_common_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
640 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
641 }
642
643 pub fn commit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
644 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
645 }
646
647 pub fn copy_sub_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
648 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
649 }
650
651 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
652 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
653 }
654}
655
656#[cfg(feature = "app-dynamicmesh")]
657impl DynamicMesh {
658 #[doc = "Direct (non-virtual) call to `DynamicMesh`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
659 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
660 let __mi = Self::finalize_method_info();
661 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
662 __inner(this.into(), ::core::option::Option::None)
663 }
664
665 #[doc = "Direct (non-virtual) call to `DynamicMesh`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
666 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
667 let __mi = Self::dispose_method_info();
668 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
669 __inner(this.into(), ::core::option::Option::None)
670 }
671}
672
673#[cfg(feature = "app-dynamicmesh")]
674impl DynamicMesh {
675 #[doc = "`.ctor(i32)` — overload selector"]
676 pub fn new(vertex_capacity: i32) -> Self {
677 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
678 panic!(
679 "{}
680::{}
681 failed to instantiate",
682 ::core::stringify!(DynamicMesh),
683 ::core::stringify!(new),
684 )
685 });
686 <Self as IDynamicMeshMethods>::ctor(this, vertex_capacity);
687 this
688 }
689
690 #[doc = "`.ctor(i32, i32)` — overload selector"]
691 pub fn new_2(sub_mesh_count: i32, vertex_capacity: i32) -> Self {
692 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
693 panic!(
694 "{}
695::{}
696 failed to instantiate",
697 ::core::stringify!(DynamicMesh),
698 ::core::stringify!(new_2),
699 )
700 });
701 <Self as IDynamicMeshMethods>::ctor_2(this, sub_mesh_count, vertex_capacity);
702 this
703 }
704
705 #[doc = "`.ctor(crate::unity_engine::gameobject::GameObject, i32, i32)` — overload selector"]
706 pub fn new_3(go: crate::unity_engine::gameobject::GameObject, sub_mesh_count: i32, vertex_capacity: i32) -> Self {
707 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
708 panic!(
709 "{}
710::{}
711 failed to instantiate",
712 ::core::stringify!(DynamicMesh),
713 ::core::stringify!(new_3),
714 )
715 });
716 <Self as IDynamicMeshMethods>::ctor_3(this, go, sub_mesh_count, vertex_capacity);
717 this
718 }
719}
720
721#[cfg(feature = "app-dynamicmesh")]
722impl DynamicMesh_StaticIndices {
723 #[doc = "`.cctor()` overload"]
724 pub fn cctor() -> () {
725 unsafe {
726 ::unity::il2cpp_call!((::unity::module_base()+0x1bd5c90usize)as*mut u8,();
727 )
728 }
729 }
730
731 #[doc = "`GetIndices(crate::app::dynamicmesh::DynamicMesh_Mode)` overload"]
732 pub fn get_indices(mode: impl ::core::convert::Into<crate::app::dynamicmesh::DynamicMesh_Mode>) -> ::unity::Array<u16> {
733 unsafe {
734 ::unity::il2cpp_call!((::unity::module_base()+0x1bd6430usize)as*mut u8, ::unity::Array<u16> ;
735(crate::app::dynamicmesh::DynamicMesh_Mode)::core::convert::Into::into(mode))
736 }
737 }
738
739 #[doc = "`GetTriangleCount(crate::app::dynamicmesh::DynamicMesh_Mode, i32)` overload"]
740 pub fn get_triangle_count(
741 mode: impl ::core::convert::Into<crate::app::dynamicmesh::DynamicMesh_Mode>,
742 vertex_count: impl ::core::convert::Into<i32>,
743 ) -> i32 {
744 unsafe {
745 ::unity::il2cpp_call!((::unity::module_base()+0x1bd64c0usize)as*mut u8,i32;
746(crate::app::dynamicmesh::DynamicMesh_Mode)::core::convert::Into::into(mode),(i32)::core::convert::Into::into(vertex_count))
747 }
748 }
749}
750
751#[cfg(feature = "app-dynamicmesh")]
752pub trait IDynamicMesh_StaticIndicesMethods: IDynamicMesh_StaticIndices {
753 #[doc = "`.ctor()` overload"]
754 fn ctor(self) -> () {
755 unsafe {
756 let __receiver =
757 <DynamicMesh_StaticIndices as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
758 ::unity::il2cpp_call!((::unity::module_base()+0x1bd6540usize)as*mut u8,();
759(DynamicMesh_StaticIndices)__receiver)
760 }
761 }
762}
763
764#[cfg(feature = "app-dynamicmesh")]
765impl<__T: IDynamicMesh_StaticIndices> IDynamicMesh_StaticIndicesMethods for __T {}
766
767#[cfg(feature = "app-dynamicmesh")]
768impl DynamicMesh_StaticIndices {
769 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
770 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
771 }
772
773 pub fn get_indices_method_info() -> &'static ::unity::il2cpp::MethodInfo {
774 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
775 }
776
777 pub fn get_triangle_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
778 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
779 }
780
781 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
782 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
783 }
784}
785
786#[cfg(feature = "app-dynamicmesh")]
787impl DynamicMesh_StaticIndices {
788 #[doc = "`.ctor()` — no args"]
789 pub fn new() -> Self {
790 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
791 panic!(
792 "{}
793::{}
794 failed to instantiate",
795 ::core::stringify!(DynamicMesh_StaticIndices),
796 ::core::stringify!(new),
797 )
798 });
799 <Self as IDynamicMesh_StaticIndicesMethods>::ctor(this);
800 this
801 }
802}
803
804#[cfg(feature = "app-dynamicmesh")]
805#[doc(hidden)]
806pub mod prelude {
807 pub use super::{
808 DynamicMesh, DynamicMesh_Mode, DynamicMesh_Scope, DynamicMesh_State, DynamicMesh_StaticIndices, IDynamicMesh, IDynamicMeshMethods,
809 IDynamicMesh_StaticIndices, IDynamicMesh_StaticIndicesMethods,
810 };
811 #[cfg(feature = "system-object")]
812 pub use crate::system::object::IObjectMethods;
813 #[cfg(feature = "system-enum")]
814 pub use crate::system::r#enum::IEnumMethods;
815 #[cfg(feature = "system-valuetype")]
816 pub use crate::system::valuetype::IValueTypeMethods;
817 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
818}