Skip to main content

engage/generated/app/
fleamarketbuymenuitemcontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-fleamarketbuymenuitemcontent-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            basicmenuitemcontent::{BasicMenuItemContent, IBasicMenuItemContent},
11            itemshopbuymenuitemcontent::{IItemShopBuyMenuItemContent, ItemShopBuyMenuItemContent},
12        },
13        system::object::{IObject, Object},
14        unity_engine::{
15            behaviour::{Behaviour, IBehaviour},
16            component::{Component, IComponent},
17            monobehaviour::{IMonoBehaviour, MonoBehaviour},
18            object_2::{IObject_2, Object_2},
19        },
20    };
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/fleamarketbuymenuitemcontent/FleaMarketBuyMenuItemContent.md"))]
23    #[::unity::class(namespace = "App", name = "FleaMarketBuyMenuItemContent")]
24    #[parent(crate::app::itemshopbuymenuitemcontent::ItemShopBuyMenuItemContent)]
25    pub struct FleaMarketBuyMenuItemContent {
26        #[offset(152)]
27        #[rename(name = "m_KindIconImage")]
28        pub m_kind_icon_image: crate::unity_engine::ui::image::Image,
29    }
30}
31
32#[cfg(feature = "app-fleamarketbuymenuitemcontent-types")]
33pub use __types::*;
34
35#[cfg(feature = "app-fleamarketbuymenuitemcontent")]
36pub trait IFleaMarketBuyMenuItemContentMethods: IFleaMarketBuyMenuItemContent {
37    #[doc = "`BuildText()` overload"]
38    fn build_text(self) -> () {
39        unsafe {
40            let __receiver =
41                <FleaMarketBuyMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42            {
43                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
44                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
45                    panic!(
46                        "unity: virtual slot {}
47 out of range (vtable len {}
48) on the runtime class behind {}
49 (method `{}
50`)",
51                        10usize,
52                        __vt.len(),
53                        <FleaMarketBuyMenuItemContent as ::unity::ClassIdentity>::NAME,
54                        "BuildText",
55                    )
56                });
57                let __inner: extern "C" fn(FleaMarketBuyMenuItemContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
58                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
59                __inner(__receiver, __mi)
60            }
61        }
62    }
63    #[doc = "`UpdateTextColor()` overload"]
64    fn update_text_color(self) -> () {
65        unsafe {
66            let __receiver =
67                <FleaMarketBuyMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68            {
69                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
70                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
71                    panic!(
72                        "unity: virtual slot {}
73 out of range (vtable len {}
74) on the runtime class behind {}
75 (method `{}
76`)",
77                        7usize,
78                        __vt.len(),
79                        <FleaMarketBuyMenuItemContent as ::unity::ClassIdentity>::NAME,
80                        "UpdateTextColor",
81                    )
82                });
83                let __inner: extern "C" fn(FleaMarketBuyMenuItemContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
84                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
85                __inner(__receiver, __mi)
86            }
87        }
88    }
89    #[doc = "`.ctor()` overload"]
90    fn ctor(self) -> () {
91        unsafe {
92            let __receiver =
93                <FleaMarketBuyMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94            ::unity::il2cpp_call!((::unity::module_base()+0x260ce70usize)as*mut u8,();
95(FleaMarketBuyMenuItemContent)__receiver)
96        }
97    }
98}
99
100#[cfg(feature = "app-fleamarketbuymenuitemcontent")]
101impl<__T: IFleaMarketBuyMenuItemContent> IFleaMarketBuyMenuItemContentMethods for __T {}
102
103#[cfg(feature = "app-fleamarketbuymenuitemcontent")]
104impl FleaMarketBuyMenuItemContent {
105    pub fn build_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
107    }
108
109    pub fn update_text_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
111    }
112
113    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
115    }
116}
117
118#[cfg(feature = "app-fleamarketbuymenuitemcontent")]
119impl FleaMarketBuyMenuItemContent {
120    #[doc = "Direct (non-virtual) call to `FleaMarketBuyMenuItemContent`'s own `BuildText`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
121    pub unsafe fn build_text(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
122        let __mi = Self::build_text_method_info();
123        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
124        __inner(this.into(), ::core::option::Option::None)
125    }
126
127    #[doc = "Direct (non-virtual) call to `FleaMarketBuyMenuItemContent`'s own `UpdateTextColor`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
128    pub unsafe fn update_text_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
129        let __mi = Self::update_text_color_method_info();
130        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
131        __inner(this.into(), ::core::option::Option::None)
132    }
133}
134
135#[cfg(feature = "app-fleamarketbuymenuitemcontent")]
136impl FleaMarketBuyMenuItemContent {
137    #[doc = "`.ctor()` — no args"]
138    pub fn new() -> Self {
139        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
140            panic!(
141                "{}
142::{}
143 failed to instantiate",
144                ::core::stringify!(FleaMarketBuyMenuItemContent),
145                ::core::stringify!(new),
146            )
147        });
148        <Self as IFleaMarketBuyMenuItemContentMethods>::ctor(this);
149        this
150    }
151}
152
153#[cfg(feature = "app-fleamarketbuymenuitemcontent")]
154#[doc(hidden)]
155pub mod prelude {
156    pub use super::{FleaMarketBuyMenuItemContent, IFleaMarketBuyMenuItemContent, IFleaMarketBuyMenuItemContentMethods};
157    #[cfg(feature = "app-basicmenuitemcontent")]
158    pub use crate::app::basicmenuitemcontent::IBasicMenuItemContentMethods;
159    #[cfg(feature = "app-itemshopbuymenuitemcontent")]
160    pub use crate::app::itemshopbuymenuitemcontent::IItemShopBuyMenuItemContentMethods;
161    #[cfg(feature = "system-object")]
162    pub use crate::system::object::IObjectMethods;
163    #[cfg(feature = "unity_engine-behaviour")]
164    pub use crate::unity_engine::behaviour::IBehaviourMethods;
165    #[cfg(feature = "unity_engine-component")]
166    pub use crate::unity_engine::component::IComponentMethods;
167    #[cfg(feature = "unity_engine-monobehaviour")]
168    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
169    #[cfg(feature = "unity_engine-object_2")]
170    pub use crate::unity_engine::object_2::IObject_2Methods;
171    pub use crate::{
172        app::{
173            basicmenuitemcontent::IBasicMenuItemContent,
174            itemshopbuymenuitemcontent::{IItemShopBuyMenuItemContent, ItemShopBuyMenuItemContent},
175        },
176        system::object::IObject,
177        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
178    };
179}