Skip to main content

engage/generated/app/
refinegodweaponselectmenuitemcontent.rs

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