engage/generated/root/
meshdeliver.rs1#[cfg(feature = "root-meshdeliver-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/root/meshdeliver/MeshDeliver.md"))]
19 #[::unity::class(namespace = "", name = "MeshDeliver")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct MeshDeliver {
22 #[offset(24)]
23 #[rename(name = "m_SMRs")]
24 pub m_sm_rs: ::unity::Array<crate::unity_engine::skinnedmeshrenderer::SkinnedMeshRenderer>,
25 #[offset(32)]
26 #[rename(name = "m_Material")]
27 pub m_material: crate::unity_engine::material::Material,
28 #[offset(40)]
29 #[rename(name = "m_mf")]
30 pub m_mf: crate::unity_engine::meshfilter::MeshFilter,
31 #[offset(48)]
32 #[rename(name = "m_Meshes")]
33 pub m_meshes: ::unity::Array<crate::unity_engine::mesh::Mesh>,
34 #[offset(56)]
35 #[rename(name = "m_MaterialsBB")]
36 pub m_materials_bb: ::unity::Array<crate::unity_engine::material::Material>,
37 }
38}
39
40#[cfg(feature = "root-meshdeliver-types")]
41pub use __types::*;
42
43#[cfg(feature = "root-meshdeliver")]
44pub trait IMeshDeliverMethods: IMeshDeliver {
45 #[doc = "`Start()` overload"]
46 fn start(self) -> () {
47 unsafe {
48 let __receiver = <MeshDeliver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49 ::unity::il2cpp_call!((::unity::module_base()+0x25d1ed0usize)as*mut u8,();
50(MeshDeliver)__receiver)
51 }
52 }
53 #[doc = "`Update()` overload"]
54 fn update(self) -> () {
55 unsafe {
56 let __receiver = <MeshDeliver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 ::unity::il2cpp_call!((::unity::module_base()+0x25d2240usize)as*mut u8,();
58(MeshDeliver)__receiver)
59 }
60 }
61 #[doc = "`SetAllMesh(crate::unity_engine::gameobject::GameObject)` overload"]
62 fn set_all_mesh(self, obj: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
63 unsafe {
64 let __receiver = <MeshDeliver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65 ::unity::il2cpp_call!((::unity::module_base()+0x25d2010usize)as*mut u8,();
66(MeshDeliver)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(obj))
67 }
68 }
69 #[doc = "`.ctor()` overload"]
70 fn ctor(self) -> () {
71 unsafe {
72 let __receiver = <MeshDeliver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73 ::unity::il2cpp_call!((::unity::module_base()+0x25d2410usize)as*mut u8,();
74(MeshDeliver)__receiver)
75 }
76 }
77}
78
79#[cfg(feature = "root-meshdeliver")]
80impl<__T: IMeshDeliver> IMeshDeliverMethods for __T {}
81
82#[cfg(feature = "root-meshdeliver")]
83impl MeshDeliver {
84 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
85 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
86 }
87
88 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
89 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
90 }
91
92 pub fn set_all_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
93 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
94 }
95
96 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
97 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
98 }
99}
100
101#[cfg(feature = "root-meshdeliver")]
102impl MeshDeliver {
103 #[doc = "`.ctor()` — no args"]
104 pub fn new() -> Self {
105 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
106 panic!(
107 "{}
108::{}
109 failed to instantiate",
110 ::core::stringify!(MeshDeliver),
111 ::core::stringify!(new),
112 )
113 });
114 <Self as IMeshDeliverMethods>::ctor(this);
115 this
116 }
117}
118
119#[cfg(feature = "root-meshdeliver")]
120#[doc(hidden)]
121pub mod prelude {
122 pub use super::{IMeshDeliver, IMeshDeliverMethods, MeshDeliver};
123 #[cfg(feature = "system-object")]
124 pub use crate::system::object::IObjectMethods;
125 #[cfg(feature = "unity_engine-behaviour")]
126 pub use crate::unity_engine::behaviour::IBehaviourMethods;
127 #[cfg(feature = "unity_engine-component")]
128 pub use crate::unity_engine::component::IComponentMethods;
129 #[cfg(feature = "unity_engine-monobehaviour")]
130 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
131 #[cfg(feature = "unity_engine-object_2")]
132 pub use crate::unity_engine::object_2::IObject_2Methods;
133 pub use crate::{
134 system::object::IObject,
135 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
136 };
137}