Skip to main content

engage/generated/app/
shopsellmenuitemcontent.rs

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