Skip to main content

engage/generated/app/
maprange.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-maprange-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/maprange/MapRange.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct MapRange {
17        pub x: i32,
18        pub z: i32,
19        pub range: i32,
20    }
21    impl ::unity::ClassIdentity for MapRange {
22        const NAME: &'static str = "MapRange";
23        const NAMESPACE: &'static str = "App";
24
25        fn class() -> ::unity::Class {
26            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
27            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
28        }
29    }
30    impl ::unity::IlType for MapRange {
31        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
32            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
33        }
34    }
35}
36
37#[cfg(feature = "app-maprange-types")]
38pub use __types::*;
39
40#[cfg(feature = "app-maprange")]
41impl MapRange {
42    #[doc = "`.ctor(crate::app::maprange::MapRange)` overload"]
43    pub fn ctor(&mut self, other: impl ::core::convert::Into<crate::app::maprange::MapRange>) -> () {
44        unsafe {
45            ::unity::il2cpp_call!((::unity::module_base()+0x235ce00usize)as*mut u8,();
46(*mut MapRange)self as*mut MapRange,(crate::app::maprange::MapRange)::core::convert::Into::into(other))
47        }
48    }
49
50    #[doc = "`.ctor(i32, i32, i32)` overload"]
51    pub fn ctor_2(&mut self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>, range: impl ::core::convert::Into<i32>) -> () {
52        unsafe {
53            ::unity::il2cpp_call!((::unity::module_base()+0x235ce10usize)as*mut u8,();
54(*mut MapRange)self as*mut MapRange,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(i32)::core::convert::Into::into(range))
55        }
56    }
57
58    #[doc = "`Dispose()` overload"]
59    pub fn dispose(&mut self) -> () {
60        unsafe {
61            ::unity::il2cpp_call!((::unity::module_base()+0x235ce20usize)as*mut u8,();
62(*mut MapRange)self as*mut MapRange)
63        }
64    }
65
66    #[doc = "`ToString()` overload"]
67    pub fn to_string(&mut self) -> ::unity::Il2CppString {
68        unsafe {
69            ::unity::il2cpp_call!((::unity::module_base()+0x235ce30usize)as*mut u8, ::unity::Il2CppString;
70(*mut MapRange)self as*mut MapRange)
71        }
72    }
73}
74
75#[cfg(feature = "app-maprange")]
76impl MapRange {
77    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
78        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
79    }
80
81    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
82        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
83    }
84
85    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
86        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
87    }
88
89    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
90        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
91    }
92}
93
94#[cfg(feature = "app-maprange")]
95#[doc(hidden)]
96pub mod prelude {
97    pub use super::MapRange;
98    #[cfg(feature = "system-object")]
99    pub use crate::system::object::IObjectMethods;
100    #[cfg(feature = "system-valuetype")]
101    pub use crate::system::valuetype::IValueTypeMethods;
102    pub use crate::system::{object::IObject, valuetype::IValueType};
103}