engage/generated/app/
itemshopbuymenuitemcontent.rs1#[cfg(feature = "app-itemshopbuymenuitemcontent-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::basicmenuitemcontent::{BasicMenuItemContent, IBasicMenuItemContent},
10 system::object::{IObject, Object},
11 unity_engine::{
12 behaviour::{Behaviour, IBehaviour},
13 component::{Component, IComponent},
14 monobehaviour::{IMonoBehaviour, MonoBehaviour},
15 object_2::{IObject_2, Object_2},
16 },
17 };
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/itemshopbuymenuitemcontent/ItemShopBuyMenuItemContent.md"))]
20 #[::unity::class(namespace = "App", name = "ItemShopBuyMenuItemContent")]
21 #[parent(crate::app::basicmenuitemcontent::BasicMenuItemContent)]
22 pub struct ItemShopBuyMenuItemContent {
23 #[offset(72)]
24 #[rename(name = "m_KindFrameObject")]
25 pub m_kind_frame_object: crate::unity_engine::gameobject::GameObject,
26 #[offset(80)]
27 #[rename(name = "m_KindIconObject")]
28 pub m_kind_icon_object: crate::unity_engine::gameobject::GameObject,
29 #[offset(88)]
30 #[rename(name = "m_NameObject")]
31 pub m_name_object: crate::unity_engine::gameobject::GameObject,
32 #[offset(96)]
33 #[rename(name = "m_CountValueObject")]
34 pub m_count_value_object: crate::unity_engine::gameobject::GameObject,
35 #[offset(104)]
36 #[rename(name = "m_StockValueObject")]
37 pub m_stock_value_object: crate::unity_engine::gameobject::GameObject,
38 #[offset(112)]
39 #[rename(name = "m_PriceValueObject")]
40 pub m_price_value_object: crate::unity_engine::gameobject::GameObject,
41 #[offset(120)]
42 #[rename(name = "m_PriceGObject")]
43 pub m_price_g_object: crate::unity_engine::gameobject::GameObject,
44 #[offset(128)]
45 #[rename(name = "m_NewIconObject")]
46 pub m_new_icon_object: crate::unity_engine::gameobject::GameObject,
47 #[offset(136)]
48 #[rename(name = "m_textBaseColor2")]
49 pub m_text_base_color2: crate::unity_engine::color::Color,
50 }
51}
52
53#[cfg(feature = "app-itemshopbuymenuitemcontent-types")]
54pub use __types::*;
55
56#[cfg(feature = "app-itemshopbuymenuitemcontent")]
57pub trait IItemShopBuyMenuItemContentMethods: IItemShopBuyMenuItemContent {
58 #[doc = "`.ctor()` overload"]
59 fn ctor(self) -> () {
60 unsafe {
61 let __receiver =
62 <ItemShopBuyMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63 ::unity::il2cpp_call!((::unity::module_base()+0x204d530usize)as*mut u8,();
64(ItemShopBuyMenuItemContent)__receiver)
65 }
66 }
67 #[doc = "`Start()` overload"]
68 fn start(self) -> () {
69 unsafe {
70 let __receiver =
71 <ItemShopBuyMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72 {
73 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
74 let __vi = *__vt.get(14usize).unwrap_or_else(|| {
75 panic!(
76 "unity: virtual slot {}
77 out of range (vtable len {}
78) on the runtime class behind {}
79 (method `{}
80`)",
81 14usize,
82 __vt.len(),
83 <ItemShopBuyMenuItemContent as ::unity::ClassIdentity>::NAME,
84 "Start",
85 )
86 });
87 let __inner: extern "C" fn(ItemShopBuyMenuItemContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
88 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
89 __inner(__receiver, __mi)
90 }
91 }
92 }
93 #[doc = "`BuildText()` overload"]
94 fn build_text(self) -> () {
95 unsafe {
96 let __receiver =
97 <ItemShopBuyMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 {
99 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
100 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
101 panic!(
102 "unity: virtual slot {}
103 out of range (vtable len {}
104) on the runtime class behind {}
105 (method `{}
106`)",
107 10usize,
108 __vt.len(),
109 <ItemShopBuyMenuItemContent as ::unity::ClassIdentity>::NAME,
110 "BuildText",
111 )
112 });
113 let __inner: extern "C" fn(ItemShopBuyMenuItemContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
114 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
115 __inner(__receiver, __mi)
116 }
117 }
118 }
119 #[doc = "`UpdateTextColor()` overload"]
120 fn update_text_color(self) -> () {
121 unsafe {
122 let __receiver =
123 <ItemShopBuyMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124 {
125 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
126 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
127 panic!(
128 "unity: virtual slot {}
129 out of range (vtable len {}
130) on the runtime class behind {}
131 (method `{}
132`)",
133 7usize,
134 __vt.len(),
135 <ItemShopBuyMenuItemContent as ::unity::ClassIdentity>::NAME,
136 "UpdateTextColor",
137 )
138 });
139 let __inner: extern "C" fn(ItemShopBuyMenuItemContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
140 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
141 __inner(__receiver, __mi)
142 }
143 }
144 }
145 #[doc = "`SetTextBaseColor(crate::unity_engine::color::Color, crate::unity_engine::color::Color)` overload"]
146 fn set_text_base_color(
147 self,
148 color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
149 color2: impl ::core::convert::Into<crate::unity_engine::color::Color>,
150 ) -> () {
151 unsafe {
152 let __receiver =
153 <ItemShopBuyMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154 ::unity::il2cpp_call!((::unity::module_base()+0x204cd20usize)as*mut u8,();
155(ItemShopBuyMenuItemContent)__receiver,(crate::unity_engine::color::Color)::core::convert::Into::into(color),(crate::unity_engine::color::Color)::core::convert::Into::into(color2))
156 }
157 }
158 #[doc = "`SetNewIcon(bool)` overload"]
159 fn set_new_icon(self, enabled: impl ::core::convert::Into<bool>) -> () {
160 unsafe {
161 let __receiver =
162 <ItemShopBuyMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163 ::unity::il2cpp_call!((::unity::module_base()+0x204e9b0usize)as*mut u8,();
164(ItemShopBuyMenuItemContent)__receiver,(bool)::core::convert::Into::into(enabled))
165 }
166 }
167 #[doc = "`SynchronizeNewIconAnimationTime()` overload"]
168 fn synchronize_new_icon_animation_time(self) -> () {
169 unsafe {
170 let __receiver =
171 <ItemShopBuyMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172 ::unity::il2cpp_call!((::unity::module_base()+0x204e090usize)as*mut u8,();
173(ItemShopBuyMenuItemContent)__receiver)
174 }
175 }
176}
177
178#[cfg(feature = "app-itemshopbuymenuitemcontent")]
179impl<__T: IItemShopBuyMenuItemContent> IItemShopBuyMenuItemContentMethods for __T {}
180
181#[cfg(feature = "app-itemshopbuymenuitemcontent")]
182impl ItemShopBuyMenuItemContent {
183 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
185 }
186
187 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
189 }
190
191 pub fn build_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
193 }
194
195 pub fn update_text_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
197 }
198
199 pub fn set_text_base_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
201 }
202
203 pub fn set_new_icon_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
205 }
206
207 pub fn synchronize_new_icon_animation_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
209 }
210}
211
212#[cfg(feature = "app-itemshopbuymenuitemcontent")]
213impl ItemShopBuyMenuItemContent {
214 #[doc = "Direct (non-virtual) call to `ItemShopBuyMenuItemContent`'s own `Start`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
215 pub unsafe fn start(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
216 let __mi = Self::start_method_info();
217 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
218 __inner(this.into(), ::core::option::Option::None)
219 }
220
221 #[doc = "Direct (non-virtual) call to `ItemShopBuyMenuItemContent`'s own `BuildText`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
222 pub unsafe fn build_text(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
223 let __mi = Self::build_text_method_info();
224 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
225 __inner(this.into(), ::core::option::Option::None)
226 }
227
228 #[doc = "Direct (non-virtual) call to `ItemShopBuyMenuItemContent`'s own `UpdateTextColor`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
229 pub unsafe fn update_text_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
230 let __mi = Self::update_text_color_method_info();
231 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
232 __inner(this.into(), ::core::option::Option::None)
233 }
234}
235
236#[cfg(feature = "app-itemshopbuymenuitemcontent")]
237impl ItemShopBuyMenuItemContent {
238 #[doc = "`.ctor()` — no args"]
239 pub fn new() -> Self {
240 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
241 panic!(
242 "{}
243::{}
244 failed to instantiate",
245 ::core::stringify!(ItemShopBuyMenuItemContent),
246 ::core::stringify!(new),
247 )
248 });
249 <Self as IItemShopBuyMenuItemContentMethods>::ctor(this);
250 this
251 }
252}
253
254#[cfg(feature = "app-itemshopbuymenuitemcontent")]
255#[doc(hidden)]
256pub mod prelude {
257 pub use super::{IItemShopBuyMenuItemContent, IItemShopBuyMenuItemContentMethods, ItemShopBuyMenuItemContent};
258 #[cfg(feature = "app-basicmenuitemcontent")]
259 pub use crate::app::basicmenuitemcontent::IBasicMenuItemContentMethods;
260 #[cfg(feature = "system-object")]
261 pub use crate::system::object::IObjectMethods;
262 #[cfg(feature = "unity_engine-behaviour")]
263 pub use crate::unity_engine::behaviour::IBehaviourMethods;
264 #[cfg(feature = "unity_engine-component")]
265 pub use crate::unity_engine::component::IComponentMethods;
266 #[cfg(feature = "unity_engine-monobehaviour")]
267 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
268 #[cfg(feature = "unity_engine-object_2")]
269 pub use crate::unity_engine::object_2::IObject_2Methods;
270 pub use crate::{
271 app::basicmenuitemcontent::IBasicMenuItemContent,
272 system::object::IObject,
273 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
274 };
275}