engage/generated/app/water/
meshcontainer.rs1#[cfg(feature = "app-water-meshcontainer-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/water/meshcontainer/MeshContainer.md"))]
11 #[::unity::class(namespace = "App.Water", name = "MeshContainer")]
12 #[parent(crate::system::object::Object)]
13 pub struct MeshContainer {
14 #[offset(16)]
15 #[rename(name = "mesh")]
16 pub mesh: crate::unity_engine::mesh::Mesh,
17 #[offset(24)]
18 #[rename(name = "vertices")]
19 pub vertices: ::unity::Array<crate::unity_engine::vector3::Vector3>,
20 #[offset(32)]
21 #[rename(name = "normals")]
22 pub normals: ::unity::Array<crate::unity_engine::vector3::Vector3>,
23 }
24}
25
26#[cfg(feature = "app-water-meshcontainer-types")]
27pub use __types::*;
28
29#[cfg(feature = "app-water-meshcontainer")]
30pub trait IMeshContainerMethods: IMeshContainer {
31 #[doc = "`.ctor(crate::unity_engine::mesh::Mesh)` overload"]
32 fn ctor(self, m: impl ::core::convert::Into<crate::unity_engine::mesh::Mesh>) -> () {
33 unsafe {
34 let __receiver = <MeshContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35 ::unity::il2cpp_call!((::unity::module_base()+0x25d1e20usize)as*mut u8,();
36(MeshContainer)__receiver,(crate::unity_engine::mesh::Mesh)::core::convert::Into::into(m))
37 }
38 }
39 #[doc = "`Update()` overload"]
40 fn update(self) -> () {
41 unsafe {
42 let __receiver = <MeshContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 ::unity::il2cpp_call!((::unity::module_base()+0x25d1e90usize)as*mut u8,();
44(MeshContainer)__receiver)
45 }
46 }
47}
48
49#[cfg(feature = "app-water-meshcontainer")]
50impl<__T: IMeshContainer> IMeshContainerMethods for __T {}
51
52#[cfg(feature = "app-water-meshcontainer")]
53impl MeshContainer {
54 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
55 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
56 }
57
58 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
59 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
60 }
61}
62
63#[cfg(feature = "app-water-meshcontainer")]
64impl MeshContainer {
65 #[doc = "`.ctor(crate::unity_engine::mesh::Mesh)` — overload selector"]
66 pub fn new(m: crate::unity_engine::mesh::Mesh) -> Self {
67 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
68 panic!(
69 "{}
70::{}
71 failed to instantiate",
72 ::core::stringify!(MeshContainer),
73 ::core::stringify!(new),
74 )
75 });
76 <Self as IMeshContainerMethods>::ctor(this, m);
77 this
78 }
79}
80
81#[cfg(feature = "app-water-meshcontainer")]
82#[doc(hidden)]
83pub mod prelude {
84 pub use super::{IMeshContainer, IMeshContainerMethods, MeshContainer};
85 pub use crate::system::object::IObject;
86 #[cfg(feature = "system-object")]
87 pub use crate::system::object::IObjectMethods;
88}