Skip to main content

engage/generated/app/
refineringtimesselectmenuitemcontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-refineringtimesselectmenuitemcontent-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/refineringtimesselectmenuitemcontent/RefineRingTimesSelectMenuItemContent.md"))]
20    #[::unity::class(namespace = "App", name = "RefineRingTimesSelectMenuItemContent")]
21    #[parent(crate::app::basicmenuitemcontent::BasicMenuItemContent)]
22    pub struct RefineRingTimesSelectMenuItemContent {
23        #[offset(72)]
24        #[rename(name = "m_TimesText")]
25        pub m_times_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
26        #[offset(80)]
27        #[rename(name = "m_BondValueText")]
28        pub m_bond_value_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
29        #[offset(88)]
30        #[rename(name = "m_BondIconImage")]
31        pub m_bond_icon_image: crate::unity_engine::ui::image::Image,
32    }
33}
34
35#[cfg(feature = "app-refineringtimesselectmenuitemcontent-types")]
36pub use __types::*;
37
38#[cfg(feature = "app-refineringtimesselectmenuitemcontent")]
39pub trait IRefineRingTimesSelectMenuItemContentMethods: IRefineRingTimesSelectMenuItemContent {
40    #[doc = "`get_m_ColorOfNotEnoughValue()` overload"]
41    fn get_m_color_of_not_enough_value(self) -> crate::unity_engine::color::Color {
42        unsafe {
43            let __receiver = <RefineRingTimesSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(
44                <Self as ::unity::SystemObject>::as_instance(self),
45            );
46            ::unity::il2cpp_call!((::unity::module_base()+0x2957ae0usize)as*mut u8,crate::unity_engine::color::Color;
47(RefineRingTimesSelectMenuItemContent)__receiver)
48        }
49    }
50    #[doc = "`set_m_ColorOfNotEnoughValue(crate::unity_engine::color::Color)` overload"]
51    fn set_m_color_of_not_enough_value(self, value: impl ::core::convert::Into<crate::unity_engine::color::Color>) -> () {
52        unsafe {
53            let __receiver = <RefineRingTimesSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(
54                <Self as ::unity::SystemObject>::as_instance(self),
55            );
56            ::unity::il2cpp_call!((::unity::module_base()+0x2957af0usize)as*mut u8,();
57(RefineRingTimesSelectMenuItemContent)__receiver,(crate::unity_engine::color::Color)::core::convert::Into::into(value))
58        }
59    }
60    #[doc = "`.ctor()` overload"]
61    fn ctor(self) -> () {
62        unsafe {
63            let __receiver = <RefineRingTimesSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(
64                <Self as ::unity::SystemObject>::as_instance(self),
65            );
66            ::unity::il2cpp_call!((::unity::module_base()+0x2957b10usize)as*mut u8,();
67(RefineRingTimesSelectMenuItemContent)__receiver)
68        }
69    }
70    #[doc = "`BuildText()` overload"]
71    fn build_text(self) -> () {
72        unsafe {
73            let __receiver = <RefineRingTimesSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(
74                <Self as ::unity::SystemObject>::as_instance(self),
75            );
76            {
77                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
78                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
79                    panic!(
80                        "unity: virtual slot {}
81 out of range (vtable len {}
82) on the runtime class behind {}
83 (method `{}
84`)",
85                        10usize,
86                        __vt.len(),
87                        <RefineRingTimesSelectMenuItemContent as ::unity::ClassIdentity>::NAME,
88                        "BuildText",
89                    )
90                });
91                let __inner: extern "C" fn(RefineRingTimesSelectMenuItemContent, ::unity::OptionalMethod) -> () =
92                    ::core::mem::transmute(__vi.method_ptr);
93                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
94                __inner(__receiver, __mi)
95            }
96        }
97    }
98    #[doc = "`UpdateTextColor()` overload"]
99    fn update_text_color(self) -> () {
100        unsafe {
101            let __receiver = <RefineRingTimesSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(
102                <Self as ::unity::SystemObject>::as_instance(self),
103            );
104            {
105                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
106                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
107                    panic!(
108                        "unity: virtual slot {}
109 out of range (vtable len {}
110) on the runtime class behind {}
111 (method `{}
112`)",
113                        7usize,
114                        __vt.len(),
115                        <RefineRingTimesSelectMenuItemContent as ::unity::ClassIdentity>::NAME,
116                        "UpdateTextColor",
117                    )
118                });
119                let __inner: extern "C" fn(RefineRingTimesSelectMenuItemContent, ::unity::OptionalMethod) -> () =
120                    ::core::mem::transmute(__vi.method_ptr);
121                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
122                __inner(__receiver, __mi)
123            }
124        }
125    }
126}
127
128#[cfg(feature = "app-refineringtimesselectmenuitemcontent")]
129impl<__T: IRefineRingTimesSelectMenuItemContent> IRefineRingTimesSelectMenuItemContentMethods for __T {}
130
131#[cfg(feature = "app-refineringtimesselectmenuitemcontent")]
132impl RefineRingTimesSelectMenuItemContent {
133    pub fn get_m_color_of_not_enough_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
134        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
135    }
136
137    pub fn set_m_color_of_not_enough_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
138        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
139    }
140
141    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
143    }
144
145    pub fn build_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
146        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
147    }
148
149    pub fn update_text_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
151    }
152}
153
154#[cfg(feature = "app-refineringtimesselectmenuitemcontent")]
155impl RefineRingTimesSelectMenuItemContent {
156    #[doc = "Direct (non-virtual) call to `RefineRingTimesSelectMenuItemContent`'s own `BuildText`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
157    pub unsafe fn build_text(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
158        let __mi = Self::build_text_method_info();
159        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
160        __inner(this.into(), ::core::option::Option::None)
161    }
162
163    #[doc = "Direct (non-virtual) call to `RefineRingTimesSelectMenuItemContent`'s own `UpdateTextColor`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
164    pub unsafe fn update_text_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
165        let __mi = Self::update_text_color_method_info();
166        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
167        __inner(this.into(), ::core::option::Option::None)
168    }
169}
170
171#[cfg(feature = "app-refineringtimesselectmenuitemcontent")]
172impl RefineRingTimesSelectMenuItemContent {
173    #[doc = "`.ctor()` — no args"]
174    pub fn new() -> Self {
175        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
176            panic!(
177                "{}
178::{}
179 failed to instantiate",
180                ::core::stringify!(RefineRingTimesSelectMenuItemContent),
181                ::core::stringify!(new),
182            )
183        });
184        <Self as IRefineRingTimesSelectMenuItemContentMethods>::ctor(this);
185        this
186    }
187}
188
189#[cfg(feature = "app-refineringtimesselectmenuitemcontent")]
190#[doc(hidden)]
191pub mod prelude {
192    pub use super::{IRefineRingTimesSelectMenuItemContent, IRefineRingTimesSelectMenuItemContentMethods, RefineRingTimesSelectMenuItemContent};
193    #[cfg(feature = "app-basicmenuitemcontent")]
194    pub use crate::app::basicmenuitemcontent::IBasicMenuItemContentMethods;
195    #[cfg(feature = "system-object")]
196    pub use crate::system::object::IObjectMethods;
197    #[cfg(feature = "unity_engine-behaviour")]
198    pub use crate::unity_engine::behaviour::IBehaviourMethods;
199    #[cfg(feature = "unity_engine-component")]
200    pub use crate::unity_engine::component::IComponentMethods;
201    #[cfg(feature = "unity_engine-monobehaviour")]
202    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
203    #[cfg(feature = "unity_engine-object_2")]
204    pub use crate::unity_engine::object_2::IObject_2Methods;
205    pub use crate::{
206        app::basicmenuitemcontent::IBasicMenuItemContent,
207        system::object::IObject,
208        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
209    };
210}