engage/generated/app/
terrainmesh.rs1#[cfg(feature = "app-terrainmesh-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 dynamicmesh::{DynamicMesh, IDynamicMesh},
11 map::{IMap_CellMesh, Map_CellMesh},
12 },
13 system::object::{IObject, Object},
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/terrainmesh/TerrainMesh.md"))]
17 #[::unity::class(namespace = "App", name = "TerrainMesh")]
18 #[parent(crate::app::map::Map_CellMesh)]
19 pub struct TerrainMesh {
20 #[offset(112)]
21 #[rename(name = "m_Size")]
22 pub m_size: crate::unity_engine::vector2::Vector2,
23 }
24}
25
26#[cfg(feature = "app-terrainmesh-types")]
27pub use __types::*;
28
29#[cfg(feature = "app-terrainmesh")]
30pub trait ITerrainMeshMethods: ITerrainMesh {
31 #[doc = "`.ctor()` overload"]
32 fn ctor(self) -> () {
33 unsafe {
34 let __receiver = <TerrainMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35 ::unity::il2cpp_call!((::unity::module_base()+0x21e5680usize)as*mut u8,();
36(TerrainMesh)__receiver)
37 }
38 }
39 #[doc = "`AddMesh(i32, i32, crate::unity_engine::color::Color, crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2)` overload"]
40 fn add_mesh(
41 self,
42 x: impl ::core::convert::Into<i32>,
43 z: impl ::core::convert::Into<i32>,
44 color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
45 pos: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
46 size: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
47 ) -> () {
48 unsafe {
49 let __receiver = <TerrainMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50 ::unity::il2cpp_call!((::unity::module_base()+0x21e56c0usize)as*mut u8,();
51(TerrainMesh)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(crate::unity_engine::color::Color)::core::convert::Into::into(color),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(pos),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(size))
52 }
53 }
54 #[doc = "`GetPosition(i32)` overload"]
55 fn get_position(self, index: impl ::core::convert::Into<i32>) -> crate::unity_engine::vector2::Vector2 {
56 unsafe {
57 let __receiver = <TerrainMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
58 ::unity::il2cpp_call!((::unity::module_base()+0x21e5e60usize)as*mut u8,crate::unity_engine::vector2::Vector2;
59(TerrainMesh)__receiver,(i32)::core::convert::Into::into(index))
60 }
61 }
62 #[doc = "`Update(crate::app::mapterrain::MapTerrain, bool, bool)` overload"]
63 fn update(
64 self,
65 terrain: impl ::core::convert::Into<crate::app::mapterrain::MapTerrain>,
66 show_layer: impl ::core::convert::Into<bool>,
67 show_overlap: impl ::core::convert::Into<bool>,
68 ) -> () {
69 unsafe {
70 let __receiver = <TerrainMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71 ::unity::il2cpp_call!((::unity::module_base()+0x21e5ea0usize)as*mut u8,();
72(TerrainMesh)__receiver,(crate::app::mapterrain::MapTerrain)::core::convert::Into::into(terrain),(bool)::core::convert::Into::into(show_layer),(bool)::core::convert::Into::into(show_overlap))
73 }
74 }
75 #[doc = "`Update()` overload"]
76 fn update_2(self) -> () {
77 unsafe {
78 let __receiver = <TerrainMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79 ::unity::il2cpp_call!((::unity::module_base()+0x21e6b40usize)as*mut u8,();
80(TerrainMesh)__receiver)
81 }
82 }
83}
84
85#[cfg(feature = "app-terrainmesh")]
86impl<__T: ITerrainMesh> ITerrainMeshMethods for __T {}
87
88#[cfg(feature = "app-terrainmesh")]
89impl TerrainMesh {
90 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
91 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
92 }
93
94 pub fn add_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
95 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
96 }
97
98 pub fn get_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
100 }
101
102 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
104 }
105
106 pub fn update_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
108 }
109}
110
111#[cfg(feature = "app-terrainmesh")]
112impl TerrainMesh {
113 #[doc = "`.ctor()` — no args"]
114 pub fn new() -> Self {
115 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
116 panic!(
117 "{}
118::{}
119 failed to instantiate",
120 ::core::stringify!(TerrainMesh),
121 ::core::stringify!(new),
122 )
123 });
124 <Self as ITerrainMeshMethods>::ctor(this);
125 this
126 }
127}
128
129#[cfg(feature = "app-terrainmesh")]
130#[doc(hidden)]
131pub mod prelude {
132 pub use super::{ITerrainMesh, ITerrainMeshMethods, TerrainMesh};
133 #[cfg(feature = "app-dynamicmesh")]
134 pub use crate::app::dynamicmesh::IDynamicMeshMethods;
135 #[cfg(feature = "app-map")]
136 pub use crate::app::map::IMap_CellMeshMethods;
137 #[cfg(feature = "system-object")]
138 pub use crate::system::object::IObjectMethods;
139 pub use crate::{
140 app::{dynamicmesh::IDynamicMesh, map::IMap_CellMesh},
141 system::object::IObject,
142 };
143}