engage/generated/app/
battledestory.rs1#[cfg(feature = "app-battledestory-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/battledestory/BattleDestory.md"))]
11 #[::unity::class(namespace = "App", name = "BattleDestory")]
12 #[parent(crate::system::object::Object)]
13 pub struct BattleDestory {
14 #[offset(16)]
15 #[rename(name = "Inspector")]
16 pub inspector: crate::app::pokeinspector::PokeInspector,
17 #[offset(24)]
18 #[rename(name = "Overlap")]
19 pub overlap: crate::app::mapoverlap::MapOverlap_Data,
20 }
21}
22
23#[cfg(feature = "app-battledestory-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-battledestory")]
27pub trait IBattleDestoryMethods: IBattleDestory {
28 #[doc = "`Entry(i32, i32)` overload"]
29 fn entry(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> () {
30 unsafe {
31 let __receiver = <BattleDestory as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32 ::unity::il2cpp_call!((::unity::module_base()+0x1e729f0usize)as*mut u8,();
33(BattleDestory)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
34 }
35 }
36 #[doc = "`Clear()` overload"]
37 fn clear(self) -> () {
38 unsafe {
39 let __receiver = <BattleDestory as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40 ::unity::il2cpp_call!((::unity::module_base()+0x1e72aa0usize)as*mut u8,();
41(BattleDestory)__receiver)
42 }
43 }
44 #[doc = "`get_Exist()` overload"]
45 fn get_exist(self) -> bool {
46 unsafe {
47 let __receiver = <BattleDestory as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48 ::unity::il2cpp_call!((::unity::module_base()+0x1e72ae0usize)as*mut u8,bool;
49(BattleDestory)__receiver)
50 }
51 }
52 #[doc = "`get_Hp()` overload"]
53 fn get_hp(self) -> i32 {
54 unsafe {
55 let __receiver = <BattleDestory as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56 ::unity::il2cpp_call!((::unity::module_base()+0x1e72b00usize)as*mut u8,i32;
57(BattleDestory)__receiver)
58 }
59 }
60 #[doc = "`set_Hp(i32)` overload"]
61 fn set_hp(self, value: impl ::core::convert::Into<i32>) -> () {
62 unsafe {
63 let __receiver = <BattleDestory as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64 ::unity::il2cpp_call!((::unity::module_base()+0x1e72b40usize)as*mut u8,();
65(BattleDestory)__receiver,(i32)::core::convert::Into::into(value))
66 }
67 }
68 #[doc = "`get_MaxHp()` overload"]
69 fn get_max_hp(self) -> i32 {
70 unsafe {
71 let __receiver = <BattleDestory as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72 ::unity::il2cpp_call!((::unity::module_base()+0x1e72b90usize)as*mut u8,i32;
73(BattleDestory)__receiver)
74 }
75 }
76 #[doc = "`get_X()` overload"]
77 fn get_x(self) -> i32 {
78 unsafe {
79 let __receiver = <BattleDestory as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 ::unity::il2cpp_call!((::unity::module_base()+0x1e72bc0usize)as*mut u8,i32;
81(BattleDestory)__receiver)
82 }
83 }
84 #[doc = "`get_Z()` overload"]
85 fn get_z(self) -> i32 {
86 unsafe {
87 let __receiver = <BattleDestory as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88 ::unity::il2cpp_call!((::unity::module_base()+0x1e72bf0usize)as*mut u8,i32;
89(BattleDestory)__receiver)
90 }
91 }
92 #[doc = "`PlayDamage(i32)` overload"]
93 fn play_damage(self, hp: impl ::core::convert::Into<i32>) -> () {
94 unsafe {
95 let __receiver = <BattleDestory as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96 ::unity::il2cpp_call!((::unity::module_base()+0x1e72c30usize)as*mut u8,();
97(BattleDestory)__receiver,(i32)::core::convert::Into::into(hp))
98 }
99 }
100 #[doc = "`Commit(i32)` overload"]
101 fn commit(self, hp: impl ::core::convert::Into<i32>) -> () {
102 unsafe {
103 let __receiver = <BattleDestory as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104 ::unity::il2cpp_call!((::unity::module_base()+0x1e72ce0usize)as*mut u8,();
105(BattleDestory)__receiver,(i32)::core::convert::Into::into(hp))
106 }
107 }
108 #[doc = "`Update(crate::app::procinst::ProcInst)` overload"]
109 fn update(self, super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
110 unsafe {
111 let __receiver = <BattleDestory as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112 ::unity::il2cpp_call!((::unity::module_base()+0x1e72f90usize)as*mut u8,();
113(BattleDestory)__receiver,(crate::app::procinst::ProcInst)::core::convert::Into::into(super_))
114 }
115 }
116 #[doc = "`.ctor()` overload"]
117 fn ctor(self) -> () {
118 unsafe {
119 let __receiver = <BattleDestory as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120 ::unity::il2cpp_call!((::unity::module_base()+0x1e73060usize)as*mut u8,();
121(BattleDestory)__receiver)
122 }
123 }
124}
125
126#[cfg(feature = "app-battledestory")]
127impl<__T: IBattleDestory> IBattleDestoryMethods for __T {}
128
129#[cfg(feature = "app-battledestory")]
130impl BattleDestory {
131 pub fn entry_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
133 }
134
135 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
137 }
138
139 pub fn get_exist_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
141 }
142
143 pub fn get_hp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
145 }
146
147 pub fn set_hp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
149 }
150
151 pub fn get_max_hp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
153 }
154
155 pub fn get_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
157 }
158
159 pub fn get_z_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
161 }
162
163 pub fn play_damage_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
165 }
166
167 pub fn commit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
169 }
170
171 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
173 }
174
175 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
177 }
178}
179
180#[cfg(feature = "app-battledestory")]
181impl BattleDestory {
182 #[doc = "`.ctor()` — no args"]
183 pub fn new() -> Self {
184 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
185 panic!(
186 "{}
187::{}
188 failed to instantiate",
189 ::core::stringify!(BattleDestory),
190 ::core::stringify!(new),
191 )
192 });
193 <Self as IBattleDestoryMethods>::ctor(this);
194 this
195 }
196}
197
198#[cfg(feature = "app-battledestory")]
199#[doc(hidden)]
200pub mod prelude {
201 pub use super::{BattleDestory, IBattleDestory, IBattleDestoryMethods};
202 pub use crate::system::object::IObject;
203 #[cfg(feature = "system-object")]
204 pub use crate::system::object::IObjectMethods;
205}