engage/generated/unity_engine/
propertyname.rs1#[cfg(feature = "unity_engine-propertyname-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/propertyname/PropertyName.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct PropertyName {
17 pub id: i32,
18 }
19 impl ::unity::ClassIdentity for PropertyName {
20 const NAME: &'static str = "PropertyName";
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 PropertyName {
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-propertyname-types")]
36pub use __types::*;
37
38#[cfg(feature = "unity_engine-propertyname")]
39impl PropertyName {
40 #[doc = "`op_Equality(crate::unity_engine::propertyname::PropertyName, crate::unity_engine::propertyname::PropertyName)` overload"]
41 pub fn op_equality(
42 lhs: impl ::core::convert::Into<crate::unity_engine::propertyname::PropertyName>,
43 rhs: impl ::core::convert::Into<crate::unity_engine::propertyname::PropertyName>,
44 ) -> bool {
45 unsafe {
46 ::unity::il2cpp_call!((::unity::module_base()+0x32f8d70usize)as*mut u8,bool;
47(crate::unity_engine::propertyname::PropertyName)::core::convert::Into::into(lhs),(crate::unity_engine::propertyname::PropertyName)::core::convert::Into::into(rhs))
48 }
49 }
50}
51
52#[cfg(feature = "unity_engine-propertyname")]
53impl PropertyName {
54 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
55 pub fn ctor(&mut self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
56 unsafe {
57 ::unity::il2cpp_call!((::unity::module_base()+0x32f8ca0usize)as*mut u8,();
58(*mut PropertyName)self as*mut PropertyName,(::unity::Il2CppString)::core::convert::Into::into(name))
59 }
60 }
61
62 #[doc = "`.ctor(crate::unity_engine::propertyname::PropertyName)` overload"]
63 pub fn ctor_2(&mut self, other: impl ::core::convert::Into<crate::unity_engine::propertyname::PropertyName>) -> () {
64 unsafe {
65 ::unity::il2cpp_call!((::unity::module_base()+0x32f8d60usize)as*mut u8,();
66(*mut PropertyName)self as*mut PropertyName,(crate::unity_engine::propertyname::PropertyName)::core::convert::Into::into(other))
67 }
68 }
69
70 #[doc = "`GetHashCode()` overload"]
71 pub fn get_hash_code(&mut self) -> i32 {
72 unsafe {
73 ::unity::il2cpp_call!((::unity::module_base()+0x32f8d80usize)as*mut u8,i32;
74(*mut PropertyName)self as*mut PropertyName)
75 }
76 }
77
78 #[doc = "`Equals(crate::system::object::Object)` overload"]
79 pub fn equals(&mut self, other: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
80 unsafe {
81 ::unity::il2cpp_call!((::unity::module_base()+0x32f8d90usize)as*mut u8,bool;
82(*mut PropertyName)self as*mut PropertyName,(crate::system::object::Object)::core::convert::Into::into(other))
83 }
84 }
85
86 #[doc = "`Equals(crate::unity_engine::propertyname::PropertyName)` overload"]
87 pub fn equals_2(&mut self, other: impl ::core::convert::Into<crate::unity_engine::propertyname::PropertyName>) -> bool {
88 unsafe {
89 ::unity::il2cpp_call!((::unity::module_base()+0x32f8e20usize)as*mut u8,bool;
90(*mut PropertyName)self as*mut PropertyName,(crate::unity_engine::propertyname::PropertyName)::core::convert::Into::into(other))
91 }
92 }
93
94 #[doc = "`ToString()` overload"]
95 pub fn to_string(&mut self) -> ::unity::Il2CppString {
96 unsafe {
97 ::unity::il2cpp_call!((::unity::module_base()+0x32f8e30usize)as*mut u8, ::unity::Il2CppString;
98(*mut PropertyName)self as*mut PropertyName)
99 }
100 }
101}
102
103#[cfg(feature = "unity_engine-propertyname")]
104impl PropertyName {
105 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
107 }
108
109 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
111 }
112
113 pub fn op_equality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
115 }
116
117 pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
119 }
120
121 pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
123 }
124
125 pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
126 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
127 }
128
129 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
131 }
132}
133
134#[cfg(feature = "unity_engine-propertyname")]
135#[doc(hidden)]
136pub mod prelude {
137 pub use super::PropertyName;
138 #[cfg(feature = "system-object")]
139 pub use crate::system::object::IObjectMethods;
140 #[cfg(feature = "system-valuetype")]
141 pub use crate::system::valuetype::IValueTypeMethods;
142 pub use crate::system::{object::IObject, valuetype::IValueType};
143}