engage/generated/app/
traderoot.rs1#[cfg(feature = "app-traderoot-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/traderoot/TradeRoot.md"))]
19 #[::unity::class(namespace = "App", name = "TradeRoot")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct TradeRoot {
22 #[offset(24)]
23 #[rename(name = "m_ItemListLeft")]
24 pub m_item_list_left: crate::unity_engine::gameobject::GameObject,
25 #[offset(32)]
26 #[rename(name = "m_ItemListRight")]
27 pub m_item_list_right: 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-traderoot-types")]
35pub use __types::*;
36
37#[cfg(feature = "app-traderoot")]
38pub trait ITradeRootMethods: ITradeRoot {
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 = <TradeRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 ::unity::il2cpp_call!((::unity::module_base()+0x229e170usize)as*mut u8,();
44(TradeRoot)__receiver,(crate::app::unititem::UnitItem)::core::convert::Into::into(item))
45 }
46 }
47 #[doc = "`Setup(crate::app::unit::Unit, crate::app::unit::Unit)` overload"]
48 fn setup(self, from_unit: impl ::core::convert::Into<crate::app::unit::Unit>, to_unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
49 unsafe {
50 let __receiver = <TradeRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x229e2e0usize)as*mut u8,();
52(TradeRoot)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(from_unit),(crate::app::unit::Unit)::core::convert::Into::into(to_unit))
53 }
54 }
55 #[doc = "`SetSelectItem(crate::app::unititem::UnitItem)` overload"]
56 fn set_select_item(self, item: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> () {
57 unsafe {
58 let __receiver = <TradeRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59 ::unity::il2cpp_call!((::unity::module_base()+0x229e2f0usize)as*mut u8,();
60(TradeRoot)__receiver,(crate::app::unititem::UnitItem)::core::convert::Into::into(item))
61 }
62 }
63 #[doc = "`SetSelectItem(crate::app::unit::Unit, i32)` overload"]
64 fn set_select_item_2(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>, item_no: impl ::core::convert::Into<i32>) -> () {
65 unsafe {
66 let __receiver = <TradeRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67 ::unity::il2cpp_call!((::unity::module_base()+0x229e300usize)as*mut u8,();
68(TradeRoot)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(item_no))
69 }
70 }
71 #[doc = "`GetGameObjectLeft()` overload"]
72 fn get_game_object_left(self) -> crate::unity_engine::gameobject::GameObject {
73 unsafe {
74 let __receiver = <TradeRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75 ::unity::il2cpp_call!((::unity::module_base()+0x229e340usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
76(TradeRoot)__receiver)
77 }
78 }
79 #[doc = "`GetGameObjectRight()` overload"]
80 fn get_game_object_right(self) -> crate::unity_engine::gameobject::GameObject {
81 unsafe {
82 let __receiver = <TradeRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83 ::unity::il2cpp_call!((::unity::module_base()+0x229e350usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
84(TradeRoot)__receiver)
85 }
86 }
87 #[doc = "`GetItemInfo()` overload"]
88 fn get_item_info(self) -> crate::unity_engine::gameobject::GameObject {
89 unsafe {
90 let __receiver = <TradeRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91 ::unity::il2cpp_call!((::unity::module_base()+0x229e360usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
92(TradeRoot)__receiver)
93 }
94 }
95 #[doc = "`.ctor()` overload"]
96 fn ctor(self) -> () {
97 unsafe {
98 let __receiver = <TradeRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99 ::unity::il2cpp_call!((::unity::module_base()+0x229e370usize)as*mut u8,();
100(TradeRoot)__receiver)
101 }
102 }
103}
104
105#[cfg(feature = "app-traderoot")]
106impl<__T: ITradeRoot> ITradeRootMethods for __T {}
107
108#[cfg(feature = "app-traderoot")]
109impl TradeRoot {
110 pub fn set_item_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
111 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
112 }
113
114 pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
116 }
117
118 pub fn set_select_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
120 }
121
122 pub fn set_select_item_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
124 }
125
126 pub fn get_game_object_left_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
128 }
129
130 pub fn get_game_object_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
132 }
133
134 pub fn get_item_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
136 }
137
138 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
140 }
141}
142
143#[cfg(feature = "app-traderoot")]
144impl TradeRoot {
145 #[doc = "`.ctor()` — no args"]
146 pub fn new() -> Self {
147 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
148 panic!(
149 "{}
150::{}
151 failed to instantiate",
152 ::core::stringify!(TradeRoot),
153 ::core::stringify!(new),
154 )
155 });
156 <Self as ITradeRootMethods>::ctor(this);
157 this
158 }
159}
160
161#[cfg(feature = "app-traderoot")]
162#[doc(hidden)]
163pub mod prelude {
164 pub use super::{ITradeRoot, ITradeRootMethods, TradeRoot};
165 #[cfg(feature = "system-object")]
166 pub use crate::system::object::IObjectMethods;
167 #[cfg(feature = "unity_engine-behaviour")]
168 pub use crate::unity_engine::behaviour::IBehaviourMethods;
169 #[cfg(feature = "unity_engine-component")]
170 pub use crate::unity_engine::component::IComponentMethods;
171 #[cfg(feature = "unity_engine-monobehaviour")]
172 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
173 #[cfg(feature = "unity_engine-object_2")]
174 pub use crate::unity_engine::object_2::IObject_2Methods;
175 pub use crate::{
176 system::object::IObject,
177 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
178 };
179}