engage/generated/app/
expsetter.rs1#[cfg(feature = "app-expsetter-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/expsetter/ExpSetter_ExpWindow.md"))]
19 #[::unity::class(namespace = "App", name = "ExpSetter.ExpWindow")]
20 #[parent(crate::system::object::Object)]
21 pub struct ExpSetter_ExpWindow {
22 #[offset(16)]
23 #[rename(name = "m_Root")]
24 pub m_root: crate::unity_engine::gameobject::GameObject,
25 #[offset(24)]
26 #[rename(name = "m_Name")]
27 pub m_name: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
28 #[offset(32)]
29 #[rename(name = "m_RestExp")]
30 pub m_rest_exp: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
31 #[offset(40)]
32 #[rename(name = "m_GetExp")]
33 pub m_get_exp: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
34 #[offset(48)]
35 #[rename(name = "m_SpValue")]
36 pub m_sp_value: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
37 #[offset(56)]
38 #[rename(name = "m_ExpValue")]
39 pub m_exp_value: crate::unity_engine::gameobject::GameObject,
40 #[offset(64)]
41 #[rename(name = "m_LevelMax")]
42 pub m_level_max: crate::unity_engine::gameobject::GameObject,
43 #[offset(72)]
44 #[rename(name = "m_Gauge")]
45 pub m_gauge: crate::unity_engine::gameobject::GameObject,
46 #[offset(80)]
47 #[rename(name = "m_MaxColor")]
48 pub m_max_color: crate::unity_engine::material::Material,
49 #[offset(88)]
50 #[rename(name = "m_OldLevel")]
51 pub m_old_level: i32,
52 }
53
54 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/expsetter/ExpSetter.md"))]
55 #[::unity::class(namespace = "App", name = "ExpSetter")]
56 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
57 pub struct ExpSetter {
58 #[offset(24)]
59 #[rename(name = "InAnimWait")]
60 pub in_anim_wait: f32,
61 #[offset(32)]
62 #[rename(name = "m_UnitWindow")]
63 pub m_unit_window: crate::app::expsetter::ExpSetter_ExpWindow,
64 }
65}
66
67#[cfg(feature = "app-expsetter-types")]
68pub use __types::*;
69
70#[cfg(feature = "app-expsetter")]
71pub trait IExpSetter_ExpWindowMethods: IExpSetter_ExpWindow {
72 #[doc = "`SetupUnit(crate::app::unit::Unit, i32)` overload"]
73 fn setup_unit(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>, gain_exp: impl ::core::convert::Into<i32>) -> () {
74 unsafe {
75 let __receiver = <ExpSetter_ExpWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76 ::unity::il2cpp_call!((::unity::module_base()+0x1e59770usize)as*mut u8,();
77(ExpSetter_ExpWindow)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(gain_exp))
78 }
79 }
80 #[doc = "`UpdateUnit(crate::app::unit::Unit)` overload"]
81 fn update_unit(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
82 unsafe {
83 let __receiver = <ExpSetter_ExpWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84 ::unity::il2cpp_call!((::unity::module_base()+0x1e59a70usize)as*mut u8,();
85(ExpSetter_ExpWindow)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
86 }
87 }
88 #[doc = "`UpdateAddExp(i32)` overload"]
89 fn update_add_exp(self, exp: impl ::core::convert::Into<i32>) -> () {
90 unsafe {
91 let __receiver = <ExpSetter_ExpWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92 ::unity::il2cpp_call!((::unity::module_base()+0x1e59c20usize)as*mut u8,();
93(ExpSetter_ExpWindow)__receiver,(i32)::core::convert::Into::into(exp))
94 }
95 }
96 #[doc = "`SetLevelMax()` overload"]
97 fn set_level_max(self) -> () {
98 unsafe {
99 let __receiver = <ExpSetter_ExpWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100 ::unity::il2cpp_call!((::unity::module_base()+0x1e59920usize)as*mut u8,();
101(ExpSetter_ExpWindow)__receiver)
102 }
103 }
104 #[doc = "`IsLevelMax(crate::app::unit::Unit)` overload"]
105 fn is_level_max(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> bool {
106 unsafe {
107 let __receiver = <ExpSetter_ExpWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108 ::unity::il2cpp_call!((::unity::module_base()+0x1e59900usize)as*mut u8,bool;
109(ExpSetter_ExpWindow)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
110 }
111 }
112 #[doc = "`.ctor()` overload"]
113 fn ctor(self) -> () {
114 unsafe {
115 let __receiver = <ExpSetter_ExpWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116 ::unity::il2cpp_call!((::unity::module_base()+0x1e59e00usize)as*mut u8,();
117(ExpSetter_ExpWindow)__receiver)
118 }
119 }
120}
121
122#[cfg(feature = "app-expsetter")]
123impl<__T: IExpSetter_ExpWindow> IExpSetter_ExpWindowMethods for __T {}
124
125#[cfg(feature = "app-expsetter")]
126impl ExpSetter_ExpWindow {
127 pub fn setup_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
129 }
130
131 pub fn update_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
133 }
134
135 pub fn update_add_exp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
137 }
138
139 pub fn set_level_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
141 }
142
143 pub fn is_level_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
145 }
146
147 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
149 }
150}
151
152#[cfg(feature = "app-expsetter")]
153impl ExpSetter_ExpWindow {
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!(ExpSetter_ExpWindow),
162 ::core::stringify!(new),
163 )
164 });
165 <Self as IExpSetter_ExpWindowMethods>::ctor(this);
166 this
167 }
168}
169
170#[cfg(feature = "app-expsetter")]
171pub trait IExpSetterMethods: IExpSetter {
172 #[doc = "`Setup(crate::app::unit::Unit, i32)` overload"]
173 fn setup(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>, gain_exp: impl ::core::convert::Into<i32>) -> () {
174 unsafe {
175 let __receiver = <ExpSetter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
176 ::unity::il2cpp_call!((::unity::module_base()+0x24e8a20usize)as*mut u8,();
177(ExpSetter)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(gain_exp))
178 }
179 }
180 #[doc = "`SetExp(crate::app::unit::Unit)` overload"]
181 fn set_exp(self, main: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
182 unsafe {
183 let __receiver = <ExpSetter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
184 ::unity::il2cpp_call!((::unity::module_base()+0x24e8710usize)as*mut u8,();
185(ExpSetter)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(main))
186 }
187 }
188 #[doc = "`SetAddExpMain(i32)` overload"]
189 fn set_add_exp_main(self, exp: impl ::core::convert::Into<i32>) -> () {
190 unsafe {
191 let __receiver = <ExpSetter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
192 ::unity::il2cpp_call!((::unity::module_base()+0x24e8c10usize)as*mut u8,();
193(ExpSetter)__receiver,(i32)::core::convert::Into::into(exp))
194 }
195 }
196 #[doc = "`.ctor()` overload"]
197 fn ctor(self) -> () {
198 unsafe {
199 let __receiver = <ExpSetter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
200 ::unity::il2cpp_call!((::unity::module_base()+0x24e9210usize)as*mut u8,();
201(ExpSetter)__receiver)
202 }
203 }
204}
205
206#[cfg(feature = "app-expsetter")]
207impl<__T: IExpSetter> IExpSetterMethods for __T {}
208
209#[cfg(feature = "app-expsetter")]
210impl ExpSetter {
211 pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
213 }
214
215 pub fn set_exp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
217 }
218
219 pub fn set_add_exp_main_method_info() -> &'static ::unity::il2cpp::MethodInfo {
220 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
221 }
222
223 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
225 }
226}
227
228#[cfg(feature = "app-expsetter")]
229impl ExpSetter {
230 #[doc = "`.ctor()` — no args"]
231 pub fn new() -> Self {
232 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
233 panic!(
234 "{}
235::{}
236 failed to instantiate",
237 ::core::stringify!(ExpSetter),
238 ::core::stringify!(new),
239 )
240 });
241 <Self as IExpSetterMethods>::ctor(this);
242 this
243 }
244}
245
246#[cfg(feature = "app-expsetter")]
247#[doc(hidden)]
248pub mod prelude {
249 pub use super::{ExpSetter, ExpSetter_ExpWindow, IExpSetter, IExpSetterMethods, IExpSetter_ExpWindow, IExpSetter_ExpWindowMethods};
250 #[cfg(feature = "system-object")]
251 pub use crate::system::object::IObjectMethods;
252 #[cfg(feature = "unity_engine-behaviour")]
253 pub use crate::unity_engine::behaviour::IBehaviourMethods;
254 #[cfg(feature = "unity_engine-component")]
255 pub use crate::unity_engine::component::IComponentMethods;
256 #[cfg(feature = "unity_engine-monobehaviour")]
257 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
258 #[cfg(feature = "unity_engine-object_2")]
259 pub use crate::unity_engine::object_2::IObject_2Methods;
260 pub use crate::{
261 system::object::IObject,
262 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
263 };
264}