engage/generated/app/
terrainpaintgetter.rs1#[cfg(feature = "app-terrainpaintgetter-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/app/terrainpaintgetter/TerrainPaintGetter.md"))]
19 #[::unity::class(namespace = "App", name = "TerrainPaintGetter")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct TerrainPaintGetter {
22 #[offset(24)]
23 #[rename(name = "m_Data")]
24 pub m_data: crate::app::terrainpaintdata::TerrainPaintData,
25 #[offset(32)]
26 #[rename(name = "m_drawDebugGizmo")]
27 pub m_draw_debug_gizmo: bool,
28 #[offset(36)]
29 #[rename(name = "m_debugGizmoHeight")]
30 pub m_debug_gizmo_height: f32,
31 #[offset(40)]
32 #[rename(name = "m_debugGizmoGridColor")]
33 pub m_debug_gizmo_grid_color: crate::unity_engine::color::Color,
34 #[offset(56)]
35 #[rename(name = "m_debugGizmoDrawIndex")]
36 pub m_debug_gizmo_draw_index: crate::system::collections::generic::list_1::List_1<i32>,
37 #[offset(64)]
38 #[rename(name = "m_debugGizmoDrawAlpha")]
39 pub m_debug_gizmo_draw_alpha: f32,
40 #[offset(72)]
41 #[rename(name = "m_debugGizmoDrawColor")]
42 pub m_debug_gizmo_draw_color: crate::system::collections::generic::list_1::List_1<crate::unity_engine::color::Color>,
43 }
44}
45
46#[cfg(feature = "app-terrainpaintgetter-types")]
47pub use __types::*;
48
49#[cfg(feature = "app-terrainpaintgetter")]
50pub trait ITerrainPaintGetterMethods: ITerrainPaintGetter {
51 #[doc = "`Get(f32, f32)` overload"]
52 fn get(self, x: impl ::core::convert::Into<f32>, y: impl ::core::convert::Into<f32>) -> ::unity::Il2CppString {
53 unsafe {
54 let __receiver = <TerrainPaintGetter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
55 {
56 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
57 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
58 panic!(
59 "unity: virtual slot {}
60 out of range (vtable len {}
61) on the runtime class behind {}
62 (method `{}
63`)",
64 4usize,
65 __vt.len(),
66 <TerrainPaintGetter as ::unity::ClassIdentity>::NAME,
67 "Get",
68 )
69 });
70 let __inner: extern "C" fn(TerrainPaintGetter, f32, f32, ::unity::OptionalMethod) -> ::unity::Il2CppString =
71 ::core::mem::transmute(__vi.method_ptr);
72 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
73 __inner(__receiver, ::core::convert::Into::into(x), ::core::convert::Into::into(y), __mi)
74 }
75 }
76 }
77 #[doc = "`Get(crate::unity_engine::vector2::Vector2)` overload"]
78 fn get_2(self, pos: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>) -> ::unity::Il2CppString {
79 unsafe {
80 let __receiver = <TerrainPaintGetter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81 ::unity::il2cpp_call!((::unity::module_base()+0x21e7320usize)as*mut u8, ::unity::Il2CppString;
82(TerrainPaintGetter)__receiver,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(pos))
83 }
84 }
85 #[doc = "`OnDrawGizmos()` overload"]
86 fn on_draw_gizmos(self) -> () {
87 unsafe {
88 let __receiver = <TerrainPaintGetter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89 ::unity::il2cpp_call!((::unity::module_base()+0x21e7330usize)as*mut u8,();
90(TerrainPaintGetter)__receiver)
91 }
92 }
93 #[doc = "`.ctor()` overload"]
94 fn ctor(self) -> () {
95 unsafe {
96 let __receiver = <TerrainPaintGetter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97 ::unity::il2cpp_call!((::unity::module_base()+0x21e76c0usize)as*mut u8,();
98(TerrainPaintGetter)__receiver)
99 }
100 }
101}
102
103#[cfg(feature = "app-terrainpaintgetter")]
104impl<__T: ITerrainPaintGetter> ITerrainPaintGetterMethods for __T {}
105
106#[cfg(feature = "app-terrainpaintgetter")]
107impl TerrainPaintGetter {
108 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
110 }
111
112 pub fn get_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
113 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
114 }
115
116 pub fn on_draw_gizmos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
117 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
118 }
119
120 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
121 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
122 }
123}
124
125#[cfg(feature = "app-terrainpaintgetter")]
126impl TerrainPaintGetter {
127 #[doc = "Direct (non-virtual) call to `TerrainPaintGetter`'s own `Get`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
128 pub unsafe fn get(this: impl ::core::convert::Into<::unity::IlInstance>, x: f32, y: f32) -> ::unity::Il2CppString {
129 let __mi = Self::get_method_info();
130 let __inner: extern "C" fn(::unity::IlInstance, f32, f32, ::unity::OptionalMethod) -> ::unity::Il2CppString =
131 ::core::mem::transmute(__mi.method_ptr);
132 __inner(this.into(), x, y, ::core::option::Option::None)
133 }
134}
135
136#[cfg(feature = "app-terrainpaintgetter")]
137impl TerrainPaintGetter {
138 #[doc = "`.ctor()` — no args"]
139 pub fn new() -> Self {
140 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
141 panic!(
142 "{}
143::{}
144 failed to instantiate",
145 ::core::stringify!(TerrainPaintGetter),
146 ::core::stringify!(new),
147 )
148 });
149 <Self as ITerrainPaintGetterMethods>::ctor(this);
150 this
151 }
152}
153
154#[cfg(feature = "app-terrainpaintgetter")]
155#[doc(hidden)]
156pub mod prelude {
157 pub use super::{ITerrainPaintGetter, ITerrainPaintGetterMethods, TerrainPaintGetter};
158 #[cfg(feature = "system-object")]
159 pub use crate::system::object::IObjectMethods;
160 #[cfg(feature = "unity_engine-behaviour")]
161 pub use crate::unity_engine::behaviour::IBehaviourMethods;
162 #[cfg(feature = "unity_engine-component")]
163 pub use crate::unity_engine::component::IComponentMethods;
164 #[cfg(feature = "unity_engine-monobehaviour")]
165 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
166 #[cfg(feature = "unity_engine-object_2")]
167 pub use crate::unity_engine::object_2::IObject_2Methods;
168 pub use crate::{
169 system::object::IObject,
170 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
171 };
172}