1#[cfg(feature = "app-mappanelroute-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::singletonmonobehaviour_1::{ISingletonMonoBehaviour_1, SingletonMonoBehaviour_1},
10 root::mappanelbase_1::{IMapPanelBase_1, MapPanelBase_1},
11 system::object::{IObject, Object},
12 unity_engine::{
13 behaviour::{Behaviour, IBehaviour},
14 component::{Component, IComponent},
15 monobehaviour::{IMonoBehaviour, MonoBehaviour},
16 object_2::{IObject_2, Object_2},
17 },
18 };
19
20 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mappanelroute/MapPanelRoute.md"))]
21 #[::unity::class(namespace = "App", name = "MapPanelRoute")]
22 #[parent(crate::root::mappanelbase_1::MapPanelBase_1<crate::app::mappanelroute::MapPanelRoute>)]
23 pub struct MapPanelRoute {
24 #[offset(64)]
25 #[rename(name = "m_Routes")]
26 pub m_routes: ::unity::Array<crate::app::dir_2::Dir_Type>,
27 }
28}
29
30#[cfg(feature = "app-mappanelroute-types")]
31pub use __types::*;
32
33#[cfg(feature = "app-mappanelroute")]
34pub trait IMapPanelRouteMethods: IMapPanelRoute {
35 #[doc = "`.ctor()` overload"]
36 fn ctor(self) -> () {
37 unsafe {
38 let __receiver = <MapPanelRoute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39 ::unity::il2cpp_call!((::unity::module_base()+0x2353040usize)as*mut u8,();
40(MapPanelRoute)__receiver)
41 }
42 }
43 #[doc = "`Update()` overload"]
44 fn update(self) -> () {
45 unsafe {
46 let __receiver = <MapPanelRoute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47 ::unity::il2cpp_call!((::unity::module_base()+0x2353160usize)as*mut u8,();
48(MapPanelRoute)__receiver)
49 }
50 }
51 #[doc = "`SetupRoute()` overload"]
52 fn setup_route(self) -> () {
53 unsafe {
54 let __receiver = <MapPanelRoute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
55 ::unity::il2cpp_call!((::unity::module_base()+0x2353170usize)as*mut u8,();
56(MapPanelRoute)__receiver)
57 }
58 }
59 #[doc = "`SetupResumeRoute(::unity::Array<crate::app::dir_2::Dir_Type>)` overload"]
60 fn setup_resume_route(self, routes: impl ::core::convert::Into<::unity::Array<crate::app::dir_2::Dir_Type>>) -> () {
61 unsafe {
62 let __receiver = <MapPanelRoute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63 ::unity::il2cpp_call!((::unity::module_base()+0x2353470usize)as*mut u8,();
64(MapPanelRoute)__receiver,(::unity::Array<crate::app::dir_2::Dir_Type>)::core::convert::Into::into(routes))
65 }
66 }
67 #[doc = "`SetTransparent(bool)` overload"]
68 fn set_transparent(self, enable: impl ::core::convert::Into<bool>) -> () {
69 unsafe {
70 let __receiver = <MapPanelRoute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71 ::unity::il2cpp_call!((::unity::module_base()+0x23551a0usize)as*mut u8,();
72(MapPanelRoute)__receiver,(bool)::core::convert::Into::into(enable))
73 }
74 }
75 #[doc = "`Save(::unity::Array<crate::app::dir_2::Dir_Type>)` overload"]
76 fn save(self, routes: impl ::core::convert::Into<::unity::Array<crate::app::dir_2::Dir_Type>>) -> () {
77 unsafe {
78 let __receiver = <MapPanelRoute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79 ::unity::il2cpp_call!((::unity::module_base()+0x2355210usize)as*mut u8,();
80(MapPanelRoute)__receiver,(::unity::Array<crate::app::dir_2::Dir_Type>)::core::convert::Into::into(routes))
81 }
82 }
83 #[doc = "`Reset()` overload"]
84 fn reset(self) -> () {
85 unsafe {
86 let __receiver = <MapPanelRoute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87 ::unity::il2cpp_call!((::unity::module_base()+0x2353120usize)as*mut u8,();
88(MapPanelRoute)__receiver)
89 }
90 }
91 #[doc = "`IsRoute()` overload"]
92 fn is_route(self) -> bool {
93 unsafe {
94 let __receiver = <MapPanelRoute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95 ::unity::il2cpp_call!((::unity::module_base()+0x2355230usize)as*mut u8,bool;
96(MapPanelRoute)__receiver)
97 }
98 }
99 #[doc = "`GetUV(crate::app::dir_2::Dir_Type, crate::app::dir_2::Dir_Type)` overload"]
100 fn get_uv(
101 self,
102 old_dir: impl ::core::convert::Into<crate::app::dir_2::Dir_Type>,
103 cur_dir: impl ::core::convert::Into<crate::app::dir_2::Dir_Type>,
104 ) -> crate::unity_engine::vector2::Vector2 {
105 unsafe {
106 let __receiver = <MapPanelRoute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 ::unity::il2cpp_call!((::unity::module_base()+0x23535b0usize)as*mut u8,crate::unity_engine::vector2::Vector2;
108(MapPanelRoute)__receiver,(crate::app::dir_2::Dir_Type)::core::convert::Into::into(old_dir),(crate::app::dir_2::Dir_Type)::core::convert::Into::into(cur_dir))
109 }
110 }
111 #[doc = "`AddVerticalVertex(crate::app::dir_2::Dir_Type, i32, i32, i32, i32)` overload"]
112 fn add_vertical_vertex(
113 self,
114 old_dir: impl ::core::convert::Into<crate::app::dir_2::Dir_Type>,
115 old_x: impl ::core::convert::Into<i32>,
116 old_z: impl ::core::convert::Into<i32>,
117 x: impl ::core::convert::Into<i32>,
118 z: impl ::core::convert::Into<i32>,
119 ) -> () {
120 unsafe {
121 let __receiver = <MapPanelRoute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
122 ::unity::il2cpp_call!((::unity::module_base()+0x23537b0usize)as*mut u8,();
123(MapPanelRoute)__receiver,(crate::app::dir_2::Dir_Type)::core::convert::Into::into(old_dir),(i32)::core::convert::Into::into(old_x),(i32)::core::convert::Into::into(old_z),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
124 }
125 }
126 #[doc = "`AddHeadVertex(crate::app::dir_2::Dir_Type, i32, i32)` overload"]
127 fn add_head_vertex(
128 self,
129 old_dir: impl ::core::convert::Into<crate::app::dir_2::Dir_Type>,
130 x: impl ::core::convert::Into<i32>,
131 z: impl ::core::convert::Into<i32>,
132 ) -> () {
133 unsafe {
134 let __receiver = <MapPanelRoute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 ::unity::il2cpp_call!((::unity::module_base()+0x23550d0usize)as*mut u8,();
136(MapPanelRoute)__receiver,(crate::app::dir_2::Dir_Type)::core::convert::Into::into(old_dir),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
137 }
138 }
139 #[doc = "`AddCell(i32, i32, crate::unity_engine::vector2::Vector2)` overload"]
140 fn add_cell(
141 self,
142 x: impl ::core::convert::Into<i32>,
143 z: impl ::core::convert::Into<i32>,
144 uv: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
145 ) -> () {
146 unsafe {
147 let __receiver = <MapPanelRoute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148 ::unity::il2cpp_call!((::unity::module_base()+0x2353710usize)as*mut u8,();
149(MapPanelRoute)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(uv))
150 }
151 }
152 #[doc = "`AddCell(i32, i32, crate::unity_engine::color::Color, crate::unity_engine::vector2::Vector2, crate::unity_engine::vector3::Vector3)` overload"]
153 fn add_cell_2(
154 self,
155 x: impl ::core::convert::Into<i32>,
156 z: impl ::core::convert::Into<i32>,
157 color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
158 uv0: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
159 uv2: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
160 ) -> () {
161 unsafe {
162 let __receiver = <MapPanelRoute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163 ::unity::il2cpp_call!((::unity::module_base()+0x2355270usize)as*mut u8,();
164(MapPanelRoute)__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(uv0),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(uv2))
165 }
166 }
167 #[doc = "`get_Routes()` overload"]
168 fn get_routes(self) -> ::unity::Array<crate::app::dir_2::Dir_Type> {
169 unsafe {
170 let __receiver = <MapPanelRoute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171 ::unity::il2cpp_call!((::unity::module_base()+0x23559e0usize)as*mut u8, ::unity::Array<crate::app::dir_2::Dir_Type> ;
172(MapPanelRoute)__receiver)
173 }
174 }
175}
176
177#[cfg(feature = "app-mappanelroute")]
178impl<__T: IMapPanelRoute> IMapPanelRouteMethods for __T {}
179
180#[cfg(feature = "app-mappanelroute")]
181impl MapPanelRoute {
182 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
184 }
185
186 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
188 }
189
190 pub fn setup_route_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
192 }
193
194 pub fn setup_resume_route_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
196 }
197
198 pub fn set_transparent_method_info() -> &'static ::unity::il2cpp::MethodInfo {
199 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
200 }
201
202 pub fn save_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
204 }
205
206 pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
208 }
209
210 pub fn is_route_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
212 }
213
214 pub fn get_uv_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
216 }
217
218 pub fn add_vertical_vertex_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
220 }
221
222 pub fn add_head_vertex_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
224 }
225
226 pub fn add_cell_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
228 }
229
230 pub fn add_cell_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
232 }
233
234 pub fn get_routes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
236 }
237}
238
239#[cfg(feature = "app-mappanelroute")]
240impl MapPanelRoute {
241 #[doc = "`.ctor()` — no args"]
242 pub fn new() -> Self {
243 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
244 panic!(
245 "{}
246::{}
247 failed to instantiate",
248 ::core::stringify!(MapPanelRoute),
249 ::core::stringify!(new),
250 )
251 });
252 <Self as IMapPanelRouteMethods>::ctor(this);
253 this
254 }
255}
256
257#[cfg(feature = "app-mappanelroute")]
258#[doc(hidden)]
259pub mod prelude {
260 pub use super::{IMapPanelRoute, IMapPanelRouteMethods, MapPanelRoute};
261 #[cfg(feature = "app-singletonmonobehaviour_1")]
262 pub use crate::app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1Methods;
263 #[cfg(feature = "root-mappanelbase_1")]
264 pub use crate::root::mappanelbase_1::IMapPanelBase_1Methods;
265 #[cfg(feature = "system-object")]
266 pub use crate::system::object::IObjectMethods;
267 #[cfg(feature = "unity_engine-behaviour")]
268 pub use crate::unity_engine::behaviour::IBehaviourMethods;
269 #[cfg(feature = "unity_engine-component")]
270 pub use crate::unity_engine::component::IComponentMethods;
271 #[cfg(feature = "unity_engine-monobehaviour")]
272 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
273 #[cfg(feature = "unity_engine-object_2")]
274 pub use crate::unity_engine::object_2::IObject_2Methods;
275 pub use crate::{
276 app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1,
277 root::mappanelbase_1::IMapPanelBase_1,
278 system::object::IObject,
279 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
280 };
281}