Skip to main content

engage/generated/app/
inventoryroot.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-inventoryroot-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/inventoryroot/InventoryRoot.md"))]
19    #[::unity::class(namespace = "App", name = "InventoryRoot")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct InventoryRoot {
22        #[offset(24)]
23        #[rename(name = "m_UnitItemList")]
24        pub m_unit_item_list: crate::unity_engine::gameobject::GameObject,
25        #[offset(32)]
26        #[rename(name = "m_PoolItemList")]
27        pub m_pool_item_list: crate::unity_engine::gameobject::GameObject,
28        #[offset(40)]
29        #[rename(name = "m_ItemInfo")]
30        pub m_item_info: crate::unity_engine::gameobject::GameObject,
31    }
32}
33
34#[cfg(feature = "app-inventoryroot-types")]
35pub use __types::*;
36
37#[cfg(feature = "app-inventoryroot")]
38pub trait IInventoryRootMethods: IInventoryRoot {
39    #[doc = "`SetItemInfo(crate::app::unititem::UnitItem)` overload"]
40    fn set_item_info(self, item: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> () {
41        unsafe {
42            let __receiver = <InventoryRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x279c220usize)as*mut u8,();
44(InventoryRoot)__receiver,(crate::app::unititem::UnitItem)::core::convert::Into::into(item))
45        }
46    }
47    #[doc = "`SetSelectItem(crate::app::unit::Unit, i32)` overload"]
48    fn set_select_item(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>, item_no: impl ::core::convert::Into<i32>) -> () {
49        unsafe {
50            let __receiver = <InventoryRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            ::unity::il2cpp_call!((::unity::module_base()+0x279c310usize)as*mut u8,();
52(InventoryRoot)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(item_no))
53        }
54    }
55    #[doc = "`GetGameObjectUnit()` overload"]
56    fn get_game_object_unit(self) -> crate::unity_engine::gameobject::GameObject {
57        unsafe {
58            let __receiver = <InventoryRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            ::unity::il2cpp_call!((::unity::module_base()+0x279c350usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
60(InventoryRoot)__receiver)
61        }
62    }
63    #[doc = "`GetGameObjectPool()` overload"]
64    fn get_game_object_pool(self) -> crate::unity_engine::gameobject::GameObject {
65        unsafe {
66            let __receiver = <InventoryRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            ::unity::il2cpp_call!((::unity::module_base()+0x279c360usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
68(InventoryRoot)__receiver)
69        }
70    }
71    #[doc = "`GetItemInfo()` overload"]
72    fn get_item_info(self) -> crate::unity_engine::gameobject::GameObject {
73        unsafe {
74            let __receiver = <InventoryRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            ::unity::il2cpp_call!((::unity::module_base()+0x279c370usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
76(InventoryRoot)__receiver)
77        }
78    }
79    #[doc = "`MenuOpen()` overload"]
80    fn menu_open(self) -> () {
81        unsafe {
82            let __receiver = <InventoryRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            ::unity::il2cpp_call!((::unity::module_base()+0x279c380usize)as*mut u8,();
84(InventoryRoot)__receiver)
85        }
86    }
87    #[doc = "`MenuClose()` overload"]
88    fn menu_close(self) -> () {
89        unsafe {
90            let __receiver = <InventoryRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91            ::unity::il2cpp_call!((::unity::module_base()+0x279c4d0usize)as*mut u8,();
92(InventoryRoot)__receiver)
93        }
94    }
95    #[doc = "`IsMenuClose()` overload"]
96    fn is_menu_close(self) -> bool {
97        unsafe {
98            let __receiver = <InventoryRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            ::unity::il2cpp_call!((::unity::module_base()+0x279c620usize)as*mut u8,bool;
100(InventoryRoot)__receiver)
101        }
102    }
103    #[doc = "`.ctor()` overload"]
104    fn ctor(self) -> () {
105        unsafe {
106            let __receiver = <InventoryRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107            ::unity::il2cpp_call!((::unity::module_base()+0x279c830usize)as*mut u8,();
108(InventoryRoot)__receiver)
109        }
110    }
111}
112
113#[cfg(feature = "app-inventoryroot")]
114impl<__T: IInventoryRoot> IInventoryRootMethods for __T {}
115
116#[cfg(feature = "app-inventoryroot")]
117impl InventoryRoot {
118    pub fn set_item_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
120    }
121
122    pub fn set_select_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
124    }
125
126    pub fn get_game_object_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
128    }
129
130    pub fn get_game_object_pool_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
132    }
133
134    pub fn get_item_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
136    }
137
138    pub fn menu_open_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
140    }
141
142    pub fn menu_close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
144    }
145
146    pub fn is_menu_close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
148    }
149
150    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
152    }
153}
154
155#[cfg(feature = "app-inventoryroot")]
156impl InventoryRoot {
157    #[doc = "`.ctor()` — no args"]
158    pub fn new() -> Self {
159        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
160            panic!(
161                "{}
162::{}
163 failed to instantiate",
164                ::core::stringify!(InventoryRoot),
165                ::core::stringify!(new),
166            )
167        });
168        <Self as IInventoryRootMethods>::ctor(this);
169        this
170    }
171}
172
173#[cfg(feature = "app-inventoryroot")]
174#[doc(hidden)]
175pub mod prelude {
176    pub use super::{IInventoryRoot, IInventoryRootMethods, InventoryRoot};
177    #[cfg(feature = "system-object")]
178    pub use crate::system::object::IObjectMethods;
179    #[cfg(feature = "unity_engine-behaviour")]
180    pub use crate::unity_engine::behaviour::IBehaviourMethods;
181    #[cfg(feature = "unity_engine-component")]
182    pub use crate::unity_engine::component::IComponentMethods;
183    #[cfg(feature = "unity_engine-monobehaviour")]
184    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
185    #[cfg(feature = "unity_engine-object_2")]
186    pub use crate::unity_engine::object_2::IObject_2Methods;
187    pub use crate::{
188        system::object::IObject,
189        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
190    };
191}