Skip to main content

engage/generated/app/
itemlistdialogitemcontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-itemlistdialogitemcontent-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            behaviour::{Behaviour, IBehaviour},
12            component::{Component, IComponent},
13            monobehaviour::{IMonoBehaviour, MonoBehaviour},
14            object_2::{IObject_2, Object_2},
15        },
16    };
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/itemlistdialogitemcontent/ItemListDialogItemContent.md"))]
19    #[::unity::class(namespace = "App", name = "ItemListDialogItemContent")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct ItemListDialogItemContent {
22        #[offset(24)]
23        #[rename(name = "m_IconImage")]
24        pub m_icon_image: crate::unity_engine::ui::image::Image,
25        #[offset(32)]
26        #[rename(name = "m_NameText")]
27        pub m_name_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
28        #[offset(40)]
29        #[rename(name = "m_CountObject")]
30        pub m_count_object: crate::unity_engine::gameobject::GameObject,
31        #[offset(48)]
32        #[rename(name = "m_CountText")]
33        pub m_count_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
34        #[offset(56)]
35        #[rename(name = "m_CountGText")]
36        pub m_count_g_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
37    }
38}
39
40#[cfg(feature = "app-itemlistdialogitemcontent-types")]
41pub use __types::*;
42
43#[cfg(feature = "app-itemlistdialogitemcontent")]
44pub trait IItemListDialogItemContentMethods: IItemListDialogItemContent {
45    #[doc = "`Start()` overload"]
46    fn start(self) -> () {
47        unsafe {
48            let __receiver =
49                <ItemListDialogItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50            ::unity::il2cpp_call!((::unity::module_base()+0x2040ae0usize)as*mut u8,();
51(ItemListDialogItemContent)__receiver)
52        }
53    }
54    #[doc = "`Build(crate::unity_engine::sprite::Sprite, ::unity::Il2CppString, i32, bool)` overload"]
55    fn build(
56        self,
57        sprite: impl ::core::convert::Into<crate::unity_engine::sprite::Sprite>,
58        name: impl ::core::convert::Into<::unity::Il2CppString>,
59        num: impl ::core::convert::Into<i32>,
60        enabled_num: impl ::core::convert::Into<bool>,
61    ) -> () {
62        unsafe {
63            let __receiver =
64                <ItemListDialogItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65            ::unity::il2cpp_call!((::unity::module_base()+0x20404e0usize)as*mut u8,();
66(ItemListDialogItemContent)__receiver,(crate::unity_engine::sprite::Sprite)::core::convert::Into::into(sprite),(::unity::Il2CppString)::core::convert::Into::into(name),(i32)::core::convert::Into::into(num),(bool)::core::convert::Into::into(enabled_num))
67        }
68    }
69    #[doc = "`.ctor()` overload"]
70    fn ctor(self) -> () {
71        unsafe {
72            let __receiver =
73                <ItemListDialogItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74            ::unity::il2cpp_call!((::unity::module_base()+0x2040af0usize)as*mut u8,();
75(ItemListDialogItemContent)__receiver)
76        }
77    }
78}
79
80#[cfg(feature = "app-itemlistdialogitemcontent")]
81impl<__T: IItemListDialogItemContent> IItemListDialogItemContentMethods for __T {}
82
83#[cfg(feature = "app-itemlistdialogitemcontent")]
84impl ItemListDialogItemContent {
85    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
86        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
87    }
88
89    pub fn build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
90        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
91    }
92
93    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
94        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
95    }
96}
97
98#[cfg(feature = "app-itemlistdialogitemcontent")]
99impl ItemListDialogItemContent {
100    #[doc = "`.ctor()` — no args"]
101    pub fn new() -> Self {
102        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
103            panic!(
104                "{}
105::{}
106 failed to instantiate",
107                ::core::stringify!(ItemListDialogItemContent),
108                ::core::stringify!(new),
109            )
110        });
111        <Self as IItemListDialogItemContentMethods>::ctor(this);
112        this
113    }
114}
115
116#[cfg(feature = "app-itemlistdialogitemcontent")]
117#[doc(hidden)]
118pub mod prelude {
119    pub use super::{IItemListDialogItemContent, IItemListDialogItemContentMethods, ItemListDialogItemContent};
120    #[cfg(feature = "system-object")]
121    pub use crate::system::object::IObjectMethods;
122    #[cfg(feature = "unity_engine-behaviour")]
123    pub use crate::unity_engine::behaviour::IBehaviourMethods;
124    #[cfg(feature = "unity_engine-component")]
125    pub use crate::unity_engine::component::IComponentMethods;
126    #[cfg(feature = "unity_engine-monobehaviour")]
127    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
128    #[cfg(feature = "unity_engine-object_2")]
129    pub use crate::unity_engine::object_2::IObject_2Methods;
130    pub use crate::{
131        system::object::IObject,
132        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
133    };
134}