engage/generated/app/
propertyinfoitem.rs1#[cfg(feature = "app-propertyinfoitem-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 memberinfoitem_1::{IMemberInfoItem_1, MemberInfoItem_1},
11 menuitem::{IMenuItem, MenuItem},
12 },
13 system::object::{IObject, Object},
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/propertyinfoitem/PropertyInfoItem.md"))]
17 #[::unity::class(namespace = "App", name = "PropertyInfoItem")]
18 #[parent(crate::app::memberinfoitem_1::MemberInfoItem_1<crate::system::reflection::propertyinfo::PropertyInfo>)]
19 pub struct PropertyInfoItem {}
20}
21
22#[cfg(feature = "app-propertyinfoitem-types")]
23pub use __types::*;
24
25#[cfg(feature = "app-propertyinfoitem")]
26pub trait IPropertyInfoItemMethods: IPropertyInfoItem {
27 #[doc = "`.ctor(crate::system::object::Object, crate::system::reflection::propertyinfo::PropertyInfo)` overload"]
28 fn ctor(
29 self,
30 obj: impl ::core::convert::Into<crate::system::object::Object>,
31 info: impl ::core::convert::Into<crate::system::reflection::propertyinfo::PropertyInfo>,
32 ) -> () {
33 unsafe {
34 let __receiver = <PropertyInfoItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35 ::unity::il2cpp_call!((::unity::module_base()+0x2c08150usize)as*mut u8,();
36(PropertyInfoItem)__receiver,(crate::system::object::Object)::core::convert::Into::into(obj),(crate::system::reflection::propertyinfo::PropertyInfo)::core::convert::Into::into(info))
37 }
38 }
39 #[doc = "`GetValueType()` overload"]
40 fn get_value_type(self) -> ::unity::SystemType {
41 unsafe {
42 let __receiver = <PropertyInfoItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 {
44 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
45 let __vi = *__vt.get(74usize).unwrap_or_else(|| {
46 panic!(
47 "unity: virtual slot {}
48 out of range (vtable len {}
49) on the runtime class behind {}
50 (method `{}
51`)",
52 74usize,
53 __vt.len(),
54 <PropertyInfoItem as ::unity::ClassIdentity>::NAME,
55 "GetValueType",
56 )
57 });
58 let __inner: extern "C" fn(PropertyInfoItem, ::unity::OptionalMethod) -> ::unity::SystemType =
59 ::core::mem::transmute(__vi.method_ptr);
60 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
61 __inner(__receiver, __mi)
62 }
63 }
64 }
65 #[doc = "`GetValue()` overload"]
66 fn get_value(self) -> crate::system::object::Object {
67 unsafe {
68 let __receiver = <PropertyInfoItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
69 {
70 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
71 let __vi = *__vt.get(72usize).unwrap_or_else(|| {
72 panic!(
73 "unity: virtual slot {}
74 out of range (vtable len {}
75) on the runtime class behind {}
76 (method `{}
77`)",
78 72usize,
79 __vt.len(),
80 <PropertyInfoItem as ::unity::ClassIdentity>::NAME,
81 "GetValue",
82 )
83 });
84 let __inner: extern "C" fn(PropertyInfoItem, ::unity::OptionalMethod) -> crate::system::object::Object =
85 ::core::mem::transmute(__vi.method_ptr);
86 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
87 __inner(__receiver, __mi)
88 }
89 }
90 }
91 #[doc = "`SetValue(crate::system::object::Object)` overload"]
92 fn set_value(self, value: impl ::core::convert::Into<crate::system::object::Object>) -> () {
93 unsafe {
94 let __receiver = <PropertyInfoItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95 {
96 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
97 let __vi = *__vt.get(73usize).unwrap_or_else(|| {
98 panic!(
99 "unity: virtual slot {}
100 out of range (vtable len {}
101) on the runtime class behind {}
102 (method `{}
103`)",
104 73usize,
105 __vt.len(),
106 <PropertyInfoItem as ::unity::ClassIdentity>::NAME,
107 "SetValue",
108 )
109 });
110 let __inner: extern "C" fn(PropertyInfoItem, crate::system::object::Object, ::unity::OptionalMethod) -> () =
111 ::core::mem::transmute(__vi.method_ptr);
112 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
113 __inner(__receiver, ::core::convert::Into::into(value), __mi)
114 }
115 }
116 }
117}
118
119#[cfg(feature = "app-propertyinfoitem")]
120impl<__T: IPropertyInfoItem> IPropertyInfoItemMethods for __T {}
121
122#[cfg(feature = "app-propertyinfoitem")]
123impl PropertyInfoItem {
124 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
125 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
126 }
127
128 pub fn get_value_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
129 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
130 }
131
132 pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
133 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
134 }
135
136 pub fn set_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
138 }
139}
140
141#[cfg(feature = "app-propertyinfoitem")]
142impl PropertyInfoItem {
143 #[doc = "Direct (non-virtual) call to `PropertyInfoItem`'s own `GetValueType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
144 pub unsafe fn get_value_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::SystemType {
145 let __mi = Self::get_value_type_method_info();
146 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__mi.method_ptr);
147 __inner(this.into(), ::core::option::Option::None)
148 }
149
150 #[doc = "Direct (non-virtual) call to `PropertyInfoItem`'s own `GetValue`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
151 pub unsafe fn get_value(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::object::Object {
152 let __mi = Self::get_value_method_info();
153 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::object::Object =
154 ::core::mem::transmute(__mi.method_ptr);
155 __inner(this.into(), ::core::option::Option::None)
156 }
157
158 #[doc = "Direct (non-virtual) call to `PropertyInfoItem`'s own `SetValue`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
159 pub unsafe fn set_value(this: impl ::core::convert::Into<::unity::IlInstance>, value: crate::system::object::Object) -> () {
160 let __mi = Self::set_value_method_info();
161 let __inner: extern "C" fn(::unity::IlInstance, crate::system::object::Object, ::unity::OptionalMethod) -> () =
162 ::core::mem::transmute(__mi.method_ptr);
163 __inner(this.into(), value, ::core::option::Option::None)
164 }
165}
166
167#[cfg(feature = "app-propertyinfoitem")]
168impl PropertyInfoItem {
169 #[doc = "`.ctor(crate::system::object::Object, crate::system::reflection::propertyinfo::PropertyInfo)` — overload selector"]
170 pub fn new(obj: crate::system::object::Object, info: crate::system::reflection::propertyinfo::PropertyInfo) -> Self {
171 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
172 panic!(
173 "{}
174::{}
175 failed to instantiate",
176 ::core::stringify!(PropertyInfoItem),
177 ::core::stringify!(new),
178 )
179 });
180 <Self as IPropertyInfoItemMethods>::ctor(this, obj, info);
181 this
182 }
183}
184
185#[cfg(feature = "app-propertyinfoitem")]
186#[doc(hidden)]
187pub mod prelude {
188 pub use super::{IPropertyInfoItem, IPropertyInfoItemMethods, PropertyInfoItem};
189 #[cfg(feature = "app-memberinfoitem_1")]
190 pub use crate::app::memberinfoitem_1::IMemberInfoItem_1Methods;
191 #[cfg(feature = "app-menuitem")]
192 pub use crate::app::menuitem::IMenuItemMethods;
193 #[cfg(feature = "system-object")]
194 pub use crate::system::object::IObjectMethods;
195 pub use crate::{
196 app::{memberinfoitem_1::IMemberInfoItem_1, menuitem::IMenuItem},
197 system::object::IObject,
198 };
199}