engage/generated/app/
mapimagerange.rs1#[cfg(feature = "app-mapimagerange-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 valuetype::{IValueType, ValueType},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapimagerange/MapImageRange.md"))]
14 #[::unity::class(namespace = "App", name = "MapImageRange")]
15 #[parent(crate::system::object::Object)]
16 pub struct MapImageRange {
17 #[static_field]
18 #[rename(name = "Version")]
19 pub version: i32,
20 #[offset(16)]
21 #[rename(name = "m_Image")]
22 pub m_image: crate::app::mapimagecorebit::MapImageCoreBit,
23 #[offset(24)]
24 #[rename(name = "m_Poss")]
25 pub m_poss: crate::system::collections::generic::list_1::List_1<crate::app::mapimagerange::MapImageRange_Pos>,
26 }
27
28 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapimagerange/MapImageRange_Pos.md"))]
29 #[repr(C)]
30 #[derive(::core::clone::Clone, ::core::marker::Copy)]
31 pub struct MapImageRange_Pos {
32 pub x: u8,
33 pub z: u8,
34 }
35 impl ::unity::ClassIdentity for MapImageRange_Pos {
36 const NAME: &'static str = "MapImageRange.Pos";
37 const NAMESPACE: &'static str = "App";
38
39 fn class() -> ::unity::Class {
40 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
41 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
42 }
43 }
44 impl ::unity::IlType for MapImageRange_Pos {
45 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
46 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
47 }
48 }
49}
50
51#[cfg(feature = "app-mapimagerange-types")]
52pub use __types::*;
53
54#[cfg(feature = "app-mapimagerange")]
55pub trait IMapImageRangeMethods: IMapImageRange {
56 #[doc = "`Clear()` overload"]
57 fn clear(self) -> () {
58 unsafe {
59 let __receiver = <MapImageRange as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60 ::unity::il2cpp_call!((::unity::module_base()+0x2061000usize)as*mut u8,();
61(MapImageRange)__receiver)
62 }
63 }
64 #[doc = "`Add(i32, i32)` overload"]
65 fn add(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> () {
66 unsafe {
67 let __receiver = <MapImageRange as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68 ::unity::il2cpp_call!((::unity::module_base()+0x2061070usize)as*mut u8,();
69(MapImageRange)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
70 }
71 }
72 #[doc = "`Delete(i32, i32)` overload"]
73 fn delete(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> () {
74 unsafe {
75 let __receiver = <MapImageRange as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76 ::unity::il2cpp_call!((::unity::module_base()+0x2061140usize)as*mut u8,();
77(MapImageRange)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
78 }
79 }
80 #[doc = "`Get(i32, i32)` overload"]
81 fn get(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> bool {
82 unsafe {
83 let __receiver = <MapImageRange as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84 ::unity::il2cpp_call!((::unity::module_base()+0x20612a0usize)as*mut u8,bool;
85(MapImageRange)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
86 }
87 }
88 #[doc = "`get_Count()` overload"]
89 fn get_count(self) -> i32 {
90 unsafe {
91 let __receiver = <MapImageRange as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92 ::unity::il2cpp_call!((::unity::module_base()+0x20612e0usize)as*mut u8,i32;
93(MapImageRange)__receiver)
94 }
95 }
96 #[doc = "`GetX(i32)` overload"]
97 fn get_x(self, i: impl ::core::convert::Into<i32>) -> i32 {
98 unsafe {
99 let __receiver = <MapImageRange as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100 ::unity::il2cpp_call!((::unity::module_base()+0x2061330usize)as*mut u8,i32;
101(MapImageRange)__receiver,(i32)::core::convert::Into::into(i))
102 }
103 }
104 #[doc = "`GetZ(i32)` overload"]
105 fn get_z(self, i: impl ::core::convert::Into<i32>) -> i32 {
106 unsafe {
107 let __receiver = <MapImageRange as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108 ::unity::il2cpp_call!((::unity::module_base()+0x20613a0usize)as*mut u8,i32;
109(MapImageRange)__receiver,(i32)::core::convert::Into::into(i))
110 }
111 }
112 #[doc = "`Sort()` overload"]
113 fn sort(self) -> () {
114 unsafe {
115 let __receiver = <MapImageRange as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116 ::unity::il2cpp_call!((::unity::module_base()+0x2061410usize)as*mut u8,();
117(MapImageRange)__receiver)
118 }
119 }
120 #[doc = "`OpenFan(i32, i32, i32, i32, i32)` overload"]
121 fn open_fan(
122 self,
123 start_x: impl ::core::convert::Into<i32>,
124 start_z: impl ::core::convert::Into<i32>,
125 target_x: impl ::core::convert::Into<i32>,
126 target_z: impl ::core::convert::Into<i32>,
127 angle: impl ::core::convert::Into<i32>,
128 ) -> () {
129 unsafe {
130 let __receiver = <MapImageRange as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131 ::unity::il2cpp_call!((::unity::module_base()+0x2061540usize)as*mut u8,();
132(MapImageRange)__receiver,(i32)::core::convert::Into::into(start_x),(i32)::core::convert::Into::into(start_z),(i32)::core::convert::Into::into(target_x),(i32)::core::convert::Into::into(target_z),(i32)::core::convert::Into::into(angle))
133 }
134 }
135 #[doc = "`Serialize(crate::app::stream_2::Stream_2)` overload"]
136 fn serialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
137 unsafe {
138 let __receiver = <MapImageRange as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139 ::unity::il2cpp_call!((::unity::module_base()+0x20616d0usize)as*mut u8,();
140(MapImageRange)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
141 }
142 }
143 #[doc = "`Deserialize(crate::app::stream_2::Stream_2)` overload"]
144 fn deserialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
145 unsafe {
146 let __receiver = <MapImageRange as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147 ::unity::il2cpp_call!((::unity::module_base()+0x20617e0usize)as*mut u8,();
148(MapImageRange)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
149 }
150 }
151 #[doc = "`.ctor()` overload"]
152 fn ctor(self) -> () {
153 unsafe {
154 let __receiver = <MapImageRange as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155 ::unity::il2cpp_call!((::unity::module_base()+0x20619e0usize)as*mut u8,();
156(MapImageRange)__receiver)
157 }
158 }
159}
160
161#[cfg(feature = "app-mapimagerange")]
162impl<__T: IMapImageRange> IMapImageRangeMethods for __T {}
163
164#[cfg(feature = "app-mapimagerange")]
165impl MapImageRange {
166 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
168 }
169
170 pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
172 }
173
174 pub fn delete_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
176 }
177
178 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
180 }
181
182 pub fn get_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
184 }
185
186 pub fn get_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
188 }
189
190 pub fn get_z_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
192 }
193
194 pub fn sort_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
196 }
197
198 pub fn open_fan_method_info() -> &'static ::unity::il2cpp::MethodInfo {
199 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
200 }
201
202 pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
204 }
205
206 pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
208 }
209
210 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
212 }
213}
214
215#[cfg(feature = "app-mapimagerange")]
216impl MapImageRange {
217 #[doc = "`.ctor()` — no args"]
218 pub fn new() -> Self {
219 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
220 panic!(
221 "{}
222::{}
223 failed to instantiate",
224 ::core::stringify!(MapImageRange),
225 ::core::stringify!(new),
226 )
227 });
228 <Self as IMapImageRangeMethods>::ctor(this);
229 this
230 }
231}
232
233#[cfg(feature = "app-mapimagerange")]
234impl MapImageRange_Pos {
235 #[doc = "`.ctor(i32, i32)` overload"]
236 pub fn ctor(&mut self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> () {
237 unsafe {
238 ::unity::il2cpp_call!((::unity::module_base()+0x217ca70usize)as*mut u8,();
239(*mut MapImageRange_Pos)self as*mut MapImageRange_Pos,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
240 }
241 }
242}
243
244#[cfg(feature = "app-mapimagerange")]
245impl MapImageRange_Pos {
246 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
248 }
249}
250
251#[cfg(feature = "app-mapimagerange")]
252#[doc(hidden)]
253pub mod prelude {
254 pub use super::{IMapImageRange, IMapImageRangeMethods, MapImageRange, MapImageRange_Pos};
255 #[cfg(feature = "system-object")]
256 pub use crate::system::object::IObjectMethods;
257 #[cfg(feature = "system-valuetype")]
258 pub use crate::system::valuetype::IValueTypeMethods;
259 pub use crate::system::{object::IObject, valuetype::IValueType};
260}