engage/generated/unity_engine/
rangeint.rs1#[cfg(feature = "unity_engine-rangeint-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/unity_engine/rangeint/RangeInt.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct RangeInt {
17 pub start: i32,
18 pub length: i32,
19 }
20 impl ::unity::ClassIdentity for RangeInt {
21 const NAME: &'static str = "RangeInt";
22 const NAMESPACE: &'static str = "UnityEngine";
23
24 fn class() -> ::unity::Class {
25 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27 }
28 }
29 impl ::unity::IlType for RangeInt {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34}
35
36#[cfg(feature = "unity_engine-rangeint-types")]
37pub use __types::*;
38
39#[cfg(feature = "unity_engine-rangeint")]
40impl RangeInt {
41 #[doc = "`get_end()` overload"]
42 pub fn get_end(&mut self) -> i32 {
43 unsafe {
44 ::unity::il2cpp_call!((::unity::module_base()+0x2f79e70usize)as*mut u8,i32;
45(*mut RangeInt)self as*mut RangeInt)
46 }
47 }
48
49 #[doc = "`.ctor(i32, i32)` overload"]
50 pub fn ctor(&mut self, start: impl ::core::convert::Into<i32>, length: impl ::core::convert::Into<i32>) -> () {
51 unsafe {
52 ::unity::il2cpp_call!((::unity::module_base()+0x2f79e80usize)as*mut u8,();
53(*mut RangeInt)self as*mut RangeInt,(i32)::core::convert::Into::into(start),(i32)::core::convert::Into::into(length))
54 }
55 }
56}
57
58#[cfg(feature = "unity_engine-rangeint")]
59impl RangeInt {
60 pub fn get_end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
61 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
62 }
63
64 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
65 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
66 }
67}
68
69#[cfg(feature = "unity_engine-rangeint")]
70#[doc(hidden)]
71pub mod prelude {
72 pub use super::RangeInt;
73 #[cfg(feature = "system-object")]
74 pub use crate::system::object::IObjectMethods;
75 #[cfg(feature = "system-valuetype")]
76 pub use crate::system::valuetype::IValueTypeMethods;
77 pub use crate::system::{object::IObject, valuetype::IValueType};
78}