Skip to main content

engage/generated/app/
roundvalue.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-roundvalue-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/roundvalue/RoundValue.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct RoundValue {
17        pub m_min: i32,
18        pub m_max: i32,
19        pub m_value: i32,
20    }
21    impl ::unity::ClassIdentity for RoundValue {
22        const NAME: &'static str = "RoundValue";
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 RoundValue {
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-roundvalue-types")]
38pub use __types::*;
39
40#[cfg(feature = "app-roundvalue")]
41impl RoundValue {
42    #[doc = "`op_Implicit(crate::app::roundvalue::RoundValue)` overload"]
43    pub fn op_implicit(value: impl ::core::convert::Into<crate::app::roundvalue::RoundValue>) -> i32 {
44        unsafe {
45            ::unity::il2cpp_call!((::unity::module_base()+0x1ec33a0usize)as*mut u8,i32;
46(crate::app::roundvalue::RoundValue)::core::convert::Into::into(value))
47        }
48    }
49}
50
51#[cfg(feature = "app-roundvalue")]
52impl RoundValue {
53    #[doc = "`.ctor(i32)` overload"]
54    pub fn ctor(&mut self, max: impl ::core::convert::Into<i32>) -> () {
55        unsafe {
56            ::unity::il2cpp_call!((::unity::module_base()+0x1ec31c0usize)as*mut u8,();
57(*mut RoundValue)self as*mut RoundValue,(i32)::core::convert::Into::into(max))
58        }
59    }
60
61    #[doc = "`.ctor(i32, i32)` overload"]
62    pub fn ctor_2(&mut self, max: impl ::core::convert::Into<i32>, value: impl ::core::convert::Into<i32>) -> () {
63        unsafe {
64            ::unity::il2cpp_call!((::unity::module_base()+0x1ec31d0usize)as*mut u8,();
65(*mut RoundValue)self as*mut RoundValue,(i32)::core::convert::Into::into(max),(i32)::core::convert::Into::into(value))
66        }
67    }
68
69    #[doc = "`.ctor(i32, i32, i32)` overload"]
70    pub fn ctor_3(
71        &mut self,
72        min: impl ::core::convert::Into<i32>,
73        max: impl ::core::convert::Into<i32>,
74        value: impl ::core::convert::Into<i32>,
75    ) -> () {
76        unsafe {
77            ::unity::il2cpp_call!((::unity::module_base()+0x1ec31e0usize)as*mut u8,();
78(*mut RoundValue)self as*mut RoundValue,(i32)::core::convert::Into::into(min),(i32)::core::convert::Into::into(max),(i32)::core::convert::Into::into(value))
79        }
80    }
81
82    #[doc = "`Dispose()` overload"]
83    pub fn dispose(&mut self) -> () {
84        unsafe {
85            ::unity::il2cpp_call!((::unity::module_base()+0x1ec31f0usize)as*mut u8,();
86(*mut RoundValue)self as*mut RoundValue)
87        }
88    }
89
90    #[doc = "`Inc()` overload"]
91    pub fn inc(&mut self) -> () {
92        unsafe {
93            ::unity::il2cpp_call!((::unity::module_base()+0x1ec3200usize)as*mut u8,();
94(*mut RoundValue)self as*mut RoundValue)
95        }
96    }
97
98    #[doc = "`Dec()` overload"]
99    pub fn dec(&mut self) -> () {
100        unsafe {
101            ::unity::il2cpp_call!((::unity::module_base()+0x1ec32e0usize)as*mut u8,();
102(*mut RoundValue)self as*mut RoundValue)
103        }
104    }
105
106    #[doc = "`Add(i32)` overload"]
107    pub fn add(&mut self, addend: impl ::core::convert::Into<i32>) -> () {
108        unsafe {
109            ::unity::il2cpp_call!((::unity::module_base()+0x1ec3240usize)as*mut u8,();
110(*mut RoundValue)self as*mut RoundValue,(i32)::core::convert::Into::into(addend))
111        }
112    }
113
114    #[doc = "`Sub(i32)` overload"]
115    pub fn sub(&mut self, subtrahend: impl ::core::convert::Into<i32>) -> () {
116        unsafe {
117            ::unity::il2cpp_call!((::unity::module_base()+0x1ec3320usize)as*mut u8,();
118(*mut RoundValue)self as*mut RoundValue,(i32)::core::convert::Into::into(subtrahend))
119        }
120    }
121
122    #[doc = "`get_Value()` overload"]
123    pub fn get_value(&mut self) -> i32 {
124        unsafe {
125            ::unity::il2cpp_call!((::unity::module_base()+0x1ec3370usize)as*mut u8,i32;
126(*mut RoundValue)self as*mut RoundValue)
127        }
128    }
129
130    #[doc = "`get_Min()` overload"]
131    pub fn get_min(&mut self) -> i32 {
132        unsafe {
133            ::unity::il2cpp_call!((::unity::module_base()+0x1ec3380usize)as*mut u8,i32;
134(*mut RoundValue)self as*mut RoundValue)
135        }
136    }
137
138    #[doc = "`get_Max()` overload"]
139    pub fn get_max(&mut self) -> i32 {
140        unsafe {
141            ::unity::il2cpp_call!((::unity::module_base()+0x1ec3390usize)as*mut u8,i32;
142(*mut RoundValue)self as*mut RoundValue)
143        }
144    }
145}
146
147#[cfg(feature = "app-roundvalue")]
148impl RoundValue {
149    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
151    }
152
153    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
155    }
156
157    pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
159    }
160
161    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
163    }
164
165    pub fn inc_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
167    }
168
169    pub fn dec_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
171    }
172
173    pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
175    }
176
177    pub fn sub_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
179    }
180
181    pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
183    }
184
185    pub fn get_min_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
187    }
188
189    pub fn get_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
191    }
192
193    pub fn op_implicit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
195    }
196}
197
198#[cfg(feature = "app-roundvalue")]
199#[doc(hidden)]
200pub mod prelude {
201    pub use super::RoundValue;
202    #[cfg(feature = "system-object")]
203    pub use crate::system::object::IObjectMethods;
204    #[cfg(feature = "system-valuetype")]
205    pub use crate::system::valuetype::IValueTypeMethods;
206    pub use crate::system::{object::IObject, valuetype::IValueType};
207}