engage/generated/unity_engine/
sortinglayer.rs1#[cfg(feature = "unity_engine-sortinglayer-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/sortinglayer/SortingLayer.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct SortingLayer {
17 pub m_id: i32,
18 }
19 impl ::unity::ClassIdentity for SortingLayer {
20 const NAME: &'static str = "SortingLayer";
21 const NAMESPACE: &'static str = "UnityEngine";
22
23 fn class() -> ::unity::Class {
24 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
25 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
26 }
27 }
28 impl ::unity::IlType for SortingLayer {
29 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
30 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
31 }
32 }
33}
34
35#[cfg(feature = "unity_engine-sortinglayer-types")]
36pub use __types::*;
37
38#[cfg(feature = "unity_engine-sortinglayer")]
39impl SortingLayer {
40 #[doc = "`get_layers()` overload"]
41 pub fn get_layers() -> ::unity::Array<crate::unity_engine::sortinglayer::SortingLayer> {
42 unsafe {
43 ::unity::il2cpp_call!((::unity::module_base()+0x2f94660usize)as*mut u8, ::unity::Array<crate::unity_engine::sortinglayer::SortingLayer> ;
44 )
45 }
46 }
47
48 #[doc = "`GetSortingLayerIDsInternal()` overload"]
49 pub fn get_sorting_layer_i_ds_internal() -> ::unity::Array<i32> {
50 unsafe {
51 ::unity::il2cpp_call!((::unity::module_base()+0x2f94730usize)as*mut u8, ::unity::Array<i32> ;
52 )
53 }
54 }
55
56 #[doc = "`GetLayerValueFromID(i32)` overload"]
57 pub fn get_layer_value_from_id(id: impl ::core::convert::Into<i32>) -> i32 {
58 unsafe {
59 ::unity::il2cpp_call!((::unity::module_base()+0x2f94610usize)as*mut u8,i32;
60(i32)::core::convert::Into::into(id))
61 }
62 }
63
64 #[doc = "`IDToName(i32)` overload"]
65 pub fn id_to_name(id: impl ::core::convert::Into<i32>) -> ::unity::Il2CppString {
66 unsafe {
67 ::unity::il2cpp_call!((::unity::module_base()+0x2f94770usize)as*mut u8, ::unity::Il2CppString;
68(i32)::core::convert::Into::into(id))
69 }
70 }
71}
72
73#[cfg(feature = "unity_engine-sortinglayer")]
74impl SortingLayer {
75 #[doc = "`get_id()` overload"]
76 pub fn get_id(&mut self) -> i32 {
77 unsafe {
78 ::unity::il2cpp_call!((::unity::module_base()+0x2f945b0usize)as*mut u8,i32;
79(*mut SortingLayer)self as*mut SortingLayer)
80 }
81 }
82
83 #[doc = "`get_value()` overload"]
84 pub fn get_value(&mut self) -> i32 {
85 unsafe {
86 ::unity::il2cpp_call!((::unity::module_base()+0x2f945c0usize)as*mut u8,i32;
87(*mut SortingLayer)self as*mut SortingLayer)
88 }
89 }
90}
91
92#[cfg(feature = "unity_engine-sortinglayer")]
93impl SortingLayer {
94 pub fn get_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
95 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
96 }
97
98 pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
100 }
101
102 pub fn get_layers_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
104 }
105
106 pub fn get_sorting_layer_i_ds_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
108 }
109
110 pub fn get_layer_value_from_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
111 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
112 }
113
114 pub fn id_to_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
116 }
117}
118
119#[cfg(feature = "unity_engine-sortinglayer")]
120#[doc(hidden)]
121pub mod prelude {
122 pub use super::SortingLayer;
123 #[cfg(feature = "system-object")]
124 pub use crate::system::object::IObjectMethods;
125 #[cfg(feature = "system-valuetype")]
126 pub use crate::system::valuetype::IValueTypeMethods;
127 pub use crate::system::{object::IObject, valuetype::IValueType};
128}