engage/generated/combat/
hudpopupgroup.rs1#[cfg(feature = "combat-hudpopupgroup-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/combat/hudpopupgroup/HUDPopupGroup.md"))]
19 #[::unity::class(namespace = "Combat", name = "HUDPopupGroup")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct HUDPopupGroup {
22 #[offset(24)]
23 #[rename(name = "m_RectTransform")]
24 pub m_rect_transform: crate::unity_engine::recttransform::RectTransform,
25 #[offset(32)]
26 #[rename(name = "m_WorldPos")]
27 pub m_world_pos: crate::unity_engine::vector3::Vector3,
28 #[offset(44)]
29 #[rename(name = "spos")]
30 pub spos: crate::unity_engine::vector3::Vector3,
31 }
32}
33
34#[cfg(feature = "combat-hudpopupgroup-types")]
35pub use __types::*;
36
37#[cfg(feature = "combat-hudpopupgroup")]
38impl HUDPopupGroup {
39 #[doc = "`DamagePopup(crate::combat::phase::Phase)` overload"]
40 pub fn damage_popup(phase: impl ::core::convert::Into<crate::combat::phase::Phase>) -> () {
41 unsafe {
42 ::unity::il2cpp_call!((::unity::module_base()+0x2979280usize)as*mut u8,();
43(crate::combat::phase::Phase)::core::convert::Into::into(phase))
44 }
45 }
46
47 #[doc = "`SetAsUnscaled(crate::unity_engine::transform::Transform)` overload"]
48 pub fn set_as_unscaled(root: impl ::core::convert::Into<crate::unity_engine::transform::Transform>) -> () {
49 unsafe {
50 ::unity::il2cpp_call!((::unity::module_base()+0x29799b0usize)as*mut u8,();
51(crate::unity_engine::transform::Transform)::core::convert::Into::into(root))
52 }
53 }
54
55 #[doc = "`DoesNeedForAttacker(crate::combat::phase::Phase)` overload"]
56 pub fn does_need_for_attacker(phase: impl ::core::convert::Into<crate::combat::phase::Phase>) -> bool {
57 unsafe {
58 ::unity::il2cpp_call!((::unity::module_base()+0x2979a90usize)as*mut u8,bool;
59(crate::combat::phase::Phase)::core::convert::Into::into(phase))
60 }
61 }
62
63 #[doc = "`GetDamage(crate::combat::phase::Phase)` overload"]
64 pub fn get_damage(phase: impl ::core::convert::Into<crate::combat::phase::Phase>) -> i32 {
65 unsafe {
66 ::unity::il2cpp_call!((::unity::module_base()+0x297a400usize)as*mut u8,i32;
67(crate::combat::phase::Phase)::core::convert::Into::into(phase))
68 }
69 }
70
71 #[doc = "`GetNumberPrefabName(crate::combat::phase::Phase, *muti32)` overload"]
72 pub fn get_number_prefab_name(phase: impl ::core::convert::Into<crate::combat::phase::Phase>) -> (::unity::Il2CppString, i32) {
73 unsafe {
74 let mut __out_0 = ::core::mem::MaybeUninit::<i32>::uninit();
75 let __ret = {
76 ::unity::il2cpp_call!((::unity::module_base()+0x297a1c0usize)as*mut u8, ::unity::Il2CppString;
77(crate::combat::phase::Phase)::core::convert::Into::into(phase),(*mut i32)__out_0.as_mut_ptr())
78 };
79 (__ret, __out_0.assume_init())
80 }
81 }
82
83 #[doc = "`GetPopupPrefabName(crate::combat::phase::Phase, crate::combat::combatstyle::CombatStyle)` overload"]
84 pub fn get_popup_prefab_name(
85 phase: impl ::core::convert::Into<crate::combat::phase::Phase>,
86 style: impl ::core::convert::Into<crate::combat::combatstyle::CombatStyle>,
87 ) -> ::unity::Il2CppString {
88 unsafe {
89 ::unity::il2cpp_call!((::unity::module_base()+0x297a540usize)as*mut u8, ::unity::Il2CppString;
90(crate::combat::phase::Phase)::core::convert::Into::into(phase),(crate::combat::combatstyle::CombatStyle)::core::convert::Into::into(style))
91 }
92 }
93}
94
95#[cfg(feature = "combat-hudpopupgroup")]
96pub trait IHUDPopupGroupMethods: IHUDPopupGroup {
97 #[doc = "`get_IsAlive()` overload"]
98 fn get_is_alive(self) -> bool {
99 unsafe {
100 let __receiver = <HUDPopupGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101 ::unity::il2cpp_call!((::unity::module_base()+0x2979210usize)as*mut u8,bool;
102(HUDPopupGroup)__receiver)
103 }
104 }
105 #[doc = "`InitialUpdate()` overload"]
106 fn initial_update(self) -> () {
107 unsafe {
108 let __receiver = <HUDPopupGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109 ::unity::il2cpp_call!((::unity::module_base()+0x2979a70usize)as*mut u8,();
110(HUDPopupGroup)__receiver)
111 }
112 }
113 #[doc = "`Update()` overload"]
114 fn update(self) -> () {
115 unsafe {
116 let __receiver = <HUDPopupGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117 ::unity::il2cpp_call!((::unity::module_base()+0x2979cb0usize)as*mut u8,();
118(HUDPopupGroup)__receiver)
119 }
120 }
121 #[doc = "`SetupAsAttacker(crate::combat::phase::Phase, crate::unity_engine::vector3::Vector3)` overload"]
122 fn setup_as_attacker(
123 self,
124 phase: impl ::core::convert::Into<crate::combat::phase::Phase>,
125 world_pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
126 ) -> () {
127 unsafe {
128 let __receiver = <HUDPopupGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129 ::unity::il2cpp_call!((::unity::module_base()+0x2979ad0usize)as*mut u8,();
130(HUDPopupGroup)__receiver,(crate::combat::phase::Phase)::core::convert::Into::into(phase),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(world_pos))
131 }
132 }
133 #[doc = "`SetupAsDamager(crate::combat::phase::Phase, crate::unity_engine::vector3::Vector3)` overload"]
134 fn setup_as_damager(
135 self,
136 phase: impl ::core::convert::Into<crate::combat::phase::Phase>,
137 world_pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
138 ) -> () {
139 unsafe {
140 let __receiver = <HUDPopupGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141 ::unity::il2cpp_call!((::unity::module_base()+0x29794d0usize)as*mut u8,();
142(HUDPopupGroup)__receiver,(crate::combat::phase::Phase)::core::convert::Into::into(phase),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(world_pos))
143 }
144 }
145 #[doc = "`init(crate::unity_engine::vector3::Vector3)` overload"]
146 fn init(self, world_pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
147 unsafe {
148 let __receiver = <HUDPopupGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
149 ::unity::il2cpp_call!((::unity::module_base()+0x297a010usize)as*mut u8,();
150(HUDPopupGroup)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(world_pos))
151 }
152 }
153 #[doc = "`CreateHUD(::unity::Il2CppString, f32)` overload"]
154 fn create_hud(
155 self,
156 name: impl ::core::convert::Into<::unity::Il2CppString>,
157 y: impl ::core::convert::Into<f32>,
158 ) -> crate::combat::hudpopup::HUDPopup {
159 unsafe {
160 let __receiver = <HUDPopupGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161 ::unity::il2cpp_call!((::unity::module_base()+0x297a280usize)as*mut u8,crate::combat::hudpopup::HUDPopup;
162(HUDPopupGroup)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(f32)::core::convert::Into::into(y))
163 }
164 }
165 #[doc = "`.ctor()` overload"]
166 fn ctor(self) -> () {
167 unsafe {
168 let __receiver = <HUDPopupGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
169 ::unity::il2cpp_call!((::unity::module_base()+0x297a690usize)as*mut u8,();
170(HUDPopupGroup)__receiver)
171 }
172 }
173}
174
175#[cfg(feature = "combat-hudpopupgroup")]
176impl<__T: IHUDPopupGroup> IHUDPopupGroupMethods for __T {}
177
178#[cfg(feature = "combat-hudpopupgroup")]
179impl HUDPopupGroup {
180 pub fn get_is_alive_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
182 }
183
184 pub fn damage_popup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
186 }
187
188 pub fn set_as_unscaled_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
190 }
191
192 pub fn initial_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
194 }
195
196 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
198 }
199
200 pub fn does_need_for_attacker_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
202 }
203
204 pub fn setup_as_attacker_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
206 }
207
208 pub fn setup_as_damager_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
210 }
211
212 pub fn get_damage_method_info() -> &'static ::unity::il2cpp::MethodInfo {
213 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
214 }
215
216 pub fn init_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
218 }
219
220 pub fn get_number_prefab_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
222 }
223
224 pub fn get_popup_prefab_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
226 }
227
228 pub fn create_hud_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
230 }
231
232 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
233 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
234 }
235}
236
237#[cfg(feature = "combat-hudpopupgroup")]
238impl HUDPopupGroup {
239 #[doc = "`.ctor()` — no args"]
240 pub fn new() -> Self {
241 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
242 panic!(
243 "{}
244::{}
245 failed to instantiate",
246 ::core::stringify!(HUDPopupGroup),
247 ::core::stringify!(new),
248 )
249 });
250 <Self as IHUDPopupGroupMethods>::ctor(this);
251 this
252 }
253}
254
255#[cfg(feature = "combat-hudpopupgroup")]
256#[doc(hidden)]
257pub mod prelude {
258 pub use super::{HUDPopupGroup, IHUDPopupGroup, IHUDPopupGroupMethods};
259 #[cfg(feature = "system-object")]
260 pub use crate::system::object::IObjectMethods;
261 #[cfg(feature = "unity_engine-behaviour")]
262 pub use crate::unity_engine::behaviour::IBehaviourMethods;
263 #[cfg(feature = "unity_engine-component")]
264 pub use crate::unity_engine::component::IComponentMethods;
265 #[cfg(feature = "unity_engine-monobehaviour")]
266 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
267 #[cfg(feature = "unity_engine-object_2")]
268 pub use crate::unity_engine::object_2::IObject_2Methods;
269 pub use crate::{
270 system::object::IObject,
271 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
272 };
273}