engage/generated/app/
profilecardcommentindexmenuitem.rs1#[cfg(feature = "app-profilecardcommentindexmenuitem-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::basicmenuitem::{BasicMenuItem, IBasicMenuItem},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/profilecardcommentindexmenuitem/ProfileCardCommentIndexMenuItem.md"))]
14 #[::unity::class(namespace = "App", name = "ProfileCardCommentIndexMenuItem")]
15 #[parent(crate::app::basicmenuitem::BasicMenuItem)]
16 pub struct ProfileCardCommentIndexMenuItem {
17 #[offset(112)]
18 #[rename(name = "m_DecideEventHandler")]
19 pub m_decide_event_handler: crate::app::profilecardcommentindexmenu::ProfileCardCommentIndexMenu_DecideEventHandler,
20 }
21}
22
23#[cfg(feature = "app-profilecardcommentindexmenuitem-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-profilecardcommentindexmenuitem")]
27pub trait IProfileCardCommentIndexMenuItemMethods: IProfileCardCommentIndexMenuItem {
28 #[doc = "`get_m_Mid()` overload"]
29 fn get_m_mid(self) -> ::unity::Il2CppString {
30 unsafe {
31 let __receiver =
32 <ProfileCardCommentIndexMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
33 ::unity::il2cpp_call!((::unity::module_base()+0x230edb0usize)as*mut u8, ::unity::Il2CppString;
34(ProfileCardCommentIndexMenuItem)__receiver)
35 }
36 }
37 #[doc = "`set_m_Mid(::unity::Il2CppString)` overload"]
38 fn set_m_mid(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
39 unsafe {
40 let __receiver =
41 <ProfileCardCommentIndexMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42 ::unity::il2cpp_call!((::unity::module_base()+0x230edc0usize)as*mut u8,();
43(ProfileCardCommentIndexMenuItem)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
44 }
45 }
46 #[doc = "`.ctor(::unity::Il2CppString, crate::app::profilecardcommentindexmenu::ProfileCardCommentIndexMenu_DecideEventHandler)` overload"]
47 fn ctor(
48 self,
49 mid: impl ::core::convert::Into<::unity::Il2CppString>,
50 decide_event_handler: impl ::core::convert::Into<crate::app::profilecardcommentindexmenu::ProfileCardCommentIndexMenu_DecideEventHandler>,
51 ) -> () {
52 unsafe {
53 let __receiver =
54 <ProfileCardCommentIndexMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
55 ::unity::il2cpp_call!((::unity::module_base()+0x230e7b0usize)as*mut u8,();
56(ProfileCardCommentIndexMenuItem)__receiver,(::unity::Il2CppString)::core::convert::Into::into(mid),(crate::app::profilecardcommentindexmenu::ProfileCardCommentIndexMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
57 }
58 }
59 #[doc = "`SetMessage(::unity::Il2CppString)` overload"]
60 fn set_message(self, mid: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
61 unsafe {
62 let __receiver =
63 <ProfileCardCommentIndexMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64 ::unity::il2cpp_call!((::unity::module_base()+0x230eb30usize)as*mut u8,();
65(ProfileCardCommentIndexMenuItem)__receiver,(::unity::Il2CppString)::core::convert::Into::into(mid))
66 }
67 }
68 #[doc = "`ACall()` overload"]
69 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
70 unsafe {
71 let __receiver =
72 <ProfileCardCommentIndexMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73 {
74 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
75 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
76 panic!(
77 "unity: virtual slot {}
78 out of range (vtable len {}
79) on the runtime class behind {}
80 (method `{}
81`)",
82 18usize,
83 __vt.len(),
84 <ProfileCardCommentIndexMenuItem as ::unity::ClassIdentity>::NAME,
85 "ACall",
86 )
87 });
88 let __inner: extern "C" fn(ProfileCardCommentIndexMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
89 ::core::mem::transmute(__vi.method_ptr);
90 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
91 __inner(__receiver, __mi)
92 }
93 }
94 }
95}
96
97#[cfg(feature = "app-profilecardcommentindexmenuitem")]
98impl<__T: IProfileCardCommentIndexMenuItem> IProfileCardCommentIndexMenuItemMethods for __T {}
99
100#[cfg(feature = "app-profilecardcommentindexmenuitem")]
101impl ProfileCardCommentIndexMenuItem {
102 pub fn get_m_mid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
104 }
105
106 pub fn set_m_mid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
108 }
109
110 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
111 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
112 }
113
114 pub fn set_message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
116 }
117
118 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
120 }
121}
122
123#[cfg(feature = "app-profilecardcommentindexmenuitem")]
124impl ProfileCardCommentIndexMenuItem {
125 #[doc = "Direct (non-virtual) call to `ProfileCardCommentIndexMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
126 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
127 let __mi = Self::a_call_method_info();
128 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
129 ::core::mem::transmute(__mi.method_ptr);
130 __inner(this.into(), ::core::option::Option::None)
131 }
132}
133
134#[cfg(feature = "app-profilecardcommentindexmenuitem")]
135impl ProfileCardCommentIndexMenuItem {
136 #[doc = "`.ctor(::unity::Il2CppString, crate::app::profilecardcommentindexmenu::ProfileCardCommentIndexMenu_DecideEventHandler)` — overload selector"]
137 pub fn new(
138 mid: ::unity::Il2CppString,
139 decide_event_handler: crate::app::profilecardcommentindexmenu::ProfileCardCommentIndexMenu_DecideEventHandler,
140 ) -> Self {
141 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
142 panic!(
143 "{}
144::{}
145 failed to instantiate",
146 ::core::stringify!(ProfileCardCommentIndexMenuItem),
147 ::core::stringify!(new),
148 )
149 });
150 <Self as IProfileCardCommentIndexMenuItemMethods>::ctor(this, mid, decide_event_handler);
151 this
152 }
153}
154
155#[cfg(feature = "app-profilecardcommentindexmenuitem")]
156#[doc(hidden)]
157pub mod prelude {
158 pub use super::{IProfileCardCommentIndexMenuItem, IProfileCardCommentIndexMenuItemMethods, ProfileCardCommentIndexMenuItem};
159 #[cfg(feature = "app-basicmenuitem")]
160 pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
161 #[cfg(feature = "system-object")]
162 pub use crate::system::object::IObjectMethods;
163 pub use crate::{app::basicmenuitem::IBasicMenuItem, system::object::IObject};
164}