Skip to main content

engage/generated/unity_engine/
boundsint.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-boundsint-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/boundsint/BoundsInt.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct BoundsInt {
17        pub m_position: crate::unity_engine::vector3int::Vector3Int,
18        pub m_size: crate::unity_engine::vector3int::Vector3Int,
19    }
20    impl ::unity::ClassIdentity for BoundsInt {
21        const NAME: &'static str = "BoundsInt";
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 BoundsInt {
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-boundsint-types")]
37pub use __types::*;
38
39#[cfg(feature = "unity_engine-boundsint")]
40impl BoundsInt {
41    #[doc = "`get_position()` overload"]
42    pub fn get_position(&mut self) -> crate::unity_engine::vector3int::Vector3Int {
43        unsafe {
44            ::unity::il2cpp_call!((::unity::module_base()+0x2c38b60usize)as*mut u8,crate::unity_engine::vector3int::Vector3Int;
45(*mut BoundsInt)self as*mut BoundsInt)
46        }
47    }
48
49    #[doc = "`get_size()` overload"]
50    pub fn get_size(&mut self) -> crate::unity_engine::vector3int::Vector3Int {
51        unsafe {
52            ::unity::il2cpp_call!((::unity::module_base()+0x2c38b70usize)as*mut u8,crate::unity_engine::vector3int::Vector3Int;
53(*mut BoundsInt)self as*mut BoundsInt)
54        }
55    }
56
57    #[doc = "`ToString()` overload"]
58    pub fn to_string(&mut self) -> ::unity::Il2CppString {
59        unsafe {
60            ::unity::il2cpp_call!((::unity::module_base()+0x2c38b80usize)as*mut u8, ::unity::Il2CppString;
61(*mut BoundsInt)self as*mut BoundsInt)
62        }
63    }
64
65    #[doc = "`Equals(crate::system::object::Object)` overload"]
66    pub fn equals(&mut self, other: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
67        unsafe {
68            ::unity::il2cpp_call!((::unity::module_base()+0x2c38d50usize)as*mut u8,bool;
69(*mut BoundsInt)self as*mut BoundsInt,(crate::system::object::Object)::core::convert::Into::into(other))
70        }
71    }
72
73    #[doc = "`Equals(crate::unity_engine::boundsint::BoundsInt)` overload"]
74    pub fn equals_2(&mut self, other: impl ::core::convert::Into<crate::unity_engine::boundsint::BoundsInt>) -> bool {
75        unsafe {
76            ::unity::il2cpp_call!((::unity::module_base()+0x2c38df0usize)as*mut u8,bool;
77(*mut BoundsInt)self as*mut BoundsInt,(crate::unity_engine::boundsint::BoundsInt)::core::convert::Into::into(other))
78        }
79    }
80
81    #[doc = "`GetHashCode()` overload"]
82    pub fn get_hash_code(&mut self) -> i32 {
83        unsafe {
84            ::unity::il2cpp_call!((::unity::module_base()+0x2c38f40usize)as*mut u8,i32;
85(*mut BoundsInt)self as*mut BoundsInt)
86        }
87    }
88}
89
90#[cfg(feature = "unity_engine-boundsint")]
91impl BoundsInt {
92    pub fn get_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
93        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
94    }
95
96    pub fn get_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
97        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
98    }
99
100    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
102    }
103
104    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
106    }
107
108    pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
110    }
111
112    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
113        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
114    }
115}
116
117#[cfg(feature = "unity_engine-boundsint")]
118#[doc(hidden)]
119pub mod prelude {
120    pub use super::BoundsInt;
121    #[cfg(feature = "system-object")]
122    pub use crate::system::object::IObjectMethods;
123    #[cfg(feature = "system-valuetype")]
124    pub use crate::system::valuetype::IValueTypeMethods;
125    pub use crate::system::{object::IObject, valuetype::IValueType};
126}