engage/generated/app/
minimapsightrenderer.rs1#[cfg(feature = "app-minimapsightrenderer-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 event_systems::uibehaviour::{IUIBehaviour, UIBehaviour},
14 monobehaviour::{IMonoBehaviour, MonoBehaviour},
15 object_2::{IObject_2, Object_2},
16 ui::{
17 graphic::{Graphic, IGraphic},
18 maskablegraphic::{IMaskableGraphic, MaskableGraphic},
19 },
20 },
21 };
22
23 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/minimapsightrenderer/MiniMapSightRenderer.md"))]
24 #[::unity::class(namespace = "App", name = "MiniMapSightRenderer")]
25 #[parent(crate::unity_engine::ui::maskablegraphic::MaskableGraphic)]
26 pub struct MiniMapSightRenderer {
27 #[offset(208)]
28 #[rename(name = "m_Texture")]
29 pub m_texture: crate::unity_engine::texture2d::Texture2D,
30 #[offset(216)]
31 #[rename(name = "m_CanvasRenderer")]
32 pub m_canvas_renderer: crate::unity_engine::canvasrenderer::CanvasRenderer,
33 #[offset(224)]
34 #[rename(name = "m_SightFillColor")]
35 pub m_sight_fill_color: crate::unity_engine::color::Color,
36 #[offset(240)]
37 #[rename(name = "m_Mesh")]
38 pub m_mesh: crate::unity_engine::mesh::Mesh,
39 #[offset(248)]
40 #[rename(name = "m_Vertices")]
41 pub m_vertices: crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector3::Vector3>,
42 #[offset(256)]
43 #[rename(name = "m_Colors")]
44 pub m_colors: crate::system::collections::generic::list_1::List_1<crate::unity_engine::color::Color>,
45 #[offset(264)]
46 #[rename(name = "m_UVs")]
47 pub m_u_vs: crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector2::Vector2>,
48 #[offset(272)]
49 #[rename(name = "m_Indices")]
50 pub m_indices: crate::system::collections::generic::list_1::List_1<i32>,
51 #[offset(280)]
52 #[rename(name = "VERTEX_CAPACITY")]
53 pub vertex_capacity: i32,
54 #[offset(288)]
55 #[rename(name = "vtxOffsets")]
56 pub vtx_offsets: ::unity::Array<crate::unity_engine::vector3::Vector3>,
57 }
58}
59
60#[cfg(feature = "app-minimapsightrenderer-types")]
61pub use __types::*;
62
63#[cfg(feature = "app-minimapsightrenderer")]
64pub trait IMiniMapSightRendererMethods: IMiniMapSightRenderer {
65 #[doc = "`get_Texture()` overload"]
66 fn get_texture(self) -> crate::unity_engine::texture2d::Texture2D {
67 unsafe {
68 let __receiver = <MiniMapSightRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
69 ::unity::il2cpp_call!((::unity::module_base()+0x2779890usize)as*mut u8,crate::unity_engine::texture2d::Texture2D;
70(MiniMapSightRenderer)__receiver)
71 }
72 }
73 #[doc = "`set_Texture(crate::unity_engine::texture2d::Texture2D)` overload"]
74 fn set_texture(self, value: impl ::core::convert::Into<crate::unity_engine::texture2d::Texture2D>) -> () {
75 unsafe {
76 let __receiver = <MiniMapSightRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
77 ::unity::il2cpp_call!((::unity::module_base()+0x27798a0usize)as*mut u8,();
78(MiniMapSightRenderer)__receiver,(crate::unity_engine::texture2d::Texture2D)::core::convert::Into::into(value))
79 }
80 }
81 #[doc = "`get_CanvasRenderer()` overload"]
82 fn get_canvas_renderer(self) -> crate::unity_engine::canvasrenderer::CanvasRenderer {
83 unsafe {
84 let __receiver = <MiniMapSightRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85 ::unity::il2cpp_call!((::unity::module_base()+0x2779960usize)as*mut u8,crate::unity_engine::canvasrenderer::CanvasRenderer;
86(MiniMapSightRenderer)__receiver)
87 }
88 }
89 #[doc = "`set_GridSize(f32)` overload"]
90 fn set_grid_size(self, value: impl ::core::convert::Into<f32>) -> () {
91 unsafe {
92 let __receiver = <MiniMapSightRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93 ::unity::il2cpp_call!((::unity::module_base()+0x2779a20usize)as*mut u8,();
94(MiniMapSightRenderer)__receiver,(f32)::core::convert::Into::into(value))
95 }
96 }
97 #[doc = "`get_GridSize()` overload"]
98 fn get_grid_size(self) -> f32 {
99 unsafe {
100 let __receiver = <MiniMapSightRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101 ::unity::il2cpp_call!((::unity::module_base()+0x2779a30usize)as*mut u8,f32;
102(MiniMapSightRenderer)__receiver)
103 }
104 }
105 #[doc = "`TryInitializeData()` overload"]
106 fn try_initialize_data(self) -> () {
107 unsafe {
108 let __receiver = <MiniMapSightRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109 ::unity::il2cpp_call!((::unity::module_base()+0x2779a40usize)as*mut u8,();
110(MiniMapSightRenderer)__receiver)
111 }
112 }
113 #[doc = "`GetMapImage()` overload"]
114 fn get_map_image(self) -> crate::app::mapimage::MapImage {
115 unsafe {
116 let __receiver = <MiniMapSightRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117 ::unity::il2cpp_call!((::unity::module_base()+0x2779ca0usize)as*mut u8,crate::app::mapimage::MapImage;
118(MiniMapSightRenderer)__receiver)
119 }
120 }
121 #[doc = "`UpdateGeometry()` overload"]
122 fn update_geometry(self) -> () {
123 unsafe {
124 let __receiver = <MiniMapSightRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125 {
126 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
127 let __vi = *__vt.get(41usize).unwrap_or_else(|| {
128 panic!(
129 "unity: virtual slot {}
130 out of range (vtable len {}
131) on the runtime class behind {}
132 (method `{}
133`)",
134 41usize,
135 __vt.len(),
136 <MiniMapSightRenderer as ::unity::ClassIdentity>::NAME,
137 "UpdateGeometry",
138 )
139 });
140 let __inner: extern "C" fn(MiniMapSightRenderer, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
141 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
142 __inner(__receiver, __mi)
143 }
144 }
145 }
146 #[doc = "`Update()` overload"]
147 fn update(self) -> () {
148 unsafe {
149 let __receiver = <MiniMapSightRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150 ::unity::il2cpp_call!((::unity::module_base()+0x2779e40usize)as*mut u8,();
151(MiniMapSightRenderer)__receiver)
152 }
153 }
154 #[doc = "`CreateTerrainMesh()` overload"]
155 fn create_terrain_mesh(self) -> () {
156 unsafe {
157 let __receiver = <MiniMapSightRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158 ::unity::il2cpp_call!((::unity::module_base()+0x2779db0usize)as*mut u8,();
159(MiniMapSightRenderer)__receiver)
160 }
161 }
162 #[doc = "`CreateTerrainMesh(crate::app::mapimage::MapImage)` overload"]
163 fn create_terrain_mesh_2(self, map_image: impl ::core::convert::Into<crate::app::mapimage::MapImage>) -> () {
164 unsafe {
165 let __receiver = <MiniMapSightRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166 ::unity::il2cpp_call!((::unity::module_base()+0x2779ed0usize)as*mut u8,();
167(MiniMapSightRenderer)__receiver,(crate::app::mapimage::MapImage)::core::convert::Into::into(map_image))
168 }
169 }
170 #[doc = "`SetMeshToRenderer()` overload"]
171 fn set_mesh_to_renderer(self) -> () {
172 unsafe {
173 let __receiver = <MiniMapSightRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174 ::unity::il2cpp_call!((::unity::module_base()+0x277a410usize)as*mut u8,();
175(MiniMapSightRenderer)__receiver)
176 }
177 }
178 #[doc = "`UpdateMapSize()` overload"]
179 fn update_map_size(self) -> () {
180 unsafe {
181 let __receiver = <MiniMapSightRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182 ::unity::il2cpp_call!((::unity::module_base()+0x277a510usize)as*mut u8,();
183(MiniMapSightRenderer)__receiver)
184 }
185 }
186 #[doc = "`.ctor()` overload"]
187 fn ctor(self) -> () {
188 unsafe {
189 let __receiver = <MiniMapSightRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190 ::unity::il2cpp_call!((::unity::module_base()+0x277a5f0usize)as*mut u8,();
191(MiniMapSightRenderer)__receiver)
192 }
193 }
194}
195
196#[cfg(feature = "app-minimapsightrenderer")]
197impl<__T: IMiniMapSightRenderer> IMiniMapSightRendererMethods for __T {}
198
199#[cfg(feature = "app-minimapsightrenderer")]
200impl MiniMapSightRenderer {
201 pub fn get_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
203 }
204
205 pub fn set_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
207 }
208
209 pub fn get_canvas_renderer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
211 }
212
213 pub fn set_grid_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
215 }
216
217 pub fn get_grid_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
218 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
219 }
220
221 pub fn try_initialize_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
222 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
223 }
224
225 pub fn get_map_image_method_info() -> &'static ::unity::il2cpp::MethodInfo {
226 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
227 }
228
229 pub fn update_geometry_method_info() -> &'static ::unity::il2cpp::MethodInfo {
230 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
231 }
232
233 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
234 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
235 }
236
237 pub fn create_terrain_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
238 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
239 }
240
241 pub fn create_terrain_mesh_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
243 }
244
245 pub fn set_mesh_to_renderer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
247 }
248
249 pub fn update_map_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
251 }
252
253 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
254 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
255 }
256}
257
258#[cfg(feature = "app-minimapsightrenderer")]
259impl MiniMapSightRenderer {
260 #[doc = "Direct (non-virtual) call to `MiniMapSightRenderer`'s own `UpdateGeometry`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
261 pub unsafe fn update_geometry(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
262 let __mi = Self::update_geometry_method_info();
263 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
264 __inner(this.into(), ::core::option::Option::None)
265 }
266}
267
268#[cfg(feature = "app-minimapsightrenderer")]
269impl MiniMapSightRenderer {
270 #[doc = "`.ctor()` — no args"]
271 pub fn new() -> Self {
272 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
273 panic!(
274 "{}
275::{}
276 failed to instantiate",
277 ::core::stringify!(MiniMapSightRenderer),
278 ::core::stringify!(new),
279 )
280 });
281 <Self as IMiniMapSightRendererMethods>::ctor(this);
282 this
283 }
284}
285
286#[cfg(feature = "app-minimapsightrenderer")]
287#[doc(hidden)]
288pub mod prelude {
289 pub use super::{IMiniMapSightRenderer, IMiniMapSightRendererMethods, MiniMapSightRenderer};
290 #[cfg(feature = "system-object")]
291 pub use crate::system::object::IObjectMethods;
292 #[cfg(feature = "unity_engine-behaviour")]
293 pub use crate::unity_engine::behaviour::IBehaviourMethods;
294 #[cfg(feature = "unity_engine-component")]
295 pub use crate::unity_engine::component::IComponentMethods;
296 #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
297 pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
298 #[cfg(feature = "unity_engine-monobehaviour")]
299 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
300 #[cfg(feature = "unity_engine-object_2")]
301 pub use crate::unity_engine::object_2::IObject_2Methods;
302 #[cfg(feature = "unity_engine-ui-graphic")]
303 pub use crate::unity_engine::ui::graphic::IGraphicMethods;
304 #[cfg(feature = "unity_engine-ui-maskablegraphic")]
305 pub use crate::unity_engine::ui::maskablegraphic::IMaskableGraphicMethods;
306 pub use crate::{
307 system::object::IObject,
308 unity_engine::{
309 behaviour::IBehaviour,
310 component::IComponent,
311 event_systems::uibehaviour::IUIBehaviour,
312 monobehaviour::IMonoBehaviour,
313 object_2::IObject_2,
314 ui::{graphic::IGraphic, maskablegraphic::IMaskableGraphic},
315 },
316 };
317}