1#[cfg(feature = "app-mapbattlewindow-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/mapbattlewindow/MapBattleWindow_MoveParam.md"))]
19 #[::unity::class(namespace = "App", name = "MapBattleWindow.MoveParam")]
20 #[parent(crate::system::object::Object)]
21 pub struct MapBattleWindow_MoveParam {
22 #[static_field]
23 #[rename(name = "TIME")]
24 pub time: f32,
25 #[offset(16)]
26 #[rename(name = "m_MoveHP")]
27 pub m_move_hp: crate::app::interpolatorfloat::InterpolatorFloat,
28 #[offset(24)]
29 #[rename(name = "m_TempHP")]
30 pub m_temp_hp: crate::app::interpolatorfloat::InterpolatorFloat,
31 }
32
33 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapbattlewindow/MapBattleWindow.md"))]
34 #[::unity::class(namespace = "App", name = "MapBattleWindow")]
35 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
36 pub struct MapBattleWindow {
37 #[offset(24)]
38 #[rename(name = "m_Info")]
39 pub m_info: crate::app::battleinfo::BattleInfo,
40 #[offset(32)]
41 #[rename(name = "m_MoveParam")]
42 pub m_move_param: ::unity::Array<crate::app::mapbattlewindow::MapBattleWindow_MoveParam>,
43 }
44}
45
46#[cfg(feature = "app-mapbattlewindow-types")]
47pub use __types::*;
48
49#[cfg(feature = "app-mapbattlewindow")]
50pub trait IMapBattleWindow_MoveParamMethods: IMapBattleWindow_MoveParam {
51 #[doc = "`GetHP()` overload"]
52 fn get_hp(self) -> f32 {
53 unsafe {
54 let __receiver =
55 <MapBattleWindow_MoveParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56 ::unity::il2cpp_call!((::unity::module_base()+0x24bd3b0usize)as*mut u8,f32;
57(MapBattleWindow_MoveParam)__receiver)
58 }
59 }
60 #[doc = "`GetTemp()` overload"]
61 fn get_temp(self) -> f32 {
62 unsafe {
63 let __receiver =
64 <MapBattleWindow_MoveParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65 ::unity::il2cpp_call!((::unity::module_base()+0x24bd410usize)as*mut u8,f32;
66(MapBattleWindow_MoveParam)__receiver)
67 }
68 }
69 #[doc = "`Set(crate::app::battleinfoside::BattleInfoSide)` overload"]
70 fn set(self, side: impl ::core::convert::Into<crate::app::battleinfoside::BattleInfoSide>) -> () {
71 unsafe {
72 let __receiver =
73 <MapBattleWindow_MoveParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74 ::unity::il2cpp_call!((::unity::module_base()+0x24bd470usize)as*mut u8,();
75(MapBattleWindow_MoveParam)__receiver,(crate::app::battleinfoside::BattleInfoSide)::core::convert::Into::into(side))
76 }
77 }
78 #[doc = "`Tick(crate::app::battleinfoside::BattleInfoSide)` overload"]
79 fn tick(self, side: impl ::core::convert::Into<crate::app::battleinfoside::BattleInfoSide>) -> () {
80 unsafe {
81 let __receiver =
82 <MapBattleWindow_MoveParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83 ::unity::il2cpp_call!((::unity::module_base()+0x24bd4f0usize)as*mut u8,();
84(MapBattleWindow_MoveParam)__receiver,(crate::app::battleinfoside::BattleInfoSide)::core::convert::Into::into(side))
85 }
86 }
87 #[doc = "`.ctor()` overload"]
88 fn ctor(self) -> () {
89 unsafe {
90 let __receiver =
91 <MapBattleWindow_MoveParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92 ::unity::il2cpp_call!((::unity::module_base()+0x24bd7f0usize)as*mut u8,();
93(MapBattleWindow_MoveParam)__receiver)
94 }
95 }
96}
97
98#[cfg(feature = "app-mapbattlewindow")]
99impl<__T: IMapBattleWindow_MoveParam> IMapBattleWindow_MoveParamMethods for __T {}
100
101#[cfg(feature = "app-mapbattlewindow")]
102impl MapBattleWindow_MoveParam {
103 pub fn get_hp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
105 }
106
107 pub fn get_temp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
108 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
109 }
110
111 pub fn set_method_info() -> &'static ::unity::il2cpp::MethodInfo {
112 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
113 }
114
115 pub fn tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
117 }
118
119 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
120 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
121 }
122}
123
124#[cfg(feature = "app-mapbattlewindow")]
125impl MapBattleWindow_MoveParam {
126 #[doc = "`.ctor()` — no args"]
127 pub fn new() -> Self {
128 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
129 panic!(
130 "{}
131::{}
132 failed to instantiate",
133 ::core::stringify!(MapBattleWindow_MoveParam),
134 ::core::stringify!(new),
135 )
136 });
137 <Self as IMapBattleWindow_MoveParamMethods>::ctor(this);
138 this
139 }
140}
141
142#[cfg(feature = "app-mapbattlewindow")]
143pub trait IMapBattleWindowMethods: IMapBattleWindow {
144 #[doc = "`Setup(crate::app::battleinfo::BattleInfo)` overload"]
145 fn setup(self, info: impl ::core::convert::Into<crate::app::battleinfo::BattleInfo>) -> crate::unity_engine::monobehaviour::MonoBehaviour {
146 unsafe {
147 let __receiver = <MapBattleWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148 ::unity::il2cpp_call!((::unity::module_base()+0x2999390usize)as*mut u8,crate::unity_engine::monobehaviour::MonoBehaviour;
149(MapBattleWindow)__receiver,(crate::app::battleinfo::BattleInfo)::core::convert::Into::into(info))
150 }
151 }
152 #[doc = "`Start()` overload"]
153 fn start(self) -> () {
154 unsafe {
155 let __receiver = <MapBattleWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156 ::unity::il2cpp_call!((::unity::module_base()+0x29993c0usize)as*mut u8,();
157(MapBattleWindow)__receiver)
158 }
159 }
160 #[doc = "`Update()` overload"]
161 fn update(self) -> () {
162 unsafe {
163 let __receiver = <MapBattleWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
164 ::unity::il2cpp_call!((::unity::module_base()+0x29995d0usize)as*mut u8,();
165(MapBattleWindow)__receiver)
166 }
167 }
168 #[doc = "`OnGUI()` overload"]
169 fn on_gui(self) -> () {
170 unsafe {
171 let __receiver = <MapBattleWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172 ::unity::il2cpp_call!((::unity::module_base()+0x29996d0usize)as*mut u8,();
173(MapBattleWindow)__receiver)
174 }
175 }
176 #[doc = "`DrawWindow(f32, f32, i32, ::unity::Il2CppString, crate::app::force::Force_Type, i32)` overload"]
177 fn draw_window(
178 self,
179 x: impl ::core::convert::Into<f32>,
180 y: impl ::core::convert::Into<f32>,
181 index: impl ::core::convert::Into<i32>,
182 name: impl ::core::convert::Into<::unity::Il2CppString>,
183 force_type: impl ::core::convert::Into<crate::app::force::Force_Type>,
184 max_hp: impl ::core::convert::Into<i32>,
185 ) -> () {
186 unsafe {
187 let __receiver = <MapBattleWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
188 ::unity::il2cpp_call!((::unity::module_base()+0x2999b70usize)as*mut u8,();
189(MapBattleWindow)__receiver,(f32)::core::convert::Into::into(x),(f32)::core::convert::Into::into(y),(i32)::core::convert::Into::into(index),(::unity::Il2CppString)::core::convert::Into::into(name),(crate::app::force::Force_Type)::core::convert::Into::into(force_type),(i32)::core::convert::Into::into(max_hp))
190 }
191 }
192 #[doc = "`DrawWindow(f32, f32, i32, crate::app::unit::Unit)` overload"]
193 fn draw_window_2(
194 self,
195 x: impl ::core::convert::Into<f32>,
196 y: impl ::core::convert::Into<f32>,
197 index: impl ::core::convert::Into<i32>,
198 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
199 ) -> () {
200 unsafe {
201 let __receiver = <MapBattleWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
202 ::unity::il2cpp_call!((::unity::module_base()+0x2999950usize)as*mut u8,();
203(MapBattleWindow)__receiver,(f32)::core::convert::Into::into(x),(f32)::core::convert::Into::into(y),(i32)::core::convert::Into::into(index),(crate::app::unit::Unit)::core::convert::Into::into(unit))
204 }
205 }
206 #[doc = "`DrawWindow(f32, f32, i32, i32, ::unity::Il2CppString)` overload"]
207 fn draw_window_3(
208 self,
209 x: impl ::core::convert::Into<f32>,
210 y: impl ::core::convert::Into<f32>,
211 index: impl ::core::convert::Into<i32>,
212 max_hp: impl ::core::convert::Into<i32>,
213 name: impl ::core::convert::Into<::unity::Il2CppString>,
214 ) -> () {
215 unsafe {
216 let __receiver = <MapBattleWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
217 ::unity::il2cpp_call!((::unity::module_base()+0x2999940usize)as*mut u8,();
218(MapBattleWindow)__receiver,(f32)::core::convert::Into::into(x),(f32)::core::convert::Into::into(y),(i32)::core::convert::Into::into(index),(i32)::core::convert::Into::into(max_hp),(::unity::Il2CppString)::core::convert::Into::into(name))
219 }
220 }
221 #[doc = "`.ctor()` overload"]
222 fn ctor(self) -> () {
223 unsafe {
224 let __receiver = <MapBattleWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
225 ::unity::il2cpp_call!((::unity::module_base()+0x299a070usize)as*mut u8,();
226(MapBattleWindow)__receiver)
227 }
228 }
229}
230
231#[cfg(feature = "app-mapbattlewindow")]
232impl<__T: IMapBattleWindow> IMapBattleWindowMethods for __T {}
233
234#[cfg(feature = "app-mapbattlewindow")]
235impl MapBattleWindow {
236 pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
237 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
238 }
239
240 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
242 }
243
244 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
245 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
246 }
247
248 pub fn on_gui_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
250 }
251
252 pub fn draw_window_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
254 }
255
256 pub fn draw_window_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
258 }
259
260 pub fn draw_window_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
262 }
263
264 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
266 }
267}
268
269#[cfg(feature = "app-mapbattlewindow")]
270impl MapBattleWindow {
271 #[doc = "`.ctor()` — no args"]
272 pub fn new() -> Self {
273 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
274 panic!(
275 "{}
276::{}
277 failed to instantiate",
278 ::core::stringify!(MapBattleWindow),
279 ::core::stringify!(new),
280 )
281 });
282 <Self as IMapBattleWindowMethods>::ctor(this);
283 this
284 }
285}
286
287#[cfg(feature = "app-mapbattlewindow")]
288#[doc(hidden)]
289pub mod prelude {
290 pub use super::{
291 IMapBattleWindow, IMapBattleWindowMethods, IMapBattleWindow_MoveParam, IMapBattleWindow_MoveParamMethods, MapBattleWindow,
292 MapBattleWindow_MoveParam,
293 };
294 #[cfg(feature = "system-object")]
295 pub use crate::system::object::IObjectMethods;
296 #[cfg(feature = "unity_engine-behaviour")]
297 pub use crate::unity_engine::behaviour::IBehaviourMethods;
298 #[cfg(feature = "unity_engine-component")]
299 pub use crate::unity_engine::component::IComponentMethods;
300 #[cfg(feature = "unity_engine-monobehaviour")]
301 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
302 #[cfg(feature = "unity_engine-object_2")]
303 pub use crate::unity_engine::object_2::IObject_2Methods;
304 pub use crate::{
305 system::object::IObject,
306 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
307 };
308}