engage/generated/unity_engine/rendering/
sortinglayerrange.rs1#[cfg(feature = "unity_engine-rendering-sortinglayerrange-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/rendering/sortinglayerrange/SortingLayerRange.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct SortingLayerRange {
17 pub m_lower_bound: i16,
18 pub m_upper_bound: i16,
19 }
20 impl ::unity::ClassIdentity for SortingLayerRange {
21 const NAME: &'static str = "SortingLayerRange";
22 const NAMESPACE: &'static str = "UnityEngine.Rendering";
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 SortingLayerRange {
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-rendering-sortinglayerrange-types")]
37pub use __types::*;
38
39#[cfg(feature = "unity_engine-rendering-sortinglayerrange")]
40impl SortingLayerRange {
41 #[doc = "`get_all()` overload"]
42 pub fn get_all() -> crate::unity_engine::rendering::sortinglayerrange::SortingLayerRange {
43 unsafe {
44 ::unity::il2cpp_call!((::unity::module_base()+0x2f947d0usize)as*mut u8,crate::unity_engine::rendering::sortinglayerrange::SortingLayerRange;
45 )
46 }
47 }
48}
49
50#[cfg(feature = "unity_engine-rendering-sortinglayerrange")]
51impl SortingLayerRange {
52 #[doc = "`.ctor(i16, i16)` overload"]
53 pub fn ctor(&mut self, lower_bound: impl ::core::convert::Into<i16>, upper_bound: impl ::core::convert::Into<i16>) -> () {
54 unsafe {
55 ::unity::il2cpp_call!((::unity::module_base()+0x2f947c0usize)as*mut u8,();
56(*mut SortingLayerRange)self as*mut SortingLayerRange,(i16)::core::convert::Into::into(lower_bound),(i16)::core::convert::Into::into(upper_bound))
57 }
58 }
59
60 #[doc = "`Equals(crate::unity_engine::rendering::sortinglayerrange::SortingLayerRange)` overload"]
61 pub fn equals(&mut self, other: impl ::core::convert::Into<crate::unity_engine::rendering::sortinglayerrange::SortingLayerRange>) -> bool {
62 unsafe {
63 ::unity::il2cpp_call!((::unity::module_base()+0x2f947e0usize)as*mut u8,bool;
64(*mut SortingLayerRange)self as*mut SortingLayerRange,(crate::unity_engine::rendering::sortinglayerrange::SortingLayerRange)::core::convert::Into::into(other))
65 }
66 }
67
68 #[doc = "`Equals(crate::system::object::Object)` overload"]
69 pub fn equals_2(&mut self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
70 unsafe {
71 ::unity::il2cpp_call!((::unity::module_base()+0x2f94810usize)as*mut u8,bool;
72(*mut SortingLayerRange)self as*mut SortingLayerRange,(crate::system::object::Object)::core::convert::Into::into(obj))
73 }
74 }
75
76 #[doc = "`GetHashCode()` overload"]
77 pub fn get_hash_code(&mut self) -> i32 {
78 unsafe {
79 ::unity::il2cpp_call!((::unity::module_base()+0x2f948b0usize)as*mut u8,i32;
80(*mut SortingLayerRange)self as*mut SortingLayerRange)
81 }
82 }
83}
84
85#[cfg(feature = "unity_engine-rendering-sortinglayerrange")]
86impl SortingLayerRange {
87 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
88 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
89 }
90
91 pub fn get_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
93 }
94
95 pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
96 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
97 }
98
99 pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
101 }
102
103 pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
105 }
106}
107
108#[cfg(feature = "unity_engine-rendering-sortinglayerrange")]
109#[doc(hidden)]
110pub mod prelude {
111 pub use super::SortingLayerRange;
112 #[cfg(feature = "system-object")]
113 pub use crate::system::object::IObjectMethods;
114 #[cfg(feature = "system-valuetype")]
115 pub use crate::system::valuetype::IValueTypeMethods;
116 pub use crate::system::{object::IObject, valuetype::IValueType};
117}