engage/generated/app/
meshgroundpaintgetter.rs1#[cfg(feature = "app-meshgroundpaintgetter-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/meshgroundpaintgetter/MeshGroundPaintGetter.md"))]
19 #[::unity::class(namespace = "App", name = "MeshGroundPaintGetter")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct MeshGroundPaintGetter {
22 #[offset(24)]
23 #[rename(name = "m_PaintDataArray")]
24 pub m_paint_data_array: ::unity::Array<crate::app::meshgroundpaintdata::MeshGroundPaintData>,
25 }
26}
27
28#[cfg(feature = "app-meshgroundpaintgetter-types")]
29pub use __types::*;
30
31#[cfg(feature = "app-meshgroundpaintgetter")]
32pub trait IMeshGroundPaintGetterMethods: IMeshGroundPaintGetter {
33 #[doc = "`Get(f32, f32)` overload"]
34 fn get(self, x: impl ::core::convert::Into<f32>, y: impl ::core::convert::Into<f32>) -> ::unity::Il2CppString {
35 unsafe {
36 let __receiver = <MeshGroundPaintGetter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
37 {
38 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
39 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
40 panic!(
41 "unity: virtual slot {}
42 out of range (vtable len {}
43) on the runtime class behind {}
44 (method `{}
45`)",
46 4usize,
47 __vt.len(),
48 <MeshGroundPaintGetter as ::unity::ClassIdentity>::NAME,
49 "Get",
50 )
51 });
52 let __inner: extern "C" fn(MeshGroundPaintGetter, f32, f32, ::unity::OptionalMethod) -> ::unity::Il2CppString =
53 ::core::mem::transmute(__vi.method_ptr);
54 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
55 __inner(__receiver, ::core::convert::Into::into(x), ::core::convert::Into::into(y), __mi)
56 }
57 }
58 }
59 #[doc = "`.ctor()` overload"]
60 fn ctor(self) -> () {
61 unsafe {
62 let __receiver = <MeshGroundPaintGetter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63 ::unity::il2cpp_call!((::unity::module_base()+0x25d2730usize)as*mut u8,();
64(MeshGroundPaintGetter)__receiver)
65 }
66 }
67}
68
69#[cfg(feature = "app-meshgroundpaintgetter")]
70impl<__T: IMeshGroundPaintGetter> IMeshGroundPaintGetterMethods for __T {}
71
72#[cfg(feature = "app-meshgroundpaintgetter")]
73impl MeshGroundPaintGetter {
74 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
75 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
76 }
77
78 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
79 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
80 }
81}
82
83#[cfg(feature = "app-meshgroundpaintgetter")]
84impl MeshGroundPaintGetter {
85 #[doc = "Direct (non-virtual) call to `MeshGroundPaintGetter`'s own `Get`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
86 pub unsafe fn get(this: impl ::core::convert::Into<::unity::IlInstance>, x: f32, y: f32) -> ::unity::Il2CppString {
87 let __mi = Self::get_method_info();
88 let __inner: extern "C" fn(::unity::IlInstance, f32, f32, ::unity::OptionalMethod) -> ::unity::Il2CppString =
89 ::core::mem::transmute(__mi.method_ptr);
90 __inner(this.into(), x, y, ::core::option::Option::None)
91 }
92}
93
94#[cfg(feature = "app-meshgroundpaintgetter")]
95impl MeshGroundPaintGetter {
96 #[doc = "`.ctor()` — no args"]
97 pub fn new() -> Self {
98 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
99 panic!(
100 "{}
101::{}
102 failed to instantiate",
103 ::core::stringify!(MeshGroundPaintGetter),
104 ::core::stringify!(new),
105 )
106 });
107 <Self as IMeshGroundPaintGetterMethods>::ctor(this);
108 this
109 }
110}
111
112#[cfg(feature = "app-meshgroundpaintgetter")]
113#[doc(hidden)]
114pub mod prelude {
115 pub use super::{IMeshGroundPaintGetter, IMeshGroundPaintGetterMethods, MeshGroundPaintGetter};
116 #[cfg(feature = "system-object")]
117 pub use crate::system::object::IObjectMethods;
118 #[cfg(feature = "unity_engine-behaviour")]
119 pub use crate::unity_engine::behaviour::IBehaviourMethods;
120 #[cfg(feature = "unity_engine-component")]
121 pub use crate::unity_engine::component::IComponentMethods;
122 #[cfg(feature = "unity_engine-monobehaviour")]
123 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
124 #[cfg(feature = "unity_engine-object_2")]
125 pub use crate::unity_engine::object_2::IObject_2Methods;
126 pub use crate::{
127 system::object::IObject,
128 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
129 };
130}