1#[cfg(feature = "app-rangedata-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 structbase::{IStructBase, StructBase},
11 structdataarray_1::{IStructDataArray_1, StructDataArray_1},
12 structtemplate_1::{IStructTemplate_1, StructTemplate_1},
13 },
14 system::{
15 object::{IObject, Object},
16 r#enum::{Enum, IEnum},
17 valuetype::{IValueType, ValueType},
18 },
19 };
20
21 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/rangedata/RangeData_Targets.md"))]
22 #[repr(C)]
23 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
24 pub struct RangeData_Targets {
25 pub value: i32,
26 }
27 impl ::unity::ClassIdentity for RangeData_Targets {
28 const NAME: &'static str = "RangeData.Targets";
29 const NAMESPACE: &'static str = "App";
30
31 fn class() -> ::unity::Class {
32 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
33 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
34 }
35 }
36 impl ::unity::IlType for RangeData_Targets {
37 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
38 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
39 }
40 }
41 impl RangeData_Targets {
42 pub fn none() -> Self {
43 Self { value: 0 }
44 }
45
46 pub fn self_() -> Self {
47 Self { value: 1 }
48 }
49
50 pub fn enemy() -> Self {
51 Self { value: 2 }
52 }
53
54 pub fn friend() -> Self {
55 Self { value: 3 }
56 }
57
58 pub fn both() -> Self {
59 Self { value: 4 }
60 }
61 }
62
63 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/rangedata/RangeData.md"))]
64 #[::unity::class(namespace = "App", name = "RangeData")]
65 #[parent(crate::app::structdataarray_1::StructDataArray_1<crate::app::rangedata::RangeData>)]
66 pub struct RangeData {
67 #[offset(48)]
68 #[rename(name = "m_Values")]
69 pub m_values: ::unity::Array<i8>,
70 #[static_field]
71 #[rename(name = "s_DirOffsets")]
72 pub s_dir_offsets: crate::app::rangedata::RangeData_DirOffsets,
73 }
74
75 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/rangedata/RangeData_Offset.md"))]
76 #[repr(C)]
77 #[derive(::core::clone::Clone, ::core::marker::Copy)]
78 pub struct RangeData_Offset {
79 pub x: i8,
80 pub z: i8,
81 pub target: crate::app::rangedata::RangeData_Targets,
82 }
83 impl ::unity::ClassIdentity for RangeData_Offset {
84 const NAME: &'static str = "RangeData.Offset";
85 const NAMESPACE: &'static str = "App";
86
87 fn class() -> ::unity::Class {
88 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
89 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
90 }
91 }
92 impl ::unity::IlType for RangeData_Offset {
93 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
94 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
95 }
96 }
97
98 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/rangedata/RangeData_DirOffsets.md"))]
99 #[::unity::class(namespace = "App", name = "RangeData.DirOffsets")]
100 #[parent(crate::system::object::Object)]
101 pub struct RangeData_DirOffsets {
102 #[offset(16)]
103 #[rename(name = "m_Offsets")]
104 pub m_offsets: ::unity::Array<
105 crate::system::collections::generic::dictionary_2::Dictionary_2<
106 ::unity::Il2CppString,
107 crate::system::collections::generic::list_1::List_1<crate::app::rangedata::RangeData_Offset>,
108 >,
109 >,
110 #[offset(24)]
111 #[rename(name = "m_Centers")]
112 pub m_centers:
113 crate::system::collections::generic::dictionary_2::Dictionary_2<::unity::Il2CppString, crate::app::rangedata::RangeData_Targets>,
114 }
115}
116
117#[cfg(feature = "app-rangedata-types")]
118pub use __types::*;
119
120#[cfg(feature = "app-rangedata")]
121impl RangeData {
122 #[doc = "`Load()` overload"]
123 pub fn load() -> () {
124 unsafe {
125 ::unity::il2cpp_call!((::unity::module_base()+0x23763a0usize)as*mut u8,();
126 )
127 }
128 }
129
130 #[doc = "`Commit()` overload"]
131 pub fn commit() -> () {
132 unsafe {
133 ::unity::il2cpp_call!((::unity::module_base()+0x2376680usize)as*mut u8,();
134 )
135 }
136 }
137
138 #[doc = "`GetCenter(::unity::Il2CppString)` overload"]
139 pub fn get_center(name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::app::rangedata::RangeData_Targets {
140 unsafe {
141 ::unity::il2cpp_call!((::unity::module_base()+0x2376eb0usize)as*mut u8,crate::app::rangedata::RangeData_Targets;
142(::unity::Il2CppString)::core::convert::Into::into(name))
143 }
144 }
145
146 #[doc = "`GetOffsets(::unity::Il2CppString, crate::app::dir_2::Dir_Type)` overload"]
147 pub fn get_offsets(
148 name: impl ::core::convert::Into<::unity::Il2CppString>,
149 dir: impl ::core::convert::Into<crate::app::dir_2::Dir_Type>,
150 ) -> crate::system::collections::generic::list_1::List_1<crate::app::rangedata::RangeData_Offset> {
151 unsafe {
152 ::unity::il2cpp_call!((::unity::module_base()+0x2376f30usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::rangedata::RangeData_Offset> ;
153(::unity::Il2CppString)::core::convert::Into::into(name),(crate::app::dir_2::Dir_Type)::core::convert::Into::into(dir))
154 }
155 }
156
157 #[doc = "`RotationOffset(crate::system::collections::generic::list_1::List_1<crate::app::rangedata::RangeData_Offset>, f32)` overload"]
158 pub fn rotation_offset(
159 list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::rangedata::RangeData_Offset>>,
160 angle: impl ::core::convert::Into<f32>,
161 ) -> crate::system::collections::generic::list_1::List_1<crate::app::rangedata::RangeData_Offset> {
162 unsafe {
163 ::unity::il2cpp_call!((::unity::module_base()+0x2376ca0usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::rangedata::RangeData_Offset> ;
164(crate::system::collections::generic::list_1::List_1<crate::app::rangedata::RangeData_Offset>)::core::convert::Into::into(list),(f32)::core::convert::Into::into(angle))
165 }
166 }
167
168 #[doc = "`.cctor()` overload"]
169 pub fn cctor() -> () {
170 unsafe {
171 ::unity::il2cpp_call!((::unity::module_base()+0x23770a0usize)as*mut u8,();
172 )
173 }
174 }
175}
176
177#[cfg(feature = "app-rangedata")]
178pub trait IRangeDataMethods: IRangeData {
179 #[doc = "`get_Value1()` overload"]
180 fn get_value1(self) -> i8 {
181 unsafe {
182 let __receiver = <RangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183 ::unity::il2cpp_call!((::unity::module_base()+0x23764a0usize)as*mut u8,i8;
184(RangeData)__receiver)
185 }
186 }
187 #[doc = "`set_Value1(i8)` overload"]
188 fn set_value1(self, value: impl ::core::convert::Into<i8>) -> () {
189 unsafe {
190 let __receiver = <RangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191 ::unity::il2cpp_call!((::unity::module_base()+0x23764b0usize)as*mut u8,();
192(RangeData)__receiver,(i8)::core::convert::Into::into(value))
193 }
194 }
195 #[doc = "`get_Value2()` overload"]
196 fn get_value2(self) -> i8 {
197 unsafe {
198 let __receiver = <RangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
199 ::unity::il2cpp_call!((::unity::module_base()+0x23764c0usize)as*mut u8,i8;
200(RangeData)__receiver)
201 }
202 }
203 #[doc = "`set_Value2(i8)` overload"]
204 fn set_value2(self, value: impl ::core::convert::Into<i8>) -> () {
205 unsafe {
206 let __receiver = <RangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207 ::unity::il2cpp_call!((::unity::module_base()+0x23764d0usize)as*mut u8,();
208(RangeData)__receiver,(i8)::core::convert::Into::into(value))
209 }
210 }
211 #[doc = "`get_Value3()` overload"]
212 fn get_value3(self) -> i8 {
213 unsafe {
214 let __receiver = <RangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
215 ::unity::il2cpp_call!((::unity::module_base()+0x23764e0usize)as*mut u8,i8;
216(RangeData)__receiver)
217 }
218 }
219 #[doc = "`set_Value3(i8)` overload"]
220 fn set_value3(self, value: impl ::core::convert::Into<i8>) -> () {
221 unsafe {
222 let __receiver = <RangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
223 ::unity::il2cpp_call!((::unity::module_base()+0x23764f0usize)as*mut u8,();
224(RangeData)__receiver,(i8)::core::convert::Into::into(value))
225 }
226 }
227 #[doc = "`get_Value4()` overload"]
228 fn get_value4(self) -> i8 {
229 unsafe {
230 let __receiver = <RangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
231 ::unity::il2cpp_call!((::unity::module_base()+0x2376500usize)as*mut u8,i8;
232(RangeData)__receiver)
233 }
234 }
235 #[doc = "`set_Value4(i8)` overload"]
236 fn set_value4(self, value: impl ::core::convert::Into<i8>) -> () {
237 unsafe {
238 let __receiver = <RangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
239 ::unity::il2cpp_call!((::unity::module_base()+0x2376510usize)as*mut u8,();
240(RangeData)__receiver,(i8)::core::convert::Into::into(value))
241 }
242 }
243 #[doc = "`get_Value5()` overload"]
244 fn get_value5(self) -> i8 {
245 unsafe {
246 let __receiver = <RangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
247 ::unity::il2cpp_call!((::unity::module_base()+0x2376520usize)as*mut u8,i8;
248(RangeData)__receiver)
249 }
250 }
251 #[doc = "`set_Value5(i8)` overload"]
252 fn set_value5(self, value: impl ::core::convert::Into<i8>) -> () {
253 unsafe {
254 let __receiver = <RangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
255 ::unity::il2cpp_call!((::unity::module_base()+0x2376530usize)as*mut u8,();
256(RangeData)__receiver,(i8)::core::convert::Into::into(value))
257 }
258 }
259 #[doc = "`get_Value6()` overload"]
260 fn get_value6(self) -> i8 {
261 unsafe {
262 let __receiver = <RangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
263 ::unity::il2cpp_call!((::unity::module_base()+0x2376540usize)as*mut u8,i8;
264(RangeData)__receiver)
265 }
266 }
267 #[doc = "`set_Value6(i8)` overload"]
268 fn set_value6(self, value: impl ::core::convert::Into<i8>) -> () {
269 unsafe {
270 let __receiver = <RangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
271 ::unity::il2cpp_call!((::unity::module_base()+0x2376550usize)as*mut u8,();
272(RangeData)__receiver,(i8)::core::convert::Into::into(value))
273 }
274 }
275 #[doc = "`get_Value7()` overload"]
276 fn get_value7(self) -> i8 {
277 unsafe {
278 let __receiver = <RangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
279 ::unity::il2cpp_call!((::unity::module_base()+0x2376560usize)as*mut u8,i8;
280(RangeData)__receiver)
281 }
282 }
283 #[doc = "`set_Value7(i8)` overload"]
284 fn set_value7(self, value: impl ::core::convert::Into<i8>) -> () {
285 unsafe {
286 let __receiver = <RangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
287 ::unity::il2cpp_call!((::unity::module_base()+0x2376570usize)as*mut u8,();
288(RangeData)__receiver,(i8)::core::convert::Into::into(value))
289 }
290 }
291 #[doc = "`get_Value8()` overload"]
292 fn get_value8(self) -> i8 {
293 unsafe {
294 let __receiver = <RangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
295 ::unity::il2cpp_call!((::unity::module_base()+0x2376580usize)as*mut u8,i8;
296(RangeData)__receiver)
297 }
298 }
299 #[doc = "`set_Value8(i8)` overload"]
300 fn set_value8(self, value: impl ::core::convert::Into<i8>) -> () {
301 unsafe {
302 let __receiver = <RangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
303 ::unity::il2cpp_call!((::unity::module_base()+0x2376590usize)as*mut u8,();
304(RangeData)__receiver,(i8)::core::convert::Into::into(value))
305 }
306 }
307 #[doc = "`OnBuild()` overload"]
308 fn on_build(self) -> () {
309 unsafe {
310 let __receiver = <RangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
311 {
312 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
313 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
314 panic!(
315 "unity: virtual slot {}
316 out of range (vtable len {}
317) on the runtime class behind {}
318 (method `{}
319`)",
320 4usize,
321 __vt.len(),
322 <RangeData as ::unity::ClassIdentity>::NAME,
323 "OnBuild",
324 )
325 });
326 let __inner: extern "C" fn(RangeData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
327 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
328 __inner(__receiver, __mi)
329 }
330 }
331 }
332 #[doc = "`.ctor()` overload"]
333 fn ctor(self) -> () {
334 unsafe {
335 let __receiver = <RangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
336 ::unity::il2cpp_call!((::unity::module_base()+0x2376ff0usize)as*mut u8,();
337(RangeData)__receiver)
338 }
339 }
340}
341
342#[cfg(feature = "app-rangedata")]
343impl<__T: IRangeData> IRangeDataMethods for __T {}
344
345#[cfg(feature = "app-rangedata")]
346impl RangeData {
347 pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
348 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
349 }
350
351 pub fn get_value1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
352 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
353 }
354
355 pub fn set_value1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
356 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
357 }
358
359 pub fn get_value2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
360 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
361 }
362
363 pub fn set_value2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
364 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
365 }
366
367 pub fn get_value3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
368 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
369 }
370
371 pub fn set_value3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
372 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
373 }
374
375 pub fn get_value4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
376 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
377 }
378
379 pub fn set_value4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
380 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
381 }
382
383 pub fn get_value5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
384 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
385 }
386
387 pub fn set_value5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
388 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
389 }
390
391 pub fn get_value6_method_info() -> &'static ::unity::il2cpp::MethodInfo {
392 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
393 }
394
395 pub fn set_value6_method_info() -> &'static ::unity::il2cpp::MethodInfo {
396 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
397 }
398
399 pub fn get_value7_method_info() -> &'static ::unity::il2cpp::MethodInfo {
400 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
401 }
402
403 pub fn set_value7_method_info() -> &'static ::unity::il2cpp::MethodInfo {
404 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
405 }
406
407 pub fn get_value8_method_info() -> &'static ::unity::il2cpp::MethodInfo {
408 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
409 }
410
411 pub fn set_value8_method_info() -> &'static ::unity::il2cpp::MethodInfo {
412 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
413 }
414
415 pub fn on_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
416 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
417 }
418
419 pub fn commit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
420 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
421 }
422
423 pub fn get_center_method_info() -> &'static ::unity::il2cpp::MethodInfo {
424 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
425 }
426
427 pub fn get_offsets_method_info() -> &'static ::unity::il2cpp::MethodInfo {
428 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
429 }
430
431 pub fn rotation_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
432 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
433 }
434
435 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
436 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
437 }
438
439 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
440 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
441 }
442}
443
444#[cfg(feature = "app-rangedata")]
445impl RangeData {
446 #[doc = "Direct (non-virtual) call to `RangeData`'s own `OnBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
447 pub unsafe fn on_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
448 let __mi = Self::on_build_method_info();
449 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
450 __inner(this.into(), ::core::option::Option::None)
451 }
452}
453
454#[cfg(feature = "app-rangedata")]
455impl RangeData {
456 #[doc = "`.ctor()` — no args"]
457 pub fn new() -> Self {
458 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
459 panic!(
460 "{}
461::{}
462 failed to instantiate",
463 ::core::stringify!(RangeData),
464 ::core::stringify!(new),
465 )
466 });
467 <Self as IRangeDataMethods>::ctor(this);
468 this
469 }
470}
471
472#[cfg(feature = "app-rangedata")]
473impl RangeData_Offset {
474 #[doc = "`.ctor(i32, i32, crate::app::rangedata::RangeData_Targets)` overload"]
475 pub fn ctor(
476 &mut self,
477 x: impl ::core::convert::Into<i32>,
478 z: impl ::core::convert::Into<i32>,
479 target: impl ::core::convert::Into<crate::app::rangedata::RangeData_Targets>,
480 ) -> () {
481 unsafe {
482 ::unity::il2cpp_call!((::unity::module_base()+0x1af1f20usize)as*mut u8,();
483(*mut RangeData_Offset)self as*mut RangeData_Offset,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(crate::app::rangedata::RangeData_Targets)::core::convert::Into::into(target))
484 }
485 }
486
487 #[doc = "`ToString()` overload"]
488 pub fn to_string(&mut self) -> ::unity::Il2CppString {
489 unsafe {
490 ::unity::il2cpp_call!((::unity::module_base()+0x1af1f30usize)as*mut u8, ::unity::Il2CppString;
491(*mut RangeData_Offset)self as*mut RangeData_Offset)
492 }
493 }
494}
495
496#[cfg(feature = "app-rangedata")]
497impl RangeData_Offset {
498 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
499 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
500 }
501
502 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
503 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
504 }
505}
506
507#[cfg(feature = "app-rangedata")]
508pub trait IRangeData_DirOffsetsMethods: IRangeData_DirOffsets {
509 #[doc = "`.ctor()` overload"]
510 fn ctor(self) -> () {
511 unsafe {
512 let __receiver = <RangeData_DirOffsets as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
513 ::unity::il2cpp_call!((::unity::module_base()+0x1af1a50usize)as*mut u8,();
514(RangeData_DirOffsets)__receiver)
515 }
516 }
517 #[doc = "`AddCenter(::unity::Il2CppString, crate::app::rangedata::RangeData_Targets)` overload"]
518 fn add_center(
519 self,
520 name: impl ::core::convert::Into<::unity::Il2CppString>,
521 target: impl ::core::convert::Into<crate::app::rangedata::RangeData_Targets>,
522 ) -> () {
523 unsafe {
524 let __receiver = <RangeData_DirOffsets as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
525 ::unity::il2cpp_call!((::unity::module_base()+0x1af1ce0usize)as*mut u8,();
526(RangeData_DirOffsets)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(crate::app::rangedata::RangeData_Targets)::core::convert::Into::into(target))
527 }
528 }
529 #[doc = "`GetCenter(::unity::Il2CppString)` overload"]
530 fn get_center(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::app::rangedata::RangeData_Targets {
531 unsafe {
532 let __receiver = <RangeData_DirOffsets as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
533 ::unity::il2cpp_call!((::unity::module_base()+0x1af1d50usize)as*mut u8,crate::app::rangedata::RangeData_Targets;
534(RangeData_DirOffsets)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
535 }
536 }
537 #[doc = "`GetOffest(crate::app::dir_2::Dir_Type)` overload"]
538 fn get_offest(
539 self,
540 dir: impl ::core::convert::Into<crate::app::dir_2::Dir_Type>,
541 ) -> crate::system::collections::generic::dictionary_2::Dictionary_2<
542 ::unity::Il2CppString,
543 crate::system::collections::generic::list_1::List_1<crate::app::rangedata::RangeData_Offset>,
544 > {
545 unsafe {
546 let __receiver = <RangeData_DirOffsets as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
547 ::unity::il2cpp_call!((::unity::module_base()+0x1af1db0usize)as*mut u8,crate::system::collections::generic::dictionary_2::Dictionary_2< ::unity::Il2CppString,crate::system::collections::generic::list_1::List_1<crate::app::rangedata::RangeData_Offset> > ;
548(RangeData_DirOffsets)__receiver,(crate::app::dir_2::Dir_Type)::core::convert::Into::into(dir))
549 }
550 }
551 #[doc = "`Clear()` overload"]
552 fn clear(self) -> () {
553 unsafe {
554 let __receiver = <RangeData_DirOffsets as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
555 ::unity::il2cpp_call!((::unity::module_base()+0x1af1e60usize)as*mut u8,();
556(RangeData_DirOffsets)__receiver)
557 }
558 }
559}
560
561#[cfg(feature = "app-rangedata")]
562impl<__T: IRangeData_DirOffsets> IRangeData_DirOffsetsMethods for __T {}
563
564#[cfg(feature = "app-rangedata")]
565impl RangeData_DirOffsets {
566 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
567 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
568 }
569
570 pub fn add_center_method_info() -> &'static ::unity::il2cpp::MethodInfo {
571 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
572 }
573
574 pub fn get_center_method_info() -> &'static ::unity::il2cpp::MethodInfo {
575 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
576 }
577
578 pub fn get_offest_method_info() -> &'static ::unity::il2cpp::MethodInfo {
579 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
580 }
581
582 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
583 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
584 }
585}
586
587#[cfg(feature = "app-rangedata")]
588impl RangeData_DirOffsets {
589 #[doc = "`.ctor()` — no args"]
590 pub fn new() -> Self {
591 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
592 panic!(
593 "{}
594::{}
595 failed to instantiate",
596 ::core::stringify!(RangeData_DirOffsets),
597 ::core::stringify!(new),
598 )
599 });
600 <Self as IRangeData_DirOffsetsMethods>::ctor(this);
601 this
602 }
603}
604
605#[cfg(feature = "app-rangedata")]
606#[doc(hidden)]
607pub mod prelude {
608 pub use super::{
609 IRangeData, IRangeDataMethods, IRangeData_DirOffsets, IRangeData_DirOffsetsMethods, RangeData, RangeData_DirOffsets, RangeData_Offset,
610 RangeData_Targets,
611 };
612 #[cfg(feature = "app-structbase")]
613 pub use crate::app::structbase::IStructBaseMethods;
614 #[cfg(feature = "app-structdataarray_1")]
615 pub use crate::app::structdataarray_1::IStructDataArray_1Methods;
616 #[cfg(feature = "app-structtemplate_1")]
617 pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
618 #[cfg(feature = "system-object")]
619 pub use crate::system::object::IObjectMethods;
620 #[cfg(feature = "system-enum")]
621 pub use crate::system::r#enum::IEnumMethods;
622 #[cfg(feature = "system-valuetype")]
623 pub use crate::system::valuetype::IValueTypeMethods;
624 pub use crate::{
625 app::{structbase::IStructBase, structdataarray_1::IStructDataArray_1, structtemplate_1::IStructTemplate_1},
626 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
627 };
628}