engage/generated/app/
itemholdinginfowindow.rs1#[cfg(feature = "app-itemholdinginfowindow-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/itemholdinginfowindow/ItemHoldingInfoWindow.md"))]
19 #[::unity::class(namespace = "App", name = "ItemHoldingInfoWindow")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct ItemHoldingInfoWindow {
22 #[offset(24)]
23 #[rename(name = "m_TitleText")]
24 pub m_title_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
25 #[offset(32)]
26 #[rename(name = "m_KindFrameObject")]
27 pub m_kind_frame_object: crate::unity_engine::gameobject::GameObject,
28 #[offset(40)]
29 #[rename(name = "m_NameText")]
30 pub m_name_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
31 #[offset(48)]
32 #[rename(name = "m_UnusedHoldingTitleText")]
33 pub m_unused_holding_title_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
34 #[offset(56)]
35 #[rename(name = "m_UnusedHoldingValueText")]
36 pub m_unused_holding_value_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
37 #[offset(64)]
38 #[rename(name = "m_TotalHoldingTitleText")]
39 pub m_total_holding_title_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
40 #[offset(72)]
41 #[rename(name = "m_TotalHoldingValueText")]
42 pub m_total_holding_value_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
43 #[offset(80)]
44 #[rename(name = "ForceMask")]
45 pub force_mask: u32,
46 }
47}
48
49#[cfg(feature = "app-itemholdinginfowindow-types")]
50pub use __types::*;
51
52#[cfg(feature = "app-itemholdinginfowindow")]
53pub trait IItemHoldingInfoWindowMethods: IItemHoldingInfoWindow {
54 #[doc = "`Start()` overload"]
55 fn start(self) -> () {
56 unsafe {
57 let __receiver = <ItemHoldingInfoWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
58 ::unity::il2cpp_call!((::unity::module_base()+0x203f310usize)as*mut u8,();
59(ItemHoldingInfoWindow)__receiver)
60 }
61 }
62 #[doc = "`Close()` overload"]
63 fn close(self) -> () {
64 unsafe {
65 let __receiver = <ItemHoldingInfoWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66 ::unity::il2cpp_call!((::unity::module_base()+0x203f540usize)as*mut u8,();
67(ItemHoldingInfoWindow)__receiver)
68 }
69 }
70 #[doc = "`SetData(crate::app::unititem::UnitItem)` overload"]
71 fn set_data(self, unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> () {
72 unsafe {
73 let __receiver = <ItemHoldingInfoWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74 ::unity::il2cpp_call!((::unity::module_base()+0x203f640usize)as*mut u8,();
75(ItemHoldingInfoWindow)__receiver,(crate::app::unititem::UnitItem)::core::convert::Into::into(unit_item))
76 }
77 }
78 #[doc = "`.ctor()` overload"]
79 fn ctor(self) -> () {
80 unsafe {
81 let __receiver = <ItemHoldingInfoWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82 ::unity::il2cpp_call!((::unity::module_base()+0x203fca0usize)as*mut u8,();
83(ItemHoldingInfoWindow)__receiver)
84 }
85 }
86}
87
88#[cfg(feature = "app-itemholdinginfowindow")]
89impl<__T: IItemHoldingInfoWindow> IItemHoldingInfoWindowMethods for __T {}
90
91#[cfg(feature = "app-itemholdinginfowindow")]
92impl ItemHoldingInfoWindow {
93 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
94 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
95 }
96
97 pub fn close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
99 }
100
101 pub fn set_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
103 }
104
105 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
107 }
108}
109
110#[cfg(feature = "app-itemholdinginfowindow")]
111impl ItemHoldingInfoWindow {
112 #[doc = "`.ctor()` — no args"]
113 pub fn new() -> Self {
114 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
115 panic!(
116 "{}
117::{}
118 failed to instantiate",
119 ::core::stringify!(ItemHoldingInfoWindow),
120 ::core::stringify!(new),
121 )
122 });
123 <Self as IItemHoldingInfoWindowMethods>::ctor(this);
124 this
125 }
126}
127
128#[cfg(feature = "app-itemholdinginfowindow")]
129#[doc(hidden)]
130pub mod prelude {
131 pub use super::{IItemHoldingInfoWindow, IItemHoldingInfoWindowMethods, ItemHoldingInfoWindow};
132 #[cfg(feature = "system-object")]
133 pub use crate::system::object::IObjectMethods;
134 #[cfg(feature = "unity_engine-behaviour")]
135 pub use crate::unity_engine::behaviour::IBehaviourMethods;
136 #[cfg(feature = "unity_engine-component")]
137 pub use crate::unity_engine::component::IComponentMethods;
138 #[cfg(feature = "unity_engine-monobehaviour")]
139 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
140 #[cfg(feature = "unity_engine-object_2")]
141 pub use crate::unity_engine::object_2::IObject_2Methods;
142 pub use crate::{
143 system::object::IObject,
144 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
145 };
146}