Skip to main content

engage/generated/app/
gridmesh.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-gridmesh-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/gridmesh/GridMesh.md"))]
17    #[::unity::class(namespace = "App", name = "GridMesh")]
18    #[parent(crate::app::map::Map_CellMesh)]
19    pub struct GridMesh {}
20}
21
22#[cfg(feature = "app-gridmesh-types")]
23pub use __types::*;
24
25#[cfg(feature = "app-gridmesh")]
26pub trait IGridMeshMethods: IGridMesh {
27    #[doc = "`DrawGrid(crate::app::mapheight::MapHeight_CellMap, i32, i32, crate::unity_engine::color::Color)` overload"]
28    fn draw_grid(
29        self,
30        cell_map: impl ::core::convert::Into<crate::app::mapheight::MapHeight_CellMap>,
31        x: impl ::core::convert::Into<i32>,
32        z: impl ::core::convert::Into<i32>,
33        color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
34    ) -> () {
35        unsafe {
36            let __receiver = <GridMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
37            ::unity::il2cpp_call!((::unity::module_base()+0x296f470usize)as*mut u8,();
38(GridMesh)__receiver,(crate::app::mapheight::MapHeight_CellMap)::core::convert::Into::into(cell_map),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(crate::unity_engine::color::Color)::core::convert::Into::into(color))
39        }
40    }
41    #[doc = "`Update()` overload"]
42    fn update(self) -> () {
43        unsafe {
44            let __receiver = <GridMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
45            ::unity::il2cpp_call!((::unity::module_base()+0x2970550usize)as*mut u8,();
46(GridMesh)__receiver)
47        }
48    }
49    #[doc = "`.ctor()` overload"]
50    fn ctor(self) -> () {
51        unsafe {
52            let __receiver = <GridMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53            ::unity::il2cpp_call!((::unity::module_base()+0x29708b0usize)as*mut u8,();
54(GridMesh)__receiver)
55        }
56    }
57}
58
59#[cfg(feature = "app-gridmesh")]
60impl<__T: IGridMesh> IGridMeshMethods for __T {}
61
62#[cfg(feature = "app-gridmesh")]
63impl GridMesh {
64    pub fn draw_grid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
65        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
66    }
67
68    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
69        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
70    }
71
72    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
74    }
75}
76
77#[cfg(feature = "app-gridmesh")]
78impl GridMesh {
79    #[doc = "`.ctor()` — no args"]
80    pub fn new() -> Self {
81        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
82            panic!(
83                "{}
84::{}
85 failed to instantiate",
86                ::core::stringify!(GridMesh),
87                ::core::stringify!(new),
88            )
89        });
90        <Self as IGridMeshMethods>::ctor(this);
91        this
92    }
93}
94
95#[cfg(feature = "app-gridmesh")]
96#[doc(hidden)]
97pub mod prelude {
98    pub use super::{GridMesh, IGridMesh, IGridMeshMethods};
99    #[cfg(feature = "app-dynamicmesh")]
100    pub use crate::app::dynamicmesh::IDynamicMeshMethods;
101    #[cfg(feature = "app-map")]
102    pub use crate::app::map::IMap_CellMeshMethods;
103    #[cfg(feature = "system-object")]
104    pub use crate::system::object::IObjectMethods;
105    pub use crate::{
106        app::{dynamicmesh::IDynamicMesh, map::IMap_CellMesh},
107        system::object::IObject,
108    };
109}