Skip to main content

engage/generated/combat/
bakedmesh.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-bakedmesh-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/combat/bakedmesh/BakedMesh.md"))]
19    #[::unity::class(namespace = "Combat", name = "BakedMesh")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct BakedMesh {
22        #[offset(24)]
23        #[rename(name = "_meshFilter")]
24        pub mesh_filter: crate::unity_engine::meshfilter::MeshFilter,
25        #[offset(32)]
26        #[rename(name = "_meshRenderer")]
27        pub mesh_renderer: crate::unity_engine::meshrenderer::MeshRenderer,
28        #[offset(40)]
29        #[rename(name = "twice")]
30        pub twice: bool,
31        #[offset(41)]
32        #[rename(name = "isSkinnedMesh")]
33        pub is_skinned_mesh: bool,
34    }
35}
36
37#[cfg(feature = "combat-bakedmesh-types")]
38pub use __types::*;
39
40#[cfg(feature = "combat-bakedmesh")]
41impl BakedMesh {
42    #[doc = "`Create(crate::unity_engine::transform::Transform)` overload"]
43    pub fn create(parent: impl ::core::convert::Into<crate::unity_engine::transform::Transform>) -> crate::combat::bakedmesh::BakedMesh {
44        unsafe {
45            ::unity::il2cpp_call!((::unity::module_base()+0x2123050usize)as*mut u8,crate::combat::bakedmesh::BakedMesh;
46(crate::unity_engine::transform::Transform)::core::convert::Into::into(parent))
47        }
48    }
49}
50
51#[cfg(feature = "combat-bakedmesh")]
52pub trait IBakedMeshMethods: IBakedMesh {
53    #[doc = "`get_meshFilter()` overload"]
54    fn get_mesh_filter(self) -> crate::unity_engine::meshfilter::MeshFilter {
55        unsafe {
56            let __receiver = <BakedMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57            ::unity::il2cpp_call!((::unity::module_base()+0x2123130usize)as*mut u8,crate::unity_engine::meshfilter::MeshFilter;
58(BakedMesh)__receiver)
59        }
60    }
61    #[doc = "`get_meshRenderer()` overload"]
62    fn get_mesh_renderer(self) -> crate::unity_engine::meshrenderer::MeshRenderer {
63        unsafe {
64            let __receiver = <BakedMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65            ::unity::il2cpp_call!((::unity::module_base()+0x21231f0usize)as*mut u8,crate::unity_engine::meshrenderer::MeshRenderer;
66(BakedMesh)__receiver)
67        }
68    }
69    #[doc = "`OnDestroy()` overload"]
70    fn on_destroy(self) -> () {
71        unsafe {
72            let __receiver = <BakedMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73            ::unity::il2cpp_call!((::unity::module_base()+0x21232b0usize)as*mut u8,();
74(BakedMesh)__receiver)
75        }
76    }
77    #[doc = "`BakeFrom(crate::unity_engine::skinnedmeshrenderer::SkinnedMeshRenderer, bool)` overload"]
78    fn bake_from(
79        self,
80        skmesh: impl ::core::convert::Into<crate::unity_engine::skinnedmeshrenderer::SkinnedMeshRenderer>,
81        omit2nd: impl ::core::convert::Into<bool>,
82    ) -> () {
83        unsafe {
84            let __receiver = <BakedMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85            ::unity::il2cpp_call!((::unity::module_base()+0x2123340usize)as*mut u8,();
86(BakedMesh)__receiver,(crate::unity_engine::skinnedmeshrenderer::SkinnedMeshRenderer)::core::convert::Into::into(skmesh),(bool)::core::convert::Into::into(omit2nd))
87        }
88    }
89    #[doc = "`BakeFrom(crate::unity_engine::meshfilter::MeshFilter, crate::unity_engine::meshrenderer::MeshRenderer)` overload"]
90    fn bake_from_2(
91        self,
92        filter: impl ::core::convert::Into<crate::unity_engine::meshfilter::MeshFilter>,
93        renderer: impl ::core::convert::Into<crate::unity_engine::meshrenderer::MeshRenderer>,
94    ) -> () {
95        unsafe {
96            let __receiver = <BakedMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97            ::unity::il2cpp_call!((::unity::module_base()+0x21234f0usize)as*mut u8,();
98(BakedMesh)__receiver,(crate::unity_engine::meshfilter::MeshFilter)::core::convert::Into::into(filter),(crate::unity_engine::meshrenderer::MeshRenderer)::core::convert::Into::into(renderer))
99        }
100    }
101    #[doc = "`.ctor()` overload"]
102    fn ctor(self) -> () {
103        unsafe {
104            let __receiver = <BakedMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105            ::unity::il2cpp_call!((::unity::module_base()+0x2123610usize)as*mut u8,();
106(BakedMesh)__receiver)
107        }
108    }
109}
110
111#[cfg(feature = "combat-bakedmesh")]
112impl<__T: IBakedMesh> IBakedMeshMethods for __T {}
113
114#[cfg(feature = "combat-bakedmesh")]
115impl BakedMesh {
116    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
117        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
118    }
119
120    pub fn get_mesh_filter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
121        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
122    }
123
124    pub fn get_mesh_renderer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
125        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
126    }
127
128    pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
129        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
130    }
131
132    pub fn bake_from_method_info() -> &'static ::unity::il2cpp::MethodInfo {
133        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
134    }
135
136    pub fn bake_from_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
138    }
139
140    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
141        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
142    }
143}
144
145#[cfg(feature = "combat-bakedmesh")]
146impl BakedMesh {
147    #[doc = "`.ctor()` — no args"]
148    pub fn new() -> Self {
149        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
150            panic!(
151                "{}
152::{}
153 failed to instantiate",
154                ::core::stringify!(BakedMesh),
155                ::core::stringify!(new),
156            )
157        });
158        <Self as IBakedMeshMethods>::ctor(this);
159        this
160    }
161}
162
163#[cfg(feature = "combat-bakedmesh")]
164#[doc(hidden)]
165pub mod prelude {
166    pub use super::{BakedMesh, IBakedMesh, IBakedMeshMethods};
167    #[cfg(feature = "system-object")]
168    pub use crate::system::object::IObjectMethods;
169    #[cfg(feature = "unity_engine-behaviour")]
170    pub use crate::unity_engine::behaviour::IBehaviourMethods;
171    #[cfg(feature = "unity_engine-component")]
172    pub use crate::unity_engine::component::IComponentMethods;
173    #[cfg(feature = "unity_engine-monobehaviour")]
174    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
175    #[cfg(feature = "unity_engine-object_2")]
176    pub use crate::unity_engine::object_2::IObject_2Methods;
177    pub use crate::{
178        system::object::IObject,
179        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
180    };
181}